# Errors

Every error is JSON with a stable error code to branch on and a message written to be shown to people as is.

Every error is JSON with a stable `error` code to branch on and a `message` you can show as is. 4xx means the request can be fixed; 5xx means retry later (with the same idempotency key for orders).

400 Bad Request:

```json
{
  "error": "not_activated",
  "message": "This address isn't activated yet. Add activation to the order, or send it any amount of TRX first."
}
```

| HTTP | error | When |
| --- | --- | --- |
| 400 | `bad_request` | The body isn't a JSON object, or is over 4 KB. |
| 400 | `bad_address` | address is missing, not a TRON address, or fails its checksum. |
| 400 | `bad_package` | Unknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d. |
| 400 | `bad_currency` | currency is neither TRX nor USDT. |
| 400 | `bad_recipient` | recipient isn't holder or empty, or recipientAddress isn't a TRON address. |
| 400 | `bad_client_key` | clientKey isn't 8 to 64 letters, digits, - or _. |
| 400 | `bad_kind` | kind is neither energy nor activation. |
| 400 | `too_many_addresses` | More than 20 addresses in one activation order. |
| 400 | `bad_limit` | limit isn't a whole number in range. |
| 400 | `bad_txid` | tx isn't 64 hex characters. |
| 400 | `bad_sender` | The sender isn't a valid TRON address, or can't send this. |
| 400 | `bad_amount` | The amount is missing, too small, or more than the sender holds. |
| 400 | `bad_bundle` | bundle isn't 1, 3 or 5. |
| 400 | `same_address` | Sender and recipient are the same. |
| 400 | `not_activated` | The address has never received TRX. Activate it first, or add `activate: true`. |
| 400 | `contract_address` | The address is a smart contract; energy goes to wallets only. |
| 400 | `idempotency_key_required` | An order paid from the balance needs an Idempotency-Key header. |
| 400 | `bad_idempotency_key` | Idempotency-Key isn't 8 to 64 letters, digits, - or _. |
| 401 | `missing_api_key` | This endpoint needs an API key: `Authorization: Bearer fb_live_…`. |
| 401 | `invalid_api_key` | The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored. |
| 401 | `api_key_revoked` | The key was revoked in Settings › API keys. |
| 402 | `insufficient_balance` | The balance doesn't cover the order. Nothing was charged. |
| 403 | `insufficient_scope` | The key lacks the scope this endpoint needs (`read` or `order`). |
| 403 | `account_closed` | The key's account is closed. |
| 403 | `screening` | The address is on Tether's USDT blacklist or the OFAC sanctions list. |
| 403 | `sanctioned` | The sender or recipient is on a sanctions or blacklist. |
| 403 | `blocked` | This sender can't use the send tool right now (too many unpaid sends). |
| 404 | `not_found` | No order (or transaction) with that id. |
| 409 | `idempotency_conflict` | This Idempotency-Key was used for a different order, or the header and clientKey differ. |
| 409 | `already_activated` | An address in an activation order is already activated. Remove it and order again. |
| 409 | `price_changed` | The send fee rose since your quote (expectedFee). Quote again. |
| 409 | `too_soon` | The sender already has a send open. Finish or wait for it. |
| 422 | `no_source` | No energy source can fill this plan right now. Try fewer transfers or later. |
| 429 | `rate_limited` | Too many calls (per IP, or per key with a key). Wait for Retry-After seconds. |
| 500 | `internal` | Our fault. It's recorded and alerted; retry (with the same idempotency key). |
| 502 / 503 | `upstream` | The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds. |
| 503 | `busy` | Too many orders wait for payment right now. Retry in a minute. |
| 503 | `activation_unavailable` | Activation can't be added right now. Send the address any amount of TRX first. |
| 503 | `activation_busy` | Activation is paused for now (the daily limit is reached). Try later, or send the address any amount of TRX. |
| 503 | `payments_off` | Ordering is paused. Quotes and checks still work. |
| 503 | `send_off` | The send tool is paused. |

---

HTML: https://feebolt.com/developers/errors/ · OpenAPI: https://feebolt.com/developers/openapi.json · All docs as one Markdown file: https://feebolt.com/developers/full.md
