Skip to content

Try a top-up now

POST
/billing/autotopup/run
curl --request POST \
--url https://api.sloose.com/billing/autotopup/run \
--header 'Authorization: Bearer <token>'

Runs the same check the balance normally triggers, immediately. Useful after fixing a card.

The outcome of the attempt.

Media typeapplication/json

What the attempt did, or why it did nothing.

object
key
additional properties
Examplegenerated
{
"additionalProperty": "example"
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

The bearer’s role is too low, or it was issued for a different org.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

This org is a sandbox. Billing is managed on its production org.

Media typeapplication/json
object
error
required
string
code
required
string
Allowed values: SANDBOX_ORG
key
additional properties
Example
{
"code": "SANDBOX_ORG"
}