Skip to content
Sign in Create account

List available top-up amounts

GET /api/billing/checkout/amounts

Returns the configured top-up amount entries and currency for the authenticated account. Checkout creation is handled by POST /api/billing/checkout/topup.

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
  • currency string required

Generated sample

{
  "amounts": [
    {
      "amount_cents": 0
    }
  ],
  "currency": "string"
}
401 Missing or invalid bearer token.

application/json object

Any keys are accepted.

403 The caller does not meet the route requirements: accepted Terms of Service and Privacy Policy.

application/json object

Any keys are accepted.

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