Error Codes

The API categorises the various failures by their respective error codes. The body of the response will be JSON in the following format:

status: "string
error_code: "string"
error_message: "string"
details: "string"
help: "string"
code: "string"

The field error_code returns the unique error code for each error, while error_message returns the message for that error.

The details field clarifies the error with possible root cause identification for the error.

The help field may contain a link to the documentation relevant to the error.

The code field will contain the HTTP error code associated with the error.

General Errors

error_codeerror_messagedetailshelpcode
ERR-00Invalid or missing parameterParameter is missing or invalid. The input parameter may be the wrong data type.400
ERR-01Internal server errorFailed to submit request due to system error. Please try again later400
ERR-02Unauthorized accessApi user does not have permission to access this endpointhttps://rakkar-digital.readme.io/docs/authentication401
ERR-03Rate Limit ExceededUser have exceeded rate limits for this endpoint429

GET /vaults

error_codeerror_messagedetailshelpcode
VAL-00Invalid vault_typevault_type must be one of the following values: cold, warmhttps://developer.rakkardigital.com/docs/getting-a-list-of-vaults400
VAL-01No records foundThere are no records from the filtered queryhttps://developer.rakkardigital.com/docs/getting-a-list-of-vaults400

GET /vaults/{vaults_id}

error_codeerror_messagedetailshelpcode
VAL-02Vault not foundVault id does not match with recordshttps://developer.rakkardigital.com/docs/getting-a-list-of-vaults400

GET /balances

error_codeerror_messagedetailshelpcode
BAL-00No records foundThere are no records from the filtered queryhttps://developer.rakkardigital.com/docs/getting-your-total-balances400

GET /balances/{vault_type}

error_codeerror_messagedetailshelpcode
BAL-01No records foundThere are no records from the filtered queryhttps://developer.rakkardigital.com/docs/getting-your-total-balances400
BAL-02Invalid vault_typevault_type must be one of the following values: cold, warmhttps://developer.rakkardigital.com/docs/getting-your-total-balances400

GET /transactions

error_codeerror_messagedetailshelpcode
TXN-00Invalid transaction_typetransaction_type must be one of the following values: withdraw, rebalance, deposit, stake, claim, unstake, changepoolhttps://developer.rakkardigital.com/docs/getting-a-list-of-transactions400
TXN-01Invalid statusstatus must be one of the following values: pending, processing, confirming, completed, rejected, cancelled, failedhttps://rakkar-digital.readme.io/docs/getting-your-transactions-history400
TXN-02No records foundThere are no records from the filtered queryhttps://developer.rakkardigital.com/docs/getting-a-list-of-transactions400
TXN-03Invalid date rangeRange for start_date and end_date range is invalidhttps://developer.rakkardigital.com/docs/getting-a-list-of-transactions400

GET /transaction/{transaction_id}

error_codeerror_messagedetailshelpcode
TXN-04Invalid transaction idTransaction not found in recordshttps://developer.rakkardigital.com/docs/getting-a-list-of-transactions400

GET /whitelist

error_codeerror_messagedetailshelpcode
WHT-00No records foundThere are no records from the filtered queryhttps://developer.rakkardigital.com/docs/getting-a-list-of-whitelist400
WHT-01Invalid enumerate valueInput does not match enumerate valuehttps://developer.rakkardigital.com/docs/getting-a-list-of-whitelist400