/api/v1/billing/checkoutCreate Stripe checkout session for credit purchase
Parameters
Idempotency-Keyheaderrequired· stringStable caller-provided key used to make this mutation retry-safe.
Request Body· required
application/jsonSandboxBillingCheckoutRequestamount_centsinteger · int64requiredAmount in cents
cancel_urlstringrequiredproduct_idstringrequiredProduct context for checkout display and metadata; purchased top-ups are account-scoped
success_urlstringrequired
Responses
- 200OK
application/jsonBillingURLResponseurlstringrequired
- defaultError
application/problem+jsonErrorModeldetailstringA human-readable explanation specific to this occurrence of the problem.
errorsarray of ErrorDetailOptional list of individual error details
locationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring · uriA URI reference that identifies the specific occurrence of the problem.
statusinteger · int64HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring · uriA URI reference to human-readable documentation for the error.