Skip to main content
GET
List Subscriptions

Authorizations

Authorization
string
header
required

Authentication: You can generate a Personal Access Token from your settings.

Query Parameters

organization_id

Return only records matching organization ID. Identifier of the organization.

Example:

"1dbfc517-0bbf-4301-9ba8-555ca42b9737"

product_id

Return only records matching product ID. Identifier of the product.

customer_id

Return only records matching customer ID. Identifier of the customer.

external_customer_id

Return only records matching customer external ID. Identifier of the customer external.

discount_id

Return only records matching discount ID. Identifier of the product.

active
boolean | null
deprecated

Return only records matching active or inactive subscription.

status

Return only records matching subscription status.

Available options:
incomplete,
incomplete_expired,
trialing,
active,
past_due,
canceled,
unpaid
cancel_at_period_end
boolean | null

Return only records matching subscriptions that are set to cancel at period end.

customer_cancellation_reason

Return only records matching customer cancellation reason.

Available options:
customer_service,
low_quality,
missing_features,
switched_service,
too_complex,
too_expensive,
unused,
other
canceled_at_after
string<date-time> | null

Return only records matching cancellation date (after or equal to).

canceled_at_before
string<date-time> | null

Return only records matching cancellation date (before or equal to).

page
integer
default:1

Results page to return. The first page is used by default.

limit
integer
default:10

Records returned per page. Defaults to 10 and accepts up to 100.

sorting
enum<string>[] | null

Sort rules applied from left to right. Prefix any rule with - to reverse it into descending order.

Available options:
customer,
-customer,
status,
-status,
started_at,
-started_at,
current_period_end,
-current_period_end,
ended_at,
-ended_at,
ends_at,
-ends_at,
amount,
-amount,
product,
-product,
discount,
-discount
metadata
MetadataQuery · object | null

Return only records matching metadata key-value pairs. It uses the deepObject style, e.g. ?metadata[key]=value.

Response

Request completed successfully

items
Subscription · object[]
required
pagination
Pagination · object
required