List subscriptions

Retrieve a paginated list of subscriptions.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Retrieve a paginated list of subscriptions on your site. Supports filtering and expanding relationships.

Example: You want to list all subscriptions with their plan details and latest invoice. Call this endpoint with expand=plan,latestInvoice to include the related data.

FeatureFields
Searchableuser_id
SortableNone
Expandableaddress, plan, coupon, defaultSource, latestInvoice, latestChurnPrediction

Filtering by status

The status parameter accepts several comma separated values and matches any of them, so status=active,past_due returns subscriptions in either state.

Deleted subscriptions

Subscriptions that were canceled immediately are soft deleted, and this endpoint still returns them. A call with no status filter therefore includes them in both the results and meta.total.

When a status filter is applied, whether they are included depends on the status:

  • canceled, extended and incomplete_expired include soft deleted subscriptions.
  • Every other status excludes them.
Query Params
int32
required

The unique identifier of the site associated with your account.

int32
Defaults to 10

The maximum number of objects you want returned per result set. For instance, if you set limit=10, the API will return a maximum of 10 objects in the response. (max: 100)

int32
Defaults to 1

The specific page of the result set you want to retrieve, typically used in conjunction with limit. For example, if you set page=2 and limit=10, the API will return the second page of results, containing a maximum of 10 objects starting from the 11th object.

string

An optional comma separated list of supported relationships to expand. This endpoint supports expanding address, plan, coupon, defaultSource, latestInvoice and latestChurnPrediction relationships.

int32

When set, will fetch only subscription(s) related to this customer.

string

A comma separated list of supported statuses to filter by. Allowed values are: active, canceled, past_due, trialing, unpaid, incomplete, incomplete_expired, extended, pending_payment, scheduled. Note that canceled matches subscriptions that have ended rather than a canceled status value, and extended matches subscriptions whose end date is in the future.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json