Skip to main content
GET

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key (key_...). Used for every endpoint except POST /api/v1/device_pings.

Path Parameters

id
string
required

Public id of the subscription.

Example:

"sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG"

Response

The subscription.

A subscription as the merchant API returns it.

id
string
Example:

"sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG"

customer_id
string
Example:

"cus_3Lm8Pz3Rt6Vb1Ys5JdCfE7Hn2Kq9WxaG"

status
enum<string>

Derived from the billing dates each time you read it. incomplete until the first payment succeeds. active while billing runs, when the first payment went through while renewals were off for your account, and for a subscription canceled for the end of its paid period, until ends_at. past_due after a renewal failed, or while a declined renewal waits for its retry. paused while the merchant has paused billing: nothing renews until it is resumed. canceled once a canceled subscription's ends_at has passed.

Available options:
incomplete,
active,
past_due,
paused,
canceled
interval
enum<string>
Available options:
day,
week,
month,
year
interval_count
integer
Example:

1

line_items
object[]
line_items_total_amount_cents
integer
Example:

4200

current_period_end
string<date-time> | null

End of the period the customer has paid for.

next_billing_at
string<date-time> | null

When the next renewal is charged; while a declined renewal waits for its retry, when that retry is charged. Null while paused, canceled, or after a renewal failed.

canceled_at
string<date-time> | null
ends_at
string<date-time> | null

When a canceled subscription stops being active. Null unless canceled.

paused_at
string<date-time> | null

When the merchant paused billing. Null unless paused.

created_at
string<date-time>