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
| Status | Meaning |
|---|---|
| 200 | Success. |
| 400 | The request was invalid — see type and message. |
| 401 | Missing or invalid API key. |
| 403 | Key not allowed: IP not in allowlist, account suspended, or live mode not enabled. |
| 404 | The object doesn't exist in this mode. |
| 409 | Idempotency conflict. |
| 500 | Something went wrong on our side. Safe to retry with the same Idempotency-Key. |
Error types
| type | Status | Description |
|---|---|---|
unauthorized | 401 | Missing or invalid API key. |
forbidden | 403 | IP not allowed, account suspended, or live mode unavailable. |
not_found | 404 | Payment, invoice or payout not found. |
validation_error | 400 | A parameter failed validation; see param. |
invalid_json | 400 | Body isn't valid JSON. |
bad_request | 400 | Generic invalid request. |
unknown_asset | 400 | Asset code isn't recognised. |
asset_unavailable | 400 | Asset isn't available in this mode (e.g. no testnet contract). |
asset_disabled | 400 | You've disabled this asset in settings. |
forward_address_missing | 400 | Forward settlement is on but no wallet is configured for the asset. |
unsupported_currency | 400 | price_currency isn't a supported fiat or asset. |
amount_too_small | 400 | Below the asset's minimum payment. |
rate_unavailable | 400 | No price is available for the pair right now; retry shortly. |
invalid_address | 400 | Payout address is invalid for the network. |
insufficient_funds | 400 | Available balance is too low. |
idempotency_conflict | 409 | Idempotency-Key reused with a different body. |
idempotency_in_progress | 409 | The original request is still processing. |
internal_error | 500 | Unexpected error. |