v1
latestOpenAPI 3.0.1MIT2026-07-26336777.7 KBget/subscription/get-subscription/{subscriptionId}
Path parameters
subscriptionIdstring required
Example:sub_fooBOwYsaK50AEfK
Unique identifier of the subscription
Response
Successful response with subscription details
Example response
{
"subscriptionId": "sub_fooBOwYsaK50AEfK",
"interval": "MONTH",
"intervalCount": 2,
"cycleCount": 2,
"remainingCycleCount": 2,
"currency": "USD",
"amount": 100,
"presentmentCurrency": "USD",
"createdAt": "2024-09-26T10:41:50.472+00:00",
"status": "CREATED",
"upfrontAmount": 200,
"trialPeriodCount": 7,
"trialPeriodInterval": "DAY",
"metadata": {
"orderId": "12345",
"customerNote": "Deliver after 5 PM"
},
"updatePaymentMethodLink": "https://pay.xpaycheckout.com/subscription/update?subscription_id=sub_123",
"paymentMetadata": {
"paymentMethod": "CARD",
"cardMetadata": {
"brand": "visa",
"country": "US",
"lastFourDigit": "4242",
"expiryMonth": 12,
"expiryYear": 2028,
"cardType": "CREDIT"
},
"cardInstallmentMetadata": {
"cardInstallmentTenure": "three"
}
}
}