v2
latestOpenAPI 3.0.12026-07-262352981007.0 KBSubscriptions
Preview upcoming subscription charges
Returns a preview of upcoming subscription charges or refunds for any specified update to subscriptions tiers, add-ons, or interval.
post/subscriptions/{id}/preview
Path parameters
idstring required
The unique identifier of the subscription
Request body
Example request
{
"tierId": "8d074e85-4d95-4d9a-8a63-187719470d49",
"interval": "Monthly"
}Response
When request is successful. Returns a 'SubscriptionPreview' object.
Example response
{
"immediateProrationPayment": {
"dueDate": "2022-04-23T14:00:00Z",
"total": 1899,
"subTotal": 1000,
"tax": 100,
"preTaxCredit": 200,
"previewLineItems": [
{
"product": {
"smokeballId": "SMK001"
},
"amount": 109,
"preTaxCredit": 200
}
]
},
"nextBillingCyclePayment": {
"dueDate": "2022-04-23T14:00:00Z",
"total": 1899,
"subTotal": 1000,
"tax": 100,
"preTaxCredit": 200,
"previewLineItems": [
{
"product": {
"smokeballId": "SMK001"
},
"amount": 109,
"preTaxCredit": 200
}
]
},
"quantity": 3
}