latestOpenAPI 3.1.02026-08-20866385.9 KB

a4b69f6d2450

billing

Create Credit Pack Checkout

One-time Stripe Checkout to buy a prepaid credit pack (PAYG tier).

Unlike the subscription checkout, this is mode="payment" — a single charge of credits × $0.15 with no recurring plan. The card is collected here (a PAYG org needs none until its first purchase). Multiple concurrent purchases are legitimate, so this does NOT use the one-subscription-per-org single-flight guard; a Stripe idempotency_key guards double-clicks and the webhook credits the ledger idempotently via a UNIQUE stripe_ref.

post/api/billing/credits/checkout

Request body

creditsinteger required

Response

Successful Response

checkout_urlstring required