Create billing portal session
POST/api/billing/portal
x-audience: "session"
Browser session only, signed-in account owner. No body. Origin must exactly match the configured application origin. Requires an existing Stripe customer. Returns hosted billing portal URL. Cancellation takes effect at the end of the current billing period. The paid plan continues until then.
Responses
- 200
- 401
- 403
- 404
- 409
- 429
- 503
Success
Missing, invalid or revoked credentials.
Required scope or account access missing.
account missing.
Existing subscription/conflicting billing operation where applicable.
Shared client-IP or account request allowance exhausted. Retry after the indicated number of seconds. Browser authentication errors can use a different response format.
Response Headers
no-store
Seconds to wait before retrying.
Billing/provider unavailable. Shared request limiting can also return 503 rate_limit_unavailable with Cache-Control: no-store.
Response Headers
Request limiter responses use no-store.