v1
latestOpenAPI 3.1.02026-07-265817860.8 KBbilling
Updates multiple plans on a customer in a single request. Currently supports cancel actions (immediately, end of cycle, or uncancel) across one or more subscriptions.
Use this endpoint to cancel or uncancel several plans atomically in one call — for example canceling a main plan together with its add-ons, or plans across multiple entities.
post/v1/billing.multi_update
Headers
x-api-versionstring required
Request body
Example request
{
"customer_id": "cus_123",
"updates": [
{
"plan_id": "pro_plan",
"cancel_action": "cancel_end_of_cycle"
},
{
"plan_id": "addon_seats",
"cancel_action": "cancel_end_of_cycle"
}
]
}Response
OK
Example response
{
"customer_id": "cus_123",
"invoice": {
"status": "paid",
"stripe_id": "in_1234",
"total": -20,
"currency": "usd",
"hosted_invoice_url": "https://invoice.stripe.com/..."
},
"payment_url": null
}