Skip to content

Error Codes


Error

BasicEx Pay uses traditional HTTP response codes to indicate the success or failure of an API request. In general: codes in the 2xx range indicate success, 4xx range indicate an error due to the provided information (e.g., missing required parameters), and 5xx range indicate a BasicEx Pay business or server error.

Status CodeDescription
200 - OKSuccess, all operations completed
400 - Bad RequestThe request was not processed correctly, incorrect parameters
401 - UnauthorizedIncorrect signature or not provided correctly
429 - Too Many RequestsRequest rate limit exceeded
500, 502, 503, 504 - Server ErrorsBusiness processing error or server error

Error Response Format

When the HTTP status code is not 200, an error response will be returned as follows:

json
{
  "code": "GW400001",
  "data": null,
  "message": "Invalid invoice status",
  "param": "",
  "requestId": "d5678c4d-adf5-40ed-8061-70aa047a70ae"
}
NameDescriptionType
codeError code, if not 0000, indicates failurestring
dataThe error response will be emptystring
paramReturned when HTTP Status is 400 for parameter errorsstring
requestIdUnique identification ID for each request, used to identify the requeststring

Request Parameter Error: GW400xxx

When the request parameters are not validated, an error code starting with GW400xxx will be returned, and the param will return the corresponding parameter that is not validated.

Invoice Payment Errors: GW5011xx

These errors are mapped to invoice resources.

NameDescriptionType
GW501102Invoice does not exist or no permission to operatestring
GW501103Payment feature is disabled for this merchantstring
GW501104Failed to retrieve cryptocurrency informationstring
GW501106Exchange rate calculation failedstring
GW501107Payment amount exceeds the merchant's daily limitstring

Payout Request Errors: GW5012xx

These errors are mapped to payout resources.

NameDescriptionType
GW501202Payout feature is disabled for this merchantstring
GW501203Payout amount exceeds the merchant's daily limitstring
GW501204Failed to retrieve order informationstring
GW501205Payout object does not existstring
GW501206Merchant order number already existsstring
GW501211Failed to query payout addressstring
GW501212Payout object account status abnormalstring
GW501213Payout failed: insufficient balancestring
GW501214This currency is not supportedstring
GW501215This blockchain is not supportedstring
GW501216Payout amount below the minimum thresholdstring
GW501217Error getting account configurationstring

BasicEx Server Errors: GW500xxx

When returning an error code starting with GW500xxx, it indicates a BasicEx system server failure. This is generally less encountered. If you encounter such error codes, please contact the BasicEx customer support team.