Typescript
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>" }
Get the customer’s Stripe billing portal URL, so they can manage their subscription and see invoice history.
Use your Autumn Secret Key as the Bearer token.
ID which you provided when creating the customer
The response is of type object.
object