Create credit checkout

http
POST /accounts/{account_id}/credits/checkouts

Start a Stripe checkout to buy a credit package for an account, or for the account that owns a project; returns the checkout URL. Requires account.billing.manage.

Parameters

NameInRequiredDescription
account_idpathYes

Request body

FieldTypeRequiredDescription
package_idstringYes
project_referencestringProject UUID or slug for an owner-pays top-up: the project owner’s wallet and effective price apply. Naming a project also requires project.read on it.
success_urlstring
cancel_urlstring

Responses

StatusDescription
200Stripe checkout session for the credit package.
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error