Buy credits by card
POST
/billing/checkout
const url = 'https://api.global.stillbox.example/v1/billing/checkout';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount_usd":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/billing/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount_usd": 1 }'Returns the address of the payment provider’s page (Stripe or Dodo Payments, set per region). The credits are added when the provider confirms the payment, and the card is saved for automatic top-ups. Tax, such as UAE VAT, is added on the invoice. Owners only.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amount_usd
required
Credits to buy, before tax (10 to 5,000).
number format: double
Example generated
{ "amount_usd": 1}Responses
Section titled “Responses”The payment page
Media typeapplication/json
object
url
required
string
Example generated
{ "url": "example"}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}