v1
latestOpenAPI 3.1.02026-07-265817860.8 KBbilling
Previews the billing changes that would occur when updating a subscription, without actually making any changes.
Use this endpoint to show customers prorated charges or refunds before confirming subscription modifications.
post/v1/billing.preview_update
Headers
x-api-versionstring required
Request body
Example request
{
"customer_id": "cus_123",
"plan_id": "pro_plan",
"feature_quantities": [
{
"feature_id": "seats",
"quantity": 15
}
]
}Response
OK
Example response
{
"customerId": "charles",
"lineItems": [
{
"display_name": "Pro seed",
"description": "Pro seed - Base Price (from 18 Feb 2026 to 18 Mar 2026)",
"subtotal": 20,
"total": 20,
"discounts": []
}
],
"subtotal": 20,
"total": 20,
"currency": "usd"
}