Billing Topup Amounts
GET /api/v1/billing/topup-amounts
Returns the configured top-up amount entries and currency for the authenticated account. 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 Configured top-up entries and currency for the authenticated account.
application/json object
amountsarray of object requiredEach item:
amount_centsinteger requiredlabelstring requiredpopularboolean required
currencystring required
Generated sample
{
"amounts": [
{
"amount_cents": 0,
"label": "string",
"popular": true
}
],
"currency": "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