Error Responses

All error messages suppose to be in format:

{
  	"trace_id": "string",
    "code": int,
    "data": {},
    "message": "string"
}

message is the general description of error, data is sub-json that contains detailed information of error.
validation_error with status code 400 is returned when the validation of the resource fails on POST or PUT requests.

Errors list

Error MessageDescription
DEPOSIT_CURRENCY_NOT_SUPPORTEDinput wrong deposit currency
INSUFFICIENT_BALANCEcurrency balance is not enough to make the withdrawal
INSUFFICIENT_FEE_BALANCEETH or TRX balance is not enough to make the withdrawal
MERCHANT_WITHDRAWAL_ID_ALREADY_EXISTSwithdrawal merchant side id is duplicated
MERCHANT_WITHDRAWAL_ID_SHOULD_BE_36_OR_LESSlength of merchant withdrawal id is more than 36
PAYMENT_CURRENCY_NOT_SUPPORTEDinput wrong payment currency
WITHDRAWALADDRESS_IS_INVALIDdestination address is not valid
CALLBACK_URL_NOT_SETTING_YETmerchant haven't setup callback URL yet
NETWORK_TEMPORARY_UNAVAILABLEcrypto currency network is temporary unavailable for maintainance
MERCHANT_DEPOSIT_ID_EXISTinvoice deposit merchant side id is duplicated