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_code | error_message | details | help | code |
|---|---|---|---|---|
| ERR-00 | Invalid or missing parameter | Parameter is missing or invalid. The input parameter may be the wrong data type. | 400 | |
| ERR-01 | Internal server error | Failed to submit request due to system error. Please try again later | 400 | |
| ERR-02 | Unauthorized access | Api user does not have permission to access this endpoint | https://rakkar-digital.readme.io/docs/authentication | 401 |
| ERR-03 | Rate Limit Exceeded | User have exceeded rate limits for this endpoint | 429 |
GET /vaults
| error_code | error_message | details | help | code |
|---|---|---|---|---|
| VAL-00 | Invalid vault_type | vault_type must be one of the following values: cold, warm | https://developer.rakkardigital.com/docs/getting-a-list-of-vaults | 400 |
| VAL-01 | No records found | There are no records from the filtered query | https://developer.rakkardigital.com/docs/getting-a-list-of-vaults | 400 |
GET /vaults/{vaults_id}
{vaults_id}| error_code | error_message | details | help | code |
|---|---|---|---|---|
| VAL-02 | Vault not found | Vault id does not match with records | https://developer.rakkardigital.com/docs/getting-a-list-of-vaults | 400 |
GET /balances
| error_code | error_message | details | help | code |
|---|---|---|---|---|
| BAL-00 | No records found | There are no records from the filtered query | https://developer.rakkardigital.com/docs/getting-your-total-balances | 400 |
GET /balances/{vault_type}
{vault_type}| error_code | error_message | details | help | code |
|---|---|---|---|---|
| BAL-01 | No records found | There are no records from the filtered query | https://developer.rakkardigital.com/docs/getting-your-total-balances | 400 |
| BAL-02 | Invalid vault_type | vault_type must be one of the following values: cold, warm | https://developer.rakkardigital.com/docs/getting-your-total-balances | 400 |
GET /transactions
| error_code | error_message | details | help | code |
|---|---|---|---|---|
| TXN-00 | Invalid transaction_type | transaction_type must be one of the following values: withdraw, rebalance, deposit, stake, claim, unstake, changepool | https://developer.rakkardigital.com/docs/getting-a-list-of-transactions | 400 |
| TXN-01 | Invalid status | status must be one of the following values: pending, processing, confirming, completed, rejected, cancelled, failed | https://rakkar-digital.readme.io/docs/getting-your-transactions-history | 400 |
| TXN-02 | No records found | There are no records from the filtered query | https://developer.rakkardigital.com/docs/getting-a-list-of-transactions | 400 |
| TXN-03 | Invalid date range | Range for start_date and end_date range is invalid | https://developer.rakkardigital.com/docs/getting-a-list-of-transactions | 400 |
GET /transaction/{transaction_id}
{transaction_id}| error_code | error_message | details | help | code |
|---|---|---|---|---|
| TXN-04 | Invalid transaction id | Transaction not found in records | https://developer.rakkardigital.com/docs/getting-a-list-of-transactions | 400 |
GET /whitelist
| error_code | error_message | details | help | code |
|---|---|---|---|---|
| WHT-00 | No records found | There are no records from the filtered query | https://developer.rakkardigital.com/docs/getting-a-list-of-whitelist | 400 |
| WHT-01 | Invalid enumerate value | Input does not match enumerate value | https://developer.rakkardigital.com/docs/getting-a-list-of-whitelist | 400 |
Updated about 1 month ago
