Error codes
The for of the error code is given below:
"{
""status"": "" "",
""error_code"": "" "",
""error_message"": "" ""
}
API end point | Error Response | Error code | Description |
---|---|---|---|
Create customer | { "status": "invalid_request_error", "error_code": "unique", "error_message": "Customer with given object reference id already exist for your account." } | 400 | Object Reference ID is duplicate |
{ "status": "invalid_request_error", "error_code": "nullable", "error_message": "[objectReferenceId] cannot be null" } | 400 | Object Reference Id is not passed | |
{ "status": "invalid_request_error", "error_code": "nullable", "error_message": "mobile_number is mandatory field." } | 400 | Mobile number is not passed or The format of request body is incorrect. It is always suggested to pass the date in x-www-form-urlencoded format | |
{ "status": "invalid_request_error", "error_code": "missing_authentication", "error_message": "Missing authentication" } | 401 | API key is either incorrect or not passed | |
Get Customer | { "status": "invalid_request_error", "error_message": "Cannot find what you are looking for", "error_code": "object_not_found" } | 404 | The customer id passed doesn't exist in the system for your account |
{ "status": "error", "error_code": "access_denied" } | 401 | The API key is incorrect | |
{ "status": "error", "error_code": "invalid_request" } | 400 | Authentication is missing | |
Order Create | { "status": "Bad Request", "error_message": "order_id is missing", "error_code": "order_id is missing" } | 400 | Order id is not passed in the request body |
{ "status": "Bad Request", "error_message": "Mandatory fields are missing", "error_code": "Mandatory fields are missing" } | 400 | Amount is not passed in the request body | |
{ "status": "ERROR", "error_message": "Invalid amount", "error_code": "invalid_request" } | 400 | The amount entered is incorrect. The minimum order amount is 1 | |
{ "status": "error", "error_code": "access_denied" } | 400 | The API endpoint or the API key is incorrect | |
Updated about 3 years ago