Try a top-up now
POST
/billing/autotopup/run
const url = 'https://api.sloose.com/billing/autotopup/run';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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.sloose.com/billing/autotopup/run \ --header 'Authorization: Bearer <token>'Runs the same check the balance normally triggers, immediately. Useful after fixing a card.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
key
additional properties
Example
{ "code": "SANDBOX_ORG"}