v1
latestOpenAPI 3.1.02026-07-265817860.8 KBbilling
Attaches multiple plans to a customer in a single request. Creates a single Stripe subscription with all plans consolidated.
Use this endpoint when you need to subscribe a customer to multiple plans at once, such as a base plan plus add-ons, or to create a bundle of products.
post/v1/billing.multi_attach
Headers
x-api-versionstring required
Request body
Example request
{
"customer_id": "cus_123",
"plans": [
{
"plan_id": "pro_plan"
},
{
"plan_id": "addon_seats",
"feature_quantities": [
{
"feature_id": "seats",
"quantity": 5
}
]
}
]
}Response
OK
Example response
{
"customer_id": "cus_123",
"invoice": {
"status": "paid",
"stripe_id": "in_1234",
"total": 4900,
"currency": "usd",
"hosted_invoice_url": "https://invoice.stripe.com/..."
},
"payment_url": null
}