Skip to main content
API errors normally return {"error":{"code":"...","message":"..."}}. This page covers common integration errors, not every endpoint-specific code. Attestation uses a separate response shape.

Authentication

  • unauthorized, auth_required (401): missing or invalid credentials.
  • forbidden (403): key cannot access the endpoint or resource.
  • partner_disabled (403): disabled account.
  • account_pending_approval, account_rejected (403): account approval required when enforcement is enabled.
  • scope_required (403): missing client scope.
  • origin_required, origin_not_allowed (403): missing or disallowed browser origin.
  • read_token_required (403): missing client read token.
  • invalid_read_token (403): expired token or wrong key, order, or quote.
  • client_key_fee_fields_forbidden (403): client request includes server-only fee fields.
  • turnstile_required, turnstile_failed (403): missing or rejected browser verification, when enabled.
See Authentication for token binding and endpoint restrictions.

Idempotency

  • missing_idempotency_key (400): missing X-Idempotency-Key.
  • invalid_idempotency_key (400): key outside 1 to 255 printable ASCII characters.
  • idempotency_conflict (409): same key, different body.
  • idempotency_in_progress (409) means the original request is still executing. Retry with the same key and body. Honor Retry-After when present.
  • quote_preparation_expired and quote_preparation_review_required (410) close a quote attempt. Follow the quote retry instructions to determine whether to request a new quote or contact support.

Request validation

  • invalid_request, validation_error (400): invalid request fields.
  • invalid_query (400): invalid query, such as status without exactly one selector.
  • invalid_address (400): recipient or refund address invalid for its chain.
  • invalid_refund_address (400): refund address has the wrong format for its chain, or is a known token contract or burn address. See Rules.
  • invalid_source_address (400): an EVM sourceAddress is neither lowercase nor EIP-55 checksummed.
  • unsupported_refund_target (400): a BOLT12 offer was sent as the refund target of a Lightning-source quote.
  • invalid_tx_hash (400): invalid source-chain transaction hash.
  • ambiguous_query (400): transaction hash matches multiple orders.
  • invalid_payout_destination, invalid_payout_address (400): unsupported payout route or invalid address.
  • invalid_webhook_url (400): rejected webhook URL.
  • not_found (404): missing resource or different partner’s resource.
  • payload_too_large (413): body exceeds 1 MiB.
  • unsupported_media_type (415): body is not JSON.

Routing and amounts

These errors return HTTP 400:
  • unsupported_route: destination outside the source’s route.to.
  • unsupported_amount_mode: exact-out route outside exactOutTo, or exact-out or fixed delivery with a token named by address.
  • unsupported_delivery_mode: fixed delivery with exact-out.
  • fixed_delivery_unsupported_route: route does not support fixed delivery.
  • fixed_delivery_unavailable: fixed delivery unavailable for route or partner.
  • unsupported_fee_plan: route does not support fee settlement.
  • unsupported_asset: USD exact-out target uses a non-USD-stablecoin destination.
  • invoice_required: USD exact-out requires invoice billing.
  • amount_too_small, amount_too_large: amount outside route bounds.
  • amount_exceeds_liquidity: amount exceeds what the route can fill now.
  • price_impact_too_high: price impact exceeds the cap.
  • route_disabled: route turned off.
  • xchain_source_route_unavailable: no provider can accept this source for the pair now.
  • destination_bolt11_expired: the Lightning invoice sent as recipientAddress has expired. Request a new invoice.
  • invoice_expiring_soon: the invoice has under 20 seconds left when quoted. Request a new invoice.
Other statuses in this group:
  • invoice_already_paid (409): the destination invoice was already paid.
  • invoice_in_flight (409): the invoice is already in use for another payout. Check the original quote or order before trying again.
  • partner_route_blocked (403): the route is not enabled for your account.
  • tag_not_allowed (403) means the tag is blocked or the account requires an approved tag for this endpoint and route. It applies to /quote, /offramp, and /onramp.
  • onramp_cap_exceeded (403): the daily volume limit for /onramp and Lightning-source quotes is reached.
  • estimate_unavailable (503): pricing is unavailable. Retry with backoff.
  • quote_unavailable (503) can mean a temporary failure. Retry with the same key and body. If the response says the attempt is closed, request a new quote with a new key only if you have sent no funds. If you have paid, check the original quote’s status. See Idempotency.

Address screening

Screening runs on the recipient, refund, and sender addresses of a request. No response says which address matched. See Risk & compliance.
  • sanctioned_address (403): screening refused an address in the request. The cause can be a sanctions list or another risk finding, and the response does not say which. Do not record the user as sanctioned on this code alone.
  • screening_blocked (403): an address in the request cannot be serviced, including one on the manual block list.
  • provider_policy_rejected (400): the third-party venue for this route refused it under its own address policy and did not identify the address. The response is cached under the idempotency key; use a new key once the restriction is resolved.
  • screening_unavailable, sanctions_list_unavailable (503): screening could not run. Retry later.
