POST /api/v1/billing/checkout
Requires billing.write permission. Creates a Stripe-hosted checkout session for the selected plan. Redirect the user to the returned URL to complete payment.
Request body
The plan to purchase. One of
pro or enterprise.URL to redirect to after a successful checkout. Must be a valid URI.
URL to redirect to if the user cancels checkout. Must be a valid URI.
Response
Stripe-hosted checkout URL. Redirect the user to this URL to complete the purchase.
Errors
| Status | When |
|---|---|
400 | Request body is invalid or missing required fields |
401 | Missing or invalid Bearer token |
403 | Caller lacks billing.write permission |
500 | Billing provider error (Stripe unreachable or misconfigured) |