v1
latestOpenAPI 3.0.02026-07-2475182625.5 KBRetrieve a subscription
Retrieves the details of a subscription with the given subscription_id.
Path parameters
Unique identifier for the subscription.
Query parameters
Filter subscriptions by the associated account ID.
Specify the beginning of a date range in yyyy-mm-dd format.
Specify the end of a date range in yyyy-mm-dd format.
Specify the event type to filter results. Valid values include canceled, charged, created, deactivated, trialended, or trialstarted. Must be used with the begin and end parameters.
Filter subscriptions by specific product IDs. Use commas to separate multiple values.
Specify the scope to filter by test or live subscriptions. If not provided, both live and test subscriptions are returned by default.
Specify the subscription status to filter results. Valid values include active, canceled, deactivated, overdue, or trial.
Response
OK
Example response
{
"id": "1abc2DE_FGhIjKLm3NoPQR",
"subscription": "1abc2DE_FGhIjKLm3NoPQR",
"active": true,
"state": "trial",
"isPauseScheduled": true,
"changed": 1573257599032,
"changedValue": 1573257599032,
"changedInSeconds": 1573257599,
"changedDisplay": "11/8/19",
"declineReason": "Invalid Card number",
"paymentMethod": "CREDIT_CARD",
"expiry": "12/25",
"cardType": "VISA",
"currency": "USD",
"account": "N8FjcSWcQNeYCc-suM1O8g",
"product": "example-monthly-subscription",
"sku": "skusub1",
"display": "Example Monthly Subscription",
"quantity": 1,
"autoRenew": true,
"price": 14.95,
"priceDisplay": "$14.95",
"priceInPayoutCurrency": 14.95,
"priceInPayoutCurrencyDisplay": "$14.95",
"discount": 3.74,
"discountDisplay": "$3.74",
"discountInPayoutCurrency": 3.74,
"discountInPayoutCurrencyDisplay": "$3.74",
"subtotal": 16.21,
"subtotalDisplay": "$16.21",
"subtotalInPayoutCurrency": 16.21,
"subtotalInPayoutCurrencyDisplay": "$16.21",
"attributes": {
"Furious": "Falcon",
"CustomAttribute2": "CustomValue2"
},
"addons": [
{
"product": "example-product-3",
"sku": "skuex3",
"display": "Example Product 3",
"quantity": 1,
"price": 5,
"priceDisplay": "$5.00"
}
],
"nextChargeDate": "2025-12-01T00:00:00.000Z"
}