Retrieve a subscription plan list

Retrieve all subscription plans configured for your merchant account. You can use the query parameters for:

FilteringPagination
Filter the subscription plans that you want to retrieve, for example, only retrieve plans created within a specific date range.

Parameters used for filtering:
  • from
  • to
View the subscription plans without loading all of them at once, for example, return a specified number of plans per page.

Parameters used for pagination:
  • limit
  • page_token

Request

Query parameters
Query parameters

Possible values: >= 1 and <= 500

Default value: 100

Maximum number of records to return. Used for pagination.

Filter records created from this date/time. Used for filtering.

Filter records created until this date/time. Used for filtering.

Token for retrieving the next page of results. Used for pagination.

To paginate through results:

  1. Make an initial request with the desired limit.
  2. The response will include a next_page_token if more results are available.
  3. Use that token in the page_token parameter of your next request.
  4. Repeat until next_page_token is not present.
Note

When using page_token, you must include all query parameters from the initial request (such as from, to, or other filter parameters) to maintain consistent filtering across pages.

Header parameters
Header parameters

Example: "Bearer sk_1234567890ABCdefGHIjklMNOpqrSTUvwxYZ_1234567890-Ab_cdeFGHijkLMNopq"

This parameter accepts the Merchant API Secret key to authorise requests coming from the merchant's backend.

It ensures that ensures that each request is authenticated and authorised by verifying the secret key. The secret key should be included in all request headers as a Bearer token.

Info

For more information, see: Authentication

Possible values: [2023-09-01, 2024-05-01, 2024-09-01, 2025-10-16]
Example: "2025-10-16"

The version of the Merchant API, specified in YYYY-MM-DD format.

If not specified, you will receive an error.

Info

For more information about API versioning, see: API versions.

Response

List of subscription plans retrieved successfully

Response body
Body object

Token for retrieving the next page of results.

If not present, there are no more results to retrieve.

List of subscription plans.

Unique identifier for the subscription plan.

Possible length: non-empty and <= 1024 characters

The name of the subscription plan.

Possible values: [active, deactivated]

The state of the subscription plan.

StateDescription
activeThe plan is active and can be used to create new subscriptions.
deactivatedThe plan has been deactivated and cannot be used for new subscriptions.

The date and time the subscription plan was created in ISO 8601 format.

The date and time the subscription plan was last updated in ISO 8601 format.

List of subscription plan variations.

Unique identifier for the subscription plan variation.

List of billing phases for this variation.

Unique identifier for the subscription plan phase.

Possible values: >= 1

The sequential order of this phase in the subscription billing lifecycle.

Phases execute in ascending order based on this value:

  • Phase with ordinal=1 executes first
  • Phase with ordinal=2 executes second, and so on

When a phase completes its cycle_count, the subscription automatically progresses to the phase with the next ordinal value.

Example: A subscription with phases ordered as ordinal=1 (trial), ordinal=2 (regular), ordinal=3 (discounted) will progress through them in that sequence.

The length of each billing cycle for this phase in ISO 8601 duration format.

This determines how often the customer is billed during this phase. The total time spent in a phase is cycle_duration × cycle_count.

Common durations:

DurationDescription
P1M1 month
P1Y1 year
P15D15 days
P1W1 week
PT2H2 hours

Example: If cycle_duration=P1M and cycle_count=12, the customer will be billed monthly for 12 months (1 year total).

Possible values: >= 1

Number of billing cycles for this phase before moving to the next phase.

ValueBehavior
null or omittedPhase continues indefinitely. The subscription remains in this phase with no automatic progression.
Specific number (e.g., 1, 3, 12)After completing this many billing cycles, the subscription automatically moves to the next phase as determined by the ordinal field.

Example: If cycle_count=3 and cycle_duration=P1M, the subscription will complete 3 monthly cycles then move to the phase with the next highest ordinal value.

Note

If no next phase exists in after a cycle with a specific cycle_count, the subscription will automatically stop when it completes its cycles.

Subscription amount in minor currency units (e.g., cents for USD, pence for GBP).

For example, 9900 in GBP represents £99.00.

Info

Conversion between major and minor units varies by currency. For instance, 100 minor units equal £1.00 in GBP, whereas in ISK they represent 100 units. For more details, see the ISO 4217 standard.

Possible length: >= 3 characters and <= 3 characters

ISO 4217 currency code in upper case.

Info

For more information about the supported currencies, see: Help Center.

Was this page helpful?