API Error Code
API error codes
When a correctly formatted request is made to the API, then the server will attempt to process the request andwill return the original request data along with two extra variables in the Json/xml response.
The 2 extra values are "Error" and "ErrorMessage". If the Error field is set to true then an internal error will have occurred
and the ErrorMessage will provide some extra detail about the issue.
A sample error response for a new product request would be as follows:
{
"ProductID": ",
"Name" : "Sample Product Name", "EanNumber" : "123456789", ...
...
"Error": true,
"Message": "The ProductID for the new product cannot be blank"
}
"ProductID": ",
"Name" : "Sample Product Name", "EanNumber" : "123456789", ...
...
"Error": true,
"Message": "The ProductID for the new product cannot be blank"
}
