Skip to content
Sign in Create account

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

  • amounts array of object required

    Each item:

    • amount_cents integer required
    • label string required
    • popular boolean required
  • currency string required

Generated sample

{
  "amounts": [
    {
      "amount_cents": 0,
      "label": "string",
      "popular": true
    }
  ],
  "currency": "string"
}
401 Authentication is missing or invalid.

application/json object

  • error object required
    • code string required
      Value: "unauthenticated"
    • message string required
403 The bearer token lacks the required ability or the authenticated account lacks the required permission.

application/json any

Any of

  • object
    • error string required
      Value: "token_ability_missing"
    • have array of string required
    • message string required
    • required array of string required
  • object
    • message string required
429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string