Cancel a customer's plan
Set the customer’s plan to end at the end of its period. Nothing is charged or refunded. Unlike the billing page, this skips the page’s settings and any running contract. A customer with no subscription is plan_no_subscription. 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.