# List Subscriptions

<Warning>
**List items are a summary, not the full subscription**

Each item carries the fields needed to render a grid, including `current_period_start`/`current_period_end`. Everything else — `availability`, `retries`, `metadata`, `trial_period`, `payments`, `pending_plan_change`, `billing_phases` and the rest of [The Subscription Object](/reference/subscriptions/the-subscription-object) — is only returned by [Retrieve Subscription](/reference/subscriptions/retrieve-subscription). Call it per item when you need any of them.
</Warning>

<Note>
**`merchant_reference` is not a filter on this endpoint**

Sending it has no effect: the parameter is ignored and the full, unfiltered page is returned. To look a subscription up by merchant reference, keep the `id` you received when you created it, or page through this endpoint and match client-side.
</Note>

## Scope and ordering

The list is always scoped to the single account in the `X-Account-Code` header — there is no cross-account variant. Results are ordered by `created_at` descending, so a subscription created while you page can shift items across page boundaries. For a stable sweep, filter with `created_at_to` fixed at the moment you started.

Filters are combinable and all optional; each one narrows the result set further. With none set, subscriptions in every status are returned, including `CANCELED` and `COMPLETED` ones.

**GET** `/subscriptions`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns a paginated list of the account's subscriptions, newest first (`created_at` descending). Filters are combinable and every one of them is optional; with none set, subscriptions in every status are returned. 1-indexed pagination.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string, required)
  The `account_id` found in your [WHITELABEL Dashboard](https://dashboard.whitelabel.com/developers) (UUID). Required — the list is always scoped to a single account. Omitting it returns `400 INVALID_PARAMETERS` ("x-account-code header is required.").

## Query parameters

- `customer_id` (string)
  Filter by the customer that owns the subscription (`customer_payer.id`, UUID). A value that isn't a UUID returns `400 BAD_REQUEST` ("Invalid customer_id.").
- `status` (string)
  Filter by status. Accepts several values separated by commas, matching any of them — `ACTIVE,PAUSED`. Values must be spelled exactly as in [Subscription statuses](/reference/subscriptions/status-subscriptions); an unknown one returns `400 BAD_REQUEST` ("Invalid status: FOO.").
- `plan_id` (string)
  Filter by the [plan](/reference/plans/the-plan-object) the subscription is linked to (UUID). A plan with no subscribers — or one that doesn't exist — returns an empty list, not an error. A value that isn't a UUID returns `400 BAD_REQUEST` ("Invalid plan_id.").
- `created_at_from` (string)
  Only return subscriptions created at or after this instant (ISO 8601 with offset, inclusive). A value that doesn't parse returns `400 BAD_REQUEST` ("Invalid created_at_from.").
- `created_at_to` (string)
  Only return subscriptions created at or before this instant (ISO 8601 with offset, inclusive). A value that doesn't parse returns `400 BAD_REQUEST` ("Invalid created_at_to.").
- `payment_method_type` (string)
  Filter by the subscription's payment method type, for example `CARD`.
- `page` (integer)
  1-indexed page number. Must be >= 1, else `400 BAD_REQUEST` ("The page must be greater than or equal to 1.").
- `size` (integer)
  Page size. Must be between 1 and 100 inclusive, else `400 BAD_REQUEST` ("The size must be greater than or equal to 1." if too low, "The size must be at most 100." if too high).

## Responses

### 200

200

- `items` (object[])
  - `id` (string)
    The unique identifier of the subscription.
  - `name` (string)
  - `status` (string)
    See [Subscription statuses](/reference/subscriptions/status-subscriptions).
  - `merchant_reference` (string)
  - `account_id` (string)
  - `customer_payer` (object)
    - `id` (string)
      The unique identifier of the customer.
  - `amount` (object)
    - `currency` (string)
    - `value` (number)
  - `frequency` (object)
    `null` on subscriptions billed with `billing_date` instead of a frequency.
    - `type` (string)
    - `value` (integer)
  - `billing_cycles` (object)
    Same semantics as on [The Subscription Object](/reference/subscriptions/the-subscription-object) — `current` is the next cycle to be charged, not the one in progress.
    - `total` (integer)
    - `current` (integer)
    - `next_at` (string)
    - `scheduling_date` (string)
      When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present on `PIX_AUTOMATIC` items that WHITELABEL executes, and only where the four-day scheduling lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
    - `paid` (integer)
      How many cycles have been paid so far. Distinct from `current`, which is the cycle being billed.
  - `payment_method` (object)
    - `type` (string)
      The payment method type, for example `CARD`.
  - `plan_id` (string)
    The plan the subscription is linked to, or `null` for subscriptions created with a raw `amount`/`frequency`.
  - `created_at` (string)
  - `current_period_start` (string)
    Same semantics as on [The Subscription Object](/reference/subscriptions/the-subscription-object): start of the billing period the subscription is currently in.
  - `current_period_end` (string)
    End of the billing period the subscription is currently in. Equal to `billing_cycles.next_at`.
- `pagination` (object)
  - `page` (integer)
    The page returned — echoes the request.
  - `size` (integer)
    The page size returned — echoes the request.
  - `total` (integer)
    Total subscriptions matching the filters, across every page.
  - `total_pages` (integer)

Example:

```json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "status": "string",
      "merchant_reference": "string",
      "account_id": "string",
      "customer_payer": {
        "id": "string"
      },
      "amount": {
        "currency": "string",
        "value": 0
      },
      "frequency": {
        "type": "string",
        "value": 0
      },
      "billing_cycles": {
        "total": 0,
        "current": 0,
        "next_at": "string",
        "scheduling_date": "string",
        "paid": 0
      },
      "payment_method": {
        "type": "string"
      },
      "plan_id": "string",
      "created_at": "string",
      "current_period_start": "string",
      "current_period_end": "string"
    }
  ],
  "pagination": {
    "page": 0,
    "size": 0,
    "total": 0,
    "total_pages": 0
  }
}
```

### 400

400

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "BAD_REQUEST",
  "messages": [
    "string"
  ]
}
```