Subscriptions
Preview a Subscription update
Generates a preview of the changes that would occur if the Subscription is updated
post/subscriptions/{id}/preview
Path parameters
idstring required
Request body
Example request
{
"price": "price_2R4e2xDqbww8ewmkIYWE1A6Zcfp",
"nextBillingDate": "2026-06-01T00:00:00.000Z"
}Response
OK
Example response
{
"id": "sub_preview_2pKw553IpHphT79MHhZh8jEf2cT",
"subscription": {
"id": "sub_2QC7PqoUeOxQEWscJJt6B3PkvyL",
"currentCycle": 1,
"upcomingInvoice": {
"amount": 1500,
"currency": "usd",
"periodStart": "2023-01-01T00:00:00Z",
"periodEnd": "2023-01-31T23:59:59Z",
"statementDescriptor": "SUBSCRIPTION",
"comment": "Invoice for subscription 123, period January 2023"
}
}
}Changes
Changed in 1 of the 2 revisions of this API.1
- ○
added the non-success response with the status
response-non-success-status-added
- ○