Open a customer's billing page
Open a customer’s billing page for 15 minutes. Call it from your server and send the customer’s browser to url, or hand token to the billing widget. The key’s creator needs Edit on the customer. Refusals include record_not_a_customer, return_url_invalid and return_url_not_allowed. Requires scope: billing:portal.
Authorizations
A Custral API key, created in Settings → Developers → Applications, sent as Authorization: Bearer sk_…. The X-Api-Key header is also accepted and takes precedence. Use a secret key (sk_…) from your server; a publishable key (pk_…) may hold only objects:read and usage:write. Never expose a secret key in a browser.