Skip to main content
XPayLabs returns errors using a consistent envelope with an HTTP-compatible code field and a human-readable msg field.

Error Response Format

FieldTypeDescription
codeintegerHTTP-compatible status code
msgstringHuman-readable error description
datanullAlways null for error responses

HTTP Status Codes

CodeMeaningTypical Cause
400Bad RequestMissing or invalid request parameters
401UnauthorizedInvalid HMAC signature or expired timestamp
422Unprocessable EntityBusiness logic error (e.g., invalid address for chain)
429Too Many RequestsRate limit exceeded
500Internal Server ErrorUnexpected server error

Common Error Codes

Sign Verification Errors (401)

MessageCause
"Sign verification failed"The HMAC signature does not match the computed value
"The sign cannot be left blank."The sign field is missing
"The timestamp cannot be left blank."The timestamp field is missing
"The nonce cannot be left blank."The nonce field is missing

Validation Errors (400)

MessageCause
"The amount cannot be left blank."Amount is missing or null
"The symbol cannot be left blank."Symbol is missing or empty
"The chain cannot be left blank."Chain is missing or invalid
"The receiveAddress cannot be left blank."Payout address is missing
"ReceiveAddress error"The payout address is invalid for the specified chain
"The orderId cannot be left blank."orderId is required for this merchant version
"The uid cannot be left blank."uid is required for this merchant version
"The uid cannot be zero."uid cannot be the string “0”

Rate Limit Errors (429)

Handling Errors

Last modified on June 26, 2026