Error codes
Whenever a request fails (the HTTP status code is 4xx or 5xx), the API returns a JSON object with below fields:
- message - Contains a human-readable error message
- code - Contains a machine-readable error code
Below are some of most common errors across all our endpoints.
Error Codes and Messages:
| Error Code | HTTP Code | Error Message |
|---|---|---|
| MISSING_ARGUMENTS | 400 | Mandatory request params are empty |
| INVALID_ARGUMENTS | 400 | Invalid data types |
| UNAUTHORIZED_CUSTOMER | 401 | Invalid merchant_id or merchant_secret provided |
| UNAUTHORIZED_USER | 401 | Order id is not belongs to your user profile |
| RESTRICTED_ACCESS | 403 | Not authorized to use the API |
| LIVE_MODE_DISABLED | 403 | Not authorized to use live environment |
| ORDER_NOT_FOUND | 404 | Order with the id is not found |
| CUSTOMER_NOT_FOUND | 404 | Unable to identify the customer |
Updated 9 months ago
