v1

latestOpenAPI 3.1.02026-07-265817860.8 KB
billing

Create a billing portal session for a customer to manage their subscription.

post/v1/billing.open_customer_portal

Headers

x-api-versionstring required

Request body

customer_idstring required

The ID of the customer to open the billing portal for.

configuration_idstring

Stripe billing portal configuration ID. Create configurations in your Stripe dashboard.

return_urlstring

URL to redirect to when back button is clicked in the billing portal

Example request

{
  "customer_id": "cus_123",
  "return_url": "https://useautumn.com"
}

Response

OK

customer_idstring required

The ID of the billing portal session

urlstring required

URL to the billing portal

Example response

{
  "customer_id": "cus_123",
  "url": "https://billing.stripe.com/session/..."
}