Get subscription by ID
Returns complete details of a subscription, including charge history.
Authorizations
HTTP Basic authentication. Use your secret key as the username and an empty string as password. The API key should be base64 encoded in the format 'username:' when sending the Authorization header.
Path Parameters
Unique subscription identifier
Response
Successfully retrieved subscription
Unique subscription identifier
"2RhQg9M7ZCg3X3nMb9W1kX8Q"
Subscription status
pending_activation, pending_card_activation, active, cancelled, paused, expired "active"
Current billing period start
"2024-01-15T10:30:00.000Z"
Current billing period end
"2024-02-15T10:30:00.000Z"
Billing day of the month
15
Cancellation timestamp
null
Type of cancellation
regret, regular null
Whether the subscription was refunded
false
Creation timestamp
"2024-01-15T10:30:00.000Z"
Last update timestamp
"2024-01-15T10:30:00.000Z"
Charge history
Additional metadata
{ "referralCode": "PROMO2024" }