Update agency auto-recharge
Turn your agency wallet’s auto-recharge on or off, and choose the plan it buys. Switching it on needs a working billing card, added in the dashboard.
On permits automatic charges to that card. This call charges nothing itself; once the balance is below the threshold it buys the plan within 5 minutes of the call that takes it there, or within the hour if already low, and repeating this call can allow another purchase while it stays low. Your agency’s mode, set by our team, decides how: automatic mode charges the card, at most 5 times in any 24 hours; approval mode raises a request our team approves first.
thresholdMinutes is the balance it buys at; self-serve agencies cannot set it. A plan that would put rebilled sub-accounts below cost comes back as marginWarning, and is saved anyway.
Allowed customer roles: agency_admin. The agency is the one the credential belongs to.
Required API key scope: billing:write.
Authorizations
Send your API key as Authorization: Bearer YOUR_API_KEY.
Headers
Optional. A request that finished, with a success or a refusal, answers a retry with its first answer and idempotentReplay: true, and nothing runs again. Once the cause of a refusal is fixed, try again with a new key. After a 5xx the same key runs the request again.
8 - 255Body
The setting.
On or off.
The plan it buys. Leave out to keep the current one. A plan your price list does not include answers PLAN_NOT_FOUND; BRONZE is on self-serve price lists only.
BRONZE, SILVER, GOLD, DIAMOND Buy when the balance falls to this many minutes. Only for an agency our team manages.
10 <= x <= 200