When accessing API, errors may be made. These errors are reported by the system. The following types of errors are possible.
1) Unspecified apiKey
:
{
"errorMsg": "\u0022apiKey\u0022 is missing.",
"success": false
}
2) Invalid apiKey
:
{
"errorMsg": "Wrong \u0022apiKey\u0022 value.",
"success": false
}
3) API access is limited by IP.
{
"success": false,
"errorMsg": "Forbidden"
}
4) System account not found
{
"success": false,
"errorMsg": "Account does not exist."
}
5) Server error
{
"success": false,
"errorMsg": "Service overloaded."
}
or
{
"success": false,
"errorMsg": "Application error"
}
6) Incorrect data in request parameters
{
"success": false,
"errorMsg": "Invalid request: Errors in the input parameters",
"errors": {
"children[deliveryType]": "This value is not valid."
}
}
7) Incorrect data in some elements of the incoming data array (for example, an order array)
{
"success": false,
"uploadedOrders": [],
"errorMsg": "Orders are loaded with errors",
"errors": [
"Order with externalId=4414145 already exists.",
"OrderType with code 'some-code' not found. Order externalId=44141452"
]
}