iCryptoNow

Errors

Errors use standard HTTP status codes and a JSON body with a stable, machine-readable code.

{
  "error": {
    "code": "bad_request",
    "message": "amount must be > 0"
  }
}

Branch on error.code, not on the message: messages are for humans and may change.

General errors

HTTPcodeMeaning
400bad_requestThe request is malformed: invalid JSON, a missing field or a bad value. The message says which.
401unauthorizedAuthentication failed. See Authentication.
403merchant_inactiveYour merchant account is not active.
404not_foundUnknown route, unknown id, or the asset is not enabled for your account.
404chain_not_enabledThe chain is not enabled for your account.
501not_implementedThe chain is enabled but this operation is not available on it yet.
503chain_unavailableThe chain is temporarily unavailable. Retry later.
503unavailableA dependency is temporarily unavailable. Retry with a new signature.
500internalUnexpected error on our side. Retry; contact us with the X-Request-Id if it persists.

Payout errors

Returned by POST /v1/payouts. No payout is created when one of these is returned.

HTTPcodeMeaning
400invalid_requestA field is missing or invalid, for example a bad request_id.
400invalid_addressThe to address is not valid for the chain (bad checksum, wrong format or the zero address).
400internal_addressThe to address belongs to the gateway itself.
404asset_not_enabledThe chain:token is not enabled for payouts on your account.
409vault_not_configuredYour payout vault is not set up yet for this chain.
409request_id_conflictThe request_id was already used with different parameters.
422below_minimumThe amount is below the minimum payout.
422over_per_tx_limitThe total (amount + fee) is over your per-transaction limit.
422over_daily_limitThe total would exceed your daily limit (UTC day).
422insufficient_balanceYour available balance does not cover the total.
423payouts_pausedPayouts are paused for your account.
Chat with us