Storspay Docs
Support

Errors

One error envelope, stable codes.

Applies to the new routes.

Every error has the same envelope:

{
  "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.

HTTPcodeWhen
400VALIDATION_ERRORA field is missing or wrong; details.fields[] lists { field, issue }
401UNAUTHENTICATEDNo or bad token or client secret
401TOKEN_EXPIREDGet a new token
401WRONG_ENVIRONMENTSandbox token on live, or the reverse
403INSUFFICIENT_SCOPEThe key lacks the scope
403STEP_UP_REQUIREDDashboard actions only: confirm with your two-step code
403ACCOUNT_NOT_VERIFIEDThe account (or the account holder you act on) is not verified yet
409ACCOUNT_FROZENThe account holder is frozen (by you, or closed for compliance)
409not_enabledHeld payments, internal transfers, and cash-outs are guarded off on this environment
403RECIPIENT_NOT_ALLOWEDWe can't send money to this recipient. Contact info@storsapp.com
403METHOD_NOT_ENTITLEDThis route or country is not enabled for your account
404NOT_FOUNDNot found, or not yours
409STATE_CONFLICTThe resource is not in a state that allows this (for example cancelling a payout already processing)
409CLIENT_REF_REUSEDSee Idempotency
409IDEMPOTENCY_KEY_IN_PROGRESSSee Idempotency
409QUOTE_EXPIRED / QUOTE_ALREADY_USEDSee Quotes
409BALANCE_NOT_ZEROAn account can be closed only with a zero balance
422IDEMPOTENCY_KEY_REUSEDSee Idempotency
422QUOTE_INTENT_MISMATCHSee Quotes
422INSUFFICIENT_BALANCENot enough available balance; nothing was taken
422AMOUNT_TOO_SMALLBelow the minimum for that route; details.minimum
422SANDBOX_VALUE_ON_LIVEA sandbox test value was sent to live
429RATE_LIMITEDWait Retry-After seconds
503CORRIDOR_UNAVAILABLEThat country or route is temporarily unavailable
503PAYOUTS_PAUSEDPayouts are briefly paused; retry after Retry-After
500INTERNAL_ERROROur 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:

failureCategoryMeaningWhat to do
technical_errorSomething went wrong in deliveryRetry later with a new clientRef
recipient_detailsThe account, phone or name is wrongAsk the recipient to check their details
payment_not_approvedThe delivery network did not approve the paymentContact 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": "…" }:

HTTPerror
400validation_error, recipient_required
401unauthorized
402insufficient_balance
403partner_suspended, escrow_not_enabled, corridor_not_available
404recipient_not_found, payout_not_found
409not_held, duplicate_reference
429rate_limited