A standing-deposit refund request returns sanctioned_address and screening_blocked as 409.

Lightning invoices

POST /v1/lightning/decode returns these, all HTTP 400:
  • invalid_bolt11_invoice: the string is not a valid BOLT11 invoice.
  • unsupported_invoice_type: LNURL, Lightning address, or BOLT12 offer.
  • unsupported_invoice_network: invoice for an unsupported network.
The endpoint caps bodies at 128 KiB and returns 413 payload_too_large above that.

Tokens by address

A source or destination named by contract address or mint can also return these, all HTTP 400 except where noted. See Any token.
  • invalid_token_address: the address is not valid for the chain’s family.
  • token_not_found: no token contract or mint at the address.
  • token_unsupported: the token fails admission. Examples include a Solana mint with a transfer fee or active transfer hook and an unlisted EVM source whose transfers cannot be shown to move the exact amount sent.
  • token_blocked: token on the Flashnet denylist.
  • insufficient_liquidity: no route reaches or leaves the token.
  • route_unavailable: the chain or your key is not enabled for that end.
  • invalid_request: a quote with a source token omits refundAddress.
  • token_metadata_unavailable (503): the chain could not supply the token metadata or complete the transfer check for an unlisted EVM source. Retry later.

Quote calldata

  • calldata_unsupported_source (400): includeCalldata requires an EVM source with known native or ERC-20 metadata. Omit the flag to use the usual deposit instructions.
  • calldata_unavailable (502): the returned deposit instructions cannot be encoded as a plain transfer. Retry with the same key and body; do not fund partial instructions.
See EVM funding transactions.

State

  • invalid_state (400): action does not apply to current state.
  • conflict (409): conflicting resource or offer decision.
  • expired (409): ZeroConf offer expired.
  • quote_expired (409): on /submit, the quote expired before its destination Lightning invoice could be used. Other expired quotes are accepted and repriced. A replay of an expired quote’s creation request can return 410 with this code and quoteId; other routes replay the original 200, so check expiresAt before funding.
  • duplicate_lightning_invoice (409): the invoice on a submitted quote was already used.

Rate and availability

  • rate_limited (429): exhausted bucket. Follow Retry-After when present, otherwise X-RateLimit-Reset; see Rate limits.
  • internal_error (500): server error.
  • flashnet_error (502): upstream failure.
  • service_unavailable (503): unavailable service.
  • database_read_unavailable (503): reads are unavailable. Retry after Retry-After.
  • quote_readiness_unavailable, quote_outcome_unknown (503): the quote’s outcome is not yet known. Retry with the same idempotency key and do not fund.
  • spot_unavailable (503): stale BTC/USD spot; USD amount requests cannot proceed.

Standing deposit addresses

  • invalid_destination (400): unsupported standing destination.
  • immutable_instruction (400): PATCH changes fields other than enabled.
  • instruction_conflict (409): existing reference has different instructions.
  • refund_not_available (409): deposit or batch cannot be refunded.
  • standing_lightning_not_enabled (400): the account is not approved for Lightning destinations.
  • standing_lightning_target_required (400): a Lightning destination must be a Lightning address or LNURL-pay target, not an invoice.
  • standing_lightning_admission_unavailable (503): approval for Lightning destinations could not be read. Retry later.
  • standing_refund_sender_unattributed (409): the refund cannot be tied to a sender and needs review.
  • standing_refund_screening_unavailable (503): refund screening could not run. Retry later.
  • standing_zeroconf_offer_conflict (409): conflicting, expired, or ineligible offer decision.
  • standing_unavailable, scanner_unavailable (503): standing service or scanner unavailable.

Order errors

After creation, failures, refunds, and holds carry errorCode and errorMessage on the order. Webhooks carry the same values as data.error.code and data.error.message, except order.recovery_required, whose data.error is null.
  • slippage_exceeded: execution outside slippageBps.
  • exact_out_insufficient_input: deposit below requiredAmountIn.
  • exact_out_input_above_max: deposit above maxAcceptedAmountIn.
  • exact_out_target_not_met: execution could not reach targetAmountOut.
  • duplicate_lightning_invoice: invoice already used.
  • refund_address_missing: no refund target; operator recovery required.
  • xchain_source_requote_timeout, xchain_amount_above_max_bound: shown while the order still reads processing. The deposit arrived but its route is unavailable, or the deposit exceeds the maximum order size, and the order waits for Flashnet review.
  • screening_review_required, screening_quarantined, sanctioned_address, and codes starting screening_incomplete_: the order is held in awaiting_approval for compliance review.
A standing deposit of a token the address does not support is not an order. It appears in the deposit list with code standing_unsupported_asset; see Deposit addresses. Screening can hold an order for review. Neither awaiting_approval nor a recovery event implies a partner-actionable ZeroConf offer; inspect the order snapshot.