Billing Auto Topup
GET /api/v1/billing/auto-topup
Returns the authenticated account’s auto top-up settings and saved payment-method availability. Requires an authenticated user with the billing.read ability or * wildcard on a bearer access token. Browser session authentication uses the account session.
Authenticate with a portal session token.
Responses
200 Auto top-up settings and availability.
application/json object
amount_centsinteger requiredavailableboolean requiredenabledboolean requiredhas_payment_methodboolean requiredpayment_methodobject or null requiredAny keys are accepted.
threshold_centsinteger requiredunavailable_reasonstring or null required
Generated sample
{
"amount_cents": 0,
"available": true,
"enabled": true,
"has_payment_method": true,
"payment_method": {},
"threshold_cents": 0,
"unavailable_reason": "string"
}401 Authentication is missing or invalid.
application/json object
errorobject requiredcodestring requiredValue:"unauthenticated"messagestring required
403 The bearer token lacks the required ability or the authenticated account lacks the required permission.
application/json any
Any of
- object
errorstring requiredValue:"token_ability_missing"havearray of string requiredmessagestring requiredrequiredarray of string required
- object
messagestring required
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string