> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doglytdc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar Suscripciones

> Devuelve las suscripciones de la cuenta (hasta 200), con estado, fin del período y MRR.

#### Alcance

```bash theme={null}
read subscriptions
```

## Qué hace

Devuelve las suscripciones de la cuenta (hasta 200), con estado, fin del período y MRR.

## Casos de uso

* Controlar el acceso de suscriptores
* Calcular los ingresos recurrentes

## Respuesta

**data** `object[]`

**campos**

**id** `string`

Identificador único.

**product\_id** `string`

**status** `string`

Estado actual.

**current\_period\_end** `string\<date-time\>`

Fin del período pagado.

**mrr\_cents** `integer`

Ingresos mensuales recurrentes, en centavos.

**currency** `string`

Moneda: `BRL` o `USD`.

**customer\_email** `string`

**created\_at** `string\<date-time\>`

Cuándo fue creado.

## Errores

| Estado | Descripción |
| - | - |
| `401` | Clave inválida o revocada. |
| `403` | Faltan alcances (`insufficient_scope`). |
| `429` | Límite de solicitudes (`rate_limited`). |

```bash cURL theme={null}
curl --request GET \
  --url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/subscriptions \
  -u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
```

```json 200 theme={null}
{
  "data": [
    {
      "id": "sub_3f2a",
      "product_id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
      "status": "active",
      "current_period_end": "2026-12-06T18:05:00Z",
      "mrr_cents": 2990,
      "currency": "BRL",
      "customer_email": "comprador@ejemplo.com",
      "created_at": "2026-11-06T18:05:00Z"
    }
  ]
}
```

```json 401 theme={null}
{ "error": "unauthorized", "message": "Chave de API inválida." }
```

```json 403 theme={null}
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, subscriptions." }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.