List Plans

List items are a summary, not the full plan

metadata and phases are only returned by Retrieve Plan, not by this list endpoint. If you need either one for every plan in a grid, call Retrieve Plan per item.

GET/subscriptions/plans

Returns a paginated, grid-ready list of plans for the authenticated account. offset-based (offset=0 is the first page) pagination.

Header Parameters

X-Account-Codestring

The account_id found in your WHITELABEL Dashboard (UUID). Required unless account_id is supplied as a query parameter — with neither, the call returns 400 BAD_REQUEST (“Invalid x-account-code header.”).

Query Parameters

account_idstring

Scope the list to one account. An alternative to the X-Account-Code header; one of the two must be present.

limitinteger

Maximum number of plans to return. Defaults to 20.

offsetinteger

Number of plans to skip. Defaults to 0.

Response

200

dataobject[]
Show data properties
idstring
account_idstring
namestring
merchant_referencestring
statusstring
base_amountobject
Show base_amount properties
currencystring
valuenumber
frequencyobject
Show frequency properties
typestring
valueinteger
subscribers_countinteger
countriesstring[]
created_atstring
paginationobject
Show pagination properties
totalinteger

Total number of plans on the account.

limitinteger

The limit applied to this page.

offsetinteger

The offset applied to this page.

has_moreboolean

Whether more plans follow this page.

400

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/subscriptions/plans?account_id=<account_id>&limit=<limit>&offset=<offset>" \
  -H "X-Account-Code: <X-Account-Code>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "data": [
    {
      "id": "string",
      "account_id": "string",
      "name": "string",
      "merchant_reference": "string",
      "status": "string",
      "base_amount": {
        "currency": "string",
        "value": 0
      },
      "frequency": {
        "type": "string",
        "value": 0
      },
      "subscribers_count": 0,
      "countries": [
        "string"
      ],
      "created_at": "string"
    }
  ],
  "pagination": {
    "total": 0,
    "limit": 0,
    "offset": 0,
    "has_more": true
  }
}