Skip to content
For AI agents: a documentation index is available at /llms.txt. Every docs page is also available as markdown: add .md to its URL. To connect, read /agents.md.

Errors

insufficient_balance

The balance does not cover the call.

Status

HTTP 402, title Insufficient balance. One of the money errors. Branch on code, never on the status or the prose.

Retryable: no. Every body carries this as retryable: false, beside action and remedy: the same request will fail again until the request changes or a person acts.

Common causes

  • The balance is lower than the call's price, or its worst-case quote.
  • On one item of a partial Run: the balance ran short mid-Run.

What to do

Action: Tell the Customer to top up the Balance, then repeat the same request.

Top the balance up. On the call itself this means nothing was charged and no work started, so it can be repeated as-is. On one item of a partial Run, the balance ran short mid-Run: the earlier items were charged, this one was not.

Example

The body arrives as application/problem+json, with retryable and the remedy above. Most responses add detail about the occurrence, and some add fields of their own.

{
  "type": "https://www.shortsintel.com/docs/reference/errors/insufficient_balance",
  "title": "Insufficient balance",
  "status": 402,
  "code": "insufficient_balance",
  "retryable": false,
  "action": "Tell the Customer to top up the Balance, then repeat the same request.",
  "remedy": "Top the balance up. On the call itself this means nothing was charged and no work started, so it can be repeated as-is. On one item of a partial Run, the balance ran short mid-Run: the earlier items were charged, this one was not."
}