Error Codes

Each API Service has an error check that runs before preparing a response. If the query will be unsuccessful then we return an error response instead.

Outputs

Variable Description
Type type Indicates either success or error.
Code code The error code associated with the error.
Message message The error message associated with the error.

Example Output

{
    "type": "error",
    "code": 18,
    "message": "This exchange cannot be cancelled."
}

Responses

Code Message
NO_MERCHANT_ID 1 Merchant Id was not provided.
NO_HASH_VALUE 2 Hash Value was not provided.
INVALID_MERCHANT_ID 3 Merchant Id is not valid.
INVALID_HASH_VALUE 4 Hash Value is not valid.
USER_NO_SELLER 5 You are not authorized to sell on the exchange.
NO_AMOUNT 6 Crypto Amount was not provided.
INVALID_AMOUNT 7 Crypto Amount is not valid.
EXCEEDED_EXCHANGE_LIMIT 8 Crypto Amount is greater than your exchange limit.
NO_CURRENCY 9 Currency Code was not provided.
INVALID_CURRENCY 10 Currency Code is not valid.
CANNOT_FIND_RATES 11 Exchange rate could not be queried. Please try again later.
CANNOT_FIND_WALLET 12 A wallet could not be secured. Please try again later.
EXCHANGE_SAVE_FAILED 13 The exchange failed to generate. Please contact an administrator.
INVALID_USER_ID 14 User Id is not valid.
NO_REFERENCE_ID 15 Reference Id was not provided.
INVALID_REFERENCE_ID 16 Reference Id is not valid.
NOT_EXCHANGE_SELLER 17 You are not the seller of this exchange.
CANCEL_NOT_ALLOWED 18 This exchange cannot be cancelled.
EXCHANGE_CANCEL_FAILED 19 The exchange failed to cancel. Please contact an administrator.
NO_CRYPTOCURRENCY 20 Cryptocurrency Code was not provided.
INVALID_CRYPTOCURRENCY 21 Cryptocurrency Code is not valid.
NO_MODE 22 Mode was not provided.
INVALID_MODE 23 Mode is not valid.
USER_NO_BUYER 24 You are not authorized to buy on the exchange.
NO_CRYPTOCURRENCY_ID 25 Cryptocurrency Id was not provided.
INVALID_CRYPTOCURRENCY_ID 26 Cryptocurrency Id is not valid.
NO_MIN_SELL_RATE 27 Minimum Sell Rate was not provided.
INVALID_MIN_SELL_RATE 28 Minimum Sell Rate is not valid.
APPROVE_NOT_ALLOWED 29 This exchange cannot be approved.
EXCHANGE_APPROVE_FAILED 30 The exchange failed to approve. Please contact an administrator.
NO_LENGTH 31 Length was not provided.
INVALID_LENGTH 32 Length is not valid.
INVALID_RETURN_WALLET_ADDRESS 33 Return Wallet Address is not a valid address for the specified cryptocurrency.
USER_NO_API_ACCESS 34 This user is not authorized to use the API.
NO_USER_ID 35 No User Id was not provided.
SELLER_ACTIVE_EXCHANGES 36 This seller has reached the maximum allowed active exchanges. Please wait for your other exchanges to be completed or cancelled.
NO_READ_ACCESS 37 You are neither the seller or buyer of this exchange.