Error Codes

All errors share one envelope:

{"error": {"code": "invoice_not_found", "message": "Invoice not found.", "request_id": "req_01j…", "details": {}}}
HTTPCode
401invalid_api_key, unauthorized
403forbidden, merchant_inactive
400invalid_request
422validation_error, unsupported_asset, unsupported_network, unsupported_currency, no_payment_address, idempotency_key_reused
404invoice_not_found, payment_not_found, transaction_not_found, not_found
409invoice_expired, invoice_cancelled, invoice_not_cancellable, duplicate_external_id, idempotency_in_progress
429rate_limit_exceeded
500internal_error (no stack traces in production)