v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Billing

Update Auto Recharge

Update auto-recharge settings atomically.

  • enabled (required) – enable or disable auto-recharge.
  • threshold (optional) – the credit balance that triggers a top-up.
  • qty (optional) – the amount of credits to add per top-up.

When enabling, the account must have met the minimum spending threshold (fraud-prevention measure). qty must be ≥ $25.

Context (personal vs org) is derived from the API key. Returns the updated settings + eligibility (same shape as GET).

put/v0/billing/auto-recharge

Request body

enabledboolean required
thresholdnumber nullable
qtynumber nullable

Response

Auto-recharge settings updated

enabledboolean
thresholdnumber
qtynumber
min_recharge_amountnumber
eligibleboolean
total_spendingnumber
minimum_spend_requirednumber
remaining_spend_needednumber
has_payment_methodboolean
blocked_reasonstring nullable