Skip to content
Sign in Create account

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_cents integer required
  • available boolean required
  • enabled boolean required
  • has_payment_method boolean required
  • payment_method object or null required

    Any keys are accepted.

  • threshold_cents integer required
  • unavailable_reason string 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

  • 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