Skip to main content
POST
Create Credit Checkout Session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
credits
integer
required
credit_type
enum<string>
default:INFRASTRUCTURE

The wallet a credit grant belongs to.

FLEX is only for grants that pre-date split wallets. It is deliberately retained as a migration path so customers can spend the balance they already purchased; new grants must use either INFRASTRUCTURE or AI.

Available options:
INFRASTRUCTURE,
AI,
FLEX
save_payment_method
boolean
default:false

Response

Successful Response

checkout_session_id
string
required
url
string
required