Error formats
Standard error
Validation error
Common status codes
200: Success201: Resource created202: Accepted/queued operation400: Invalid request state or business condition401: Missing/invalid API key402: Insufficient funds or billing issue403: Forbidden (often top-level key required)404: Not found409: Duplicate resource415: Unsupported content type422: Validation error429: Rate limited500: Internal server error502: Upstream market/onramp service error503: Market health degraded/down
Retry guidance
- Safe to retry: reads (
GET), webhook handlers (idempotent handlers), and transfer requests with the sameidempotencyKey. - Do not blind-retry buys after network timeouts; reconcile first with
GET /v1/user/orders. - For
429, respectRetry-Afterand the rate-limit headers.