Skip to content

Card payments for credits

GET
/billing
curl --request GET \
--url https://api.global.stillbox.example/v1/billing \
--header 'Authorization: Bearer <token>'

Whether this region takes card payments, the saved card (brand and last digits only), automatic top-up, and the last 50 payments with their invoices. Without card payments, credits are added by invoice.

Billing

Media typeapplication/json
object
card_payments
required

Whether this region takes card payments; otherwise credits are added by invoice.

boolean
card_required
required

Sandboxes can’t run until a card is verified (the free tier’s card check) or credits are added.

boolean
card_verified
required
boolean
card_check
required

Whether owners can save a card without a payment (POST /billing/card-check); automatic top-ups charge the saved card.

boolean
card

The saved card, which automatic top-ups charge.

object
brand
required
string
last4
required
string
auto_topup
required
object
enabled
required
boolean
below_usd
required

Top up when the balance falls below this (0 to 1,000).

number format: double
amount_usd
required

Credits added each time (10 to 1,000), before tax.

number format: double
payments
required
Array<object>
object
id
required
string
kind
required
string
Allowed values: checkout topup card_check
amount_usd
required
number format: double
state
required
string
Allowed values: open paid failed expired
invoice_url
string
error
string
created_at
required
string format: date-time

Example

{
"payments": [
{
"kind": "checkout",
"state": "open"
}
]
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}