Create a the billing provider checkout session
POST/api/v1/credits/checkout
Create a the billing provider custom checkout session for purchasing credits.
The caller's organization public_id and user public_id are
embedded as metadata on the billing provider checkout so the webhook receiver can
route the eventual credit grant back to the right tenant.
- Scope required:
billing:manage. - Role required: manager or above on the organization.
- Rate-limit tier:
billing(10/hour per user). - Returns 501 if the billing provider is not configured in this environment.
- Returns 502 on any non-201 response from the billing provider API.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Successful Response
Bad request — malformed input or failed validation.
Missing, expired, or invalid credentials.
Authenticated but not authorized for this resource. Note: cross-organization reads return 404, not 403.
Resource not found, or hidden for tenant-enumeration safety (the caller lacks permission to know whether the resource exists).
Conflict — the current resource state does not allow this operation (e.g. assessment already started, email already in use).
Semantic validation failure — request shape was valid but contents were not.
Too many requests — rate limited. Retry after the window resets.
Internal server error — unexpected failure.