Skip to main content
GET
cURL
Retrieves an array of subscription objects.

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

customer_id
string | null
required

Filter to a specific customer.

Minimum string length: 1
plan_id
string<uuid>

Filter to a specific plan.

range_end
string<date-time>

If specified, will only return subscriptions with a start date before this date.

range_start
string<date-time>

If specified, will only return subscriptions with an end date after this date.

status
enum<string>[]

Filter to a specific set of subscription statuses. Defaults to active.

  • active - Active
  • ended - Ended
  • not_started - Not Started
Available options:
active,
ended,
not_started
subscription_filters
object[]

Filter to a specific set of subscription filters. If your billing model only allows for one subscription per customer, you very likely do not need this field. Must be formatted as a JSON-encoded + stringified list of dictionaries, where each dictionary has a key of 'property_name' and a key of 'value'.

Response

200 - application/json
subscription_id
string
required
start_date
string<date-time>
required

The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.

end_date
string<date-time>
required

The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.

auto_renew
boolean
required

Whether the subscription automatically renews. Defaults to true.

is_new
boolean
required

Whether this subscription came from a renewal or from a first-time. Defaults to true on creation.

subscription_filters
object[]
required
customer
object
required
billing_plan
object
required
fully_billed
boolean
required
read-only
addons
object[]
required
metadata
object
required