Skip to main content

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

Successful Response