Object
The error object
Every error response has this shape. Branch on code, never on message.
Fields
codestringrequiredStable machine-readable code. Clients must accept unknown codes. Defined in 1.0:
Code Status Meaning invalid_request400 Malformed JSON, unknown parameter or bad cursor idempotency_key_missing400 POST without Idempotency-Keyunauthorized401 Missing, invalid or revoked key key_environment_mismatch401 Sandbox key on production or the reverse forbidden403 Key scope does not allow the action sandbox_only403 Sandbox endpoint called with a production key user_not_approved403 KYC or terms status is not approveduser_deactivated403 User is deactivated not_found404 Object does not exist for this integrator idempotency_key_reused409 Same key, different body idempotency_request_in_progress409 Same key, original request still running external_reference_exists409 fieldisexternal_reference;existing_idnames the userwallet_exists409 User already has a wallet in this asset user_has_balance409 Deactivation refused while a wallet holds funds user_has_open_transfers409 Deactivation refused while a transfer is open transfer_not_cancelable409 Transfer has posted or is final payout_account_in_use409 A pending off-ramp targets this account invalid_state409 Object is not in a state that allows the action validation_failed422 One or more fields invalid; see detailsinvalid_amount_precision422 More decimal places than the asset allows amount_below_minimum422 Below the route minimum amount_above_maximum422 Above the route maximum insufficient_funds422 Available balance too low amount_exceeds_cashable422 Off-ramp above the purchased points still held; earned points cannot be cashed out same_source_and_destination422 Source and destination wallet are the same asset_mismatch422 Wallets hold different assets, and this is not a conversion price_risk_not_acknowledged422 NdeipiCoin wallet created without acknowledge_price_risk: truequote_required422 Conversion without a quote_idquote_mismatch422 Quote's assets, wallets or amount differ from the transfer quote_expired422 Quote's expires_athas passed; request a new onequote_used409 Quote already settled a conversion insufficient_liquidity422 Ndeipi's NdeipiCoin stock, or the treasury backing new points, is too low for this size; try a smaller amount later unsupported_route422 No route for this source and destination limit_exceeded422 Per-user or per-transfer limit; limitnames itsanctions_match422 Payout beneficiary failed screening rate_limited429 Over the key's rate limit provider_unavailable503 Ramp provider down; request refused internal_error500 Unexpected server error messagestringrequiredHuman-readable. Never contains the API key or personal data.
fieldstringJSON path of the offending request field, where there is one.
detailsarray of objectPer-field failures for
validation_failed.existing_idstringFor conflicts with an existing object, its ID.
limitobjectFor
limit_exceeded, the limit breached.limit.namestringlimit.amountstringNon-negative decimal string. Precision is limited per asset or currency (see
Route).limit.assetstringlimit.resets_attimestamprequest_idstringrequired
{
"code": "insufficient_funds",
"message": "The source wallet's available balance is too low for this transfer.",
"field": "amount",
"request_id": "req_01JA8ZC4QK7N2Y5W3V0T9S8R6P"
}