List Subscriptions

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 — is only returned by Retrieve Subscription. Call it per item when you need any of them.

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.

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

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.

Header Parameters

X-Account-Codestringrequired

The account_id found in your WHITELABEL Dashboard (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_idstring

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.”).

statusstring

Filter by status. Accepts several values separated by commas, matching any of them — ACTIVE,PAUSED. Values must be spelled exactly as in Subscription statuses; an unknown one returns 400 BAD_REQUEST (“Invalid status: FOO.”).

plan_idstring

Filter by the plan 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_fromstring

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_tostring

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_typestring

Filter by the subscription’s payment method type, for example CARD.

pageinteger

1-indexed page number. Must be >= 1, else 400 BAD_REQUEST (“The page must be greater than or equal to 1.”).

sizeinteger

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).

Response

200

itemsobject[]
Show items properties
idstring

The unique identifier of the subscription.

namestring
statusstring
merchant_referencestring
account_idstring
customer_payerobject
Show customer_payer properties
idstring

The unique identifier of the customer.

amountobject
Show amount properties
currencystring
valuenumber
frequencyobject

null on subscriptions billed with billing_date instead of a frequency.

Show frequency properties
typestring
valueinteger
billing_cyclesobject

Same semantics as on The Subscription Object — current is the next cycle to be charged, not the one in progress.

Show billing_cycles properties
totalinteger
currentinteger
next_atstring
scheduling_datestring

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.

paidinteger

How many cycles have been paid so far. Distinct from current, which is the cycle being billed.

payment_methodobject
Show payment_method properties
typestring

The payment method type, for example CARD.

plan_idstring

The plan the subscription is linked to, or null for subscriptions created with a raw amount/frequency.

created_atstring
current_period_startstring

Same semantics as on The Subscription Object: start of the billing period the subscription is currently in.

current_period_endstring

End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.

paginationobject
Show pagination properties
pageinteger

The page returned — echoes the request.

sizeinteger

The page size returned — echoes the request.

totalinteger

Total subscriptions matching the filters, across every page.

total_pagesinteger

400

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/subscriptions?customer_id=<customer_id>&status=<status>&plan_id=<plan_id>&created_at_from=<created_at_from>&created_at_to=<created_at_to>&payment_method_type=<payment_method_type>&page=<page>&size=<size>" \
  -H "X-Account-Code: <X-Account-Code>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "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
  }
}