Skip to content

Buy credits by card

POST
/billing/checkout
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.

Media typeapplication/json
object
amount_usd
required

Credits to buy, before tax (10 to 5,000).

number format: double

Example generated

{
"amount_usd": 1
}

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"
}