budget_exhausted
Spending cap reached
PreviewThis code is in preview: it may change or disappear before it becomes
stable. The refusal of a call by a spending cap or a mission budget (budget_exhausted) belongs to paid use, published as preview first.
| Code | budget_exhausted |
|---|---|
| HTTP status | 429 |
| Responsible | caller: The caller (the agent or the person behind it) |
| Retryable | yes (after retry_after_s seconds, which this error always gives) |
| Where it appears | Inside an MCP tool result (the HTTP response itself is 200, with isError: true). |
| Charged | Nothing. No error uses quota or charges money. |
What it means
This account has reached one of its spending caps, such as the daily cap on paid calls. Zando did not run the request and charged nothing.
What an agent should do
- Do not retry before
retry_after_sseconds: the cap resets then. - Call the
accounttool to see each limit and when it resets. - Tell the user the spending cap is reached and when calls will be possible again.
The error's next_actions come first: they are written for this exact error (a call to send
instead, something to tell the user, this page). Tell the user the error's detail: its first
sentence is written to be read as is.
What a person should do
Wait until the time given by the agent: the cap resets on its own. Nothing was charged for the refused call.
Example
The error object is the same on every channel; only the order of next_actions follows the
channel. Ids, times and values below are examples.
As an MCP tool result (structuredContent)
{
"ok": false,
"contract_version": "1.6",
"call_id": "call_8hQ2xV4mN7pR",
"chain_id": "chn_3kT9wB6yL1sD",
"charged_micros": 0,
"currency": "usd",
"error": {
"type": "https://zando.ai/docs/errors/budget_exhausted",
"code": "budget_exhausted",
"title": "Spending cap reached",
"status": 429,
"detail": "This account has reached its spending cap for now, so Zando did not run the request. Nothing was charged.",
"origin": "zando",
"responsible": "caller",
"retryable": true,
"retry_after_s": 5400,
"param": null,
"allowed": null,
"call_id": "call_8hQ2xV4mN7pR",
"chain_id": "chn_3kT9wB6yL1sD",
"charged_micros": 0,
"currency": "usd",
"next_actions": [
{
"type": "docs",
"url": "https://zando.ai/docs/errors/budget_exhausted"
}
]
}
}