---
title: "Errors"
description: "One error envelope, stable codes."
---

<Info>
  Applies to the new routes.
</Info>

Every error has the same envelope:

```json
{
  "code": "INSUFFICIENT_BALANCE",
  "message": "Your USD balance is too low for this payout.",
  "details": { "available": "120.00", "required": "153.00", "currency": "USD" },
  "requestId": "req_8f21c4…"
}
```

Use `code` in your code (it never changes); `message` is for people and may change.

| HTTP | `code` | When |
|---|---|---|
| 400 | `VALIDATION_ERROR` | A field is missing or wrong; `details.fields[]` lists `{ field, issue }` |
| 401 | `UNAUTHENTICATED` | No or bad token or client secret |
| 401 | `TOKEN_EXPIRED` | Get a new token |
| 401 | `WRONG_ENVIRONMENT` | Sandbox token on live, or the reverse |
| 403 | `INSUFFICIENT_SCOPE` | The key lacks the scope |
| 403 | `STEP_UP_REQUIRED` | Dashboard actions only: confirm with your two-step code |
| 403 | `ACCOUNT_NOT_VERIFIED` | The account (or the account holder you act on) is not verified yet |
| 409 | `ACCOUNT_FROZEN` | The account holder is frozen (by you, or closed for compliance) |
| 409 | `not_enabled` | Held payments, internal transfers, and cash-outs are guarded off on this environment |
| 403 | `RECIPIENT_NOT_ALLOWED` | We can't send money to this recipient. Contact info@storsapp.com |
| 403 | `METHOD_NOT_ENTITLED` | This route or country is not enabled for your account |
| 404 | `NOT_FOUND` | Not found, or not yours |
| 409 | `STATE_CONFLICT` | The resource is not in a state that allows this (for example cancelling a payout already processing) |
| 409 | `CLIENT_REF_REUSED` | See [Idempotency](/concepts/idempotency) |
| 409 | `IDEMPOTENCY_KEY_IN_PROGRESS` | See [Idempotency](/concepts/idempotency) |
| 409 | `QUOTE_EXPIRED` / `QUOTE_ALREADY_USED` | See [Quotes](/concepts/money-and-amounts#quotes) |
| 409 | `BALANCE_NOT_ZERO` | An account can be closed only with a zero balance |
| 422 | `IDEMPOTENCY_KEY_REUSED` | See [Idempotency](/concepts/idempotency) |
| 422 | `QUOTE_INTENT_MISMATCH` | See [Quotes](/concepts/money-and-amounts#quotes) |
| 422 | `INSUFFICIENT_BALANCE` | Not enough available balance; nothing was taken |
| 422 | `AMOUNT_TOO_SMALL` | Below the minimum for that route; `details.minimum` |
| 422 | `SANDBOX_VALUE_ON_LIVE` | A sandbox test value was sent to live |
| 429 | `RATE_LIMITED` | Wait `Retry-After` seconds |
| 503 | `CORRIDOR_UNAVAILABLE` | That country or route is temporarily unavailable |
| 503 | `PAYOUTS_PAUSED` | Payouts are briefly paused; retry after `Retry-After` |
| 500 | `INTERNAL_ERROR` | Our fault; retry with the same `clientRef` |

Amounts above a route's per-payment limit are not an error: the payout is split and every part is sent at once (see `legs` on the payout).

## Failed payouts

A payout that fails has `status: "failed"`, a stable `failureCode` and one of three `failureCategory` values:

| `failureCategory` | Meaning | What to do |
|---|---|---|
| `technical_error` | Something went wrong in delivery | Retry later with a new `clientRef` |
| `recipient_details` | The account, phone or name is wrong | Ask the recipient to check their details |
| `payment_not_approved` | The delivery network did not approve the payment | Contact info@storsapp.com |

`returnStatus` tells you whether the money is back in your balance (`pending` or `returned`).

## September v1 API errors

The September v1 API keeps its own envelope, `{ "error": "…", "message": "…" }`:

| HTTP | `error` |
|---|---|
| 400 | `validation_error`, `recipient_required` |
| 401 | `unauthorized` |
| 402 | `insufficient_balance` |
| 403 | `partner_suspended`, `escrow_not_enabled`, `corridor_not_available` |
| 404 | `recipient_not_found`, `payout_not_found` |
| 409 | `not_held`, `duplicate_reference` |
| 429 | `rate_limited` |
