POST
/
customers
/
{customer_id}
/
billing_portal
import { Autumn as autumn } from 'autumn-js';

const response = await autumn.customers.billingPortal('user_123', {
  return_url: 'https://example.com/account'
});
{
  "url": "https://billing.stripe.com/session/<hash>"
}

Authorizations

Authorization
string
header
required

Your secret key must be used as the Bearer token for this endpoint.

Path Parameters

customer_id
string
required

ID which you provided when creating the customer

Body

application/json

Response

200 - application/json

The response is of type object.