Skip to content

HTTP status codes

Status codeMeaning
200 OKThe request succeeded
201 CreatedThe request succeeded and created a new resource
400 Bad RequestThe request is malformed or failed validation, for example an amount below the minimum
401 UnauthorizedThe API key is missing or invalid
403 ForbiddenThe API key doesn’t have the scope this endpoint requires
404 Not FoundThe resource doesn’t exist, or belongs to another account
409 ConflictThe orderId was already used — see Idempotency
429 Too Many RequestsMore than 200 requests per minute for this API key. Retry after the window resets
500 Internal Server ErrorSomething went wrong on our side. Retry later, or contact support if it persists
503 Service UnavailableThe operation is temporarily unavailable, for example deposits in a currency whose network fee can’t be quoted right now

Every error response has the same JSON body:

{
"code": "exceptions.invoice.orderIdAlreadyExists",
"message": "Invoice with orderId order_1001 already exists",
"extension": {}
}
FieldDescription
codeStable, machine-readable error code. Branch on this in your code
messageHuman-readable explanation. It may change, so don’t parse it
extensionOptional extra details about the error

Some codes you may handle explicitly:

CodeStatusWhen
exceptions.auth.insufficientScope403The API key lacks the scope for this endpoint
exceptions.invoice.orderIdAlreadyExists409An invoice with this orderId already exists
exceptions.depositFee.quoteUnavailable503The deposit network fee for this currency is temporarily unavailable