TypeScript
import { Autumn } from 'autumn-js'; const autumn = new Autumn(); const { data, error } = await autumn.customers.billingPortal('customer_id');
{ "customer_id": "<string>", "url": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
URL to redirect to when back button is clicked in the billing portal.
The ID of the customer
URL to the billing portal