Skip to content
Reference

Errors

Errors use conventional HTTP status codes and a consistent JSON body you can branch on.

400 Bad Request
{
  "error": {
    "type": "validation_error",
    "message": "price_amount: must be a positive number",
    "param": "price_amount"
  }
}

type is stable and machine-readable; message is human-readable and may change. param is present on validation errors.

Status codes

StatusMeaning
200Success.
400The request was invalid — see type and message.
401Missing or invalid API key.
403Key not allowed: IP not in allowlist, account suspended, or live mode not enabled.
404The object doesn't exist in this mode.
409Idempotency conflict.
500Something went wrong on our side. Safe to retry with the same Idempotency-Key.

Error types

typeStatusDescription
unauthorized401Missing or invalid API key.
forbidden403IP not allowed, account suspended, or live mode unavailable.
not_found404Payment, invoice or payout not found.
validation_error400A parameter failed validation; see param.
invalid_json400Body isn't valid JSON.
bad_request400Generic invalid request.
unknown_asset400Asset code isn't recognised.
asset_unavailable400Asset isn't available in this mode (e.g. no testnet contract).
asset_disabled400You've disabled this asset in settings.
forward_address_missing400Forward settlement is on but no wallet is configured for the asset.
unsupported_currency400price_currency isn't a supported fiat or asset.
amount_too_small400Below the asset's minimum payment.
rate_unavailable400No price is available for the pair right now; retry shortly.
invalid_address400Payout address is invalid for the network.
insufficient_funds400Available balance is too low.
idempotency_conflict409Idempotency-Key reused with a different body.
idempotency_in_progress409The original request is still processing.
internal_error500Unexpected error.