Error codes

The for of the error code is given below:

"{
""status"": "" "",
""error_code"": "" "",
""error_message"": "" ""
}

API end pointError ResponseError codeDescription
Create customer{
"status": "invalid_request_error",
"error_code": "unique",
"error_message": "Customer with given object reference id already exist for your account."
}
400Object Reference ID is duplicate
{
"status": "invalid_request_error",
"error_code": "nullable",
"error_message": "[objectReferenceId] cannot be null"
}
400Object Reference Id is not passed
{
"status": "invalid_request_error",
"error_code": "nullable",
"error_message": "mobile_number is mandatory field."
}
400Mobile 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"
}
401API 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"
}
404The customer id passed doesn't exist in the system for your account
{
"status": "error",
"error_code": "access_denied"
}
401The API key is incorrect
{
"status": "error",
"error_code": "invalid_request"
}
400Authentication is missing
Order Create{
"status": "Bad Request",
"error_message": "order_id is missing",
"error_code": "order_id is missing"
}
400Order id is not passed in the request body
{
"status": "Bad Request",
"error_message": "Mandatory fields are missing",
"error_code": "Mandatory fields are missing"
}
400Amount is not passed in the request body
{
"status": "ERROR",
"error_message": "Invalid amount",
"error_code": "invalid_request"
}
400The amount entered is incorrect. The minimum order amount is 1
{
"status": "error",
"error_code": "access_denied"
}
400The API endpoint or the API key is incorrect