Top up the balance
Charges one of the space's payment methods and deposits the amount to the balance. The minimum is 5,000,000 microdollars (5.00 USD), and the amount must be a whole number of cents.
Every top-up needs an Idempotency-Key header, a key you generate, so the request is safe to retry. Repeating a request with the same key and the same body replays the original top-up and returns 200 with the same balance adjustment instead of charging the card again; the first successful request returns 201. The same key with a different body is rejected with 400, and a top-up still in flight for that key returns 409.
A declined card returns 422 with the processor's decline_code rather than the standard validation body. Cards are added in the Dashboard; List payment methods returns the ids to charge.
Permissions
Authenticate with a Personal access token whose holder is an owner or admin of the space. A project API token is not accepted on this endpoint, and a Personal access token has no scopes: the holder's role in the space is the whole authorization decision.
Headers
A key you generate that makes the top-up safe to retry. Reusing it with the same body replays the original top-up; reusing it with a different body is rejected.
Request body
Example request
{
"amount_in_microdollars": 25000000
}Response
The request has succeeded.
Example response
{
"type": "balance_adjustment",
"kind": "balance_top_up",
"amount_in_microdollars": 25000000,
"amount": 25,
"created_at": "2026-08-20T14:19:00Z",
"payment_method_last4": "4242"
}Changes
Changed in 1 of the 161 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 161 revisions, 3 have a changelog that could not be searched.