With every request you'll get these responses:
Response | Status | Description |
---|---|---|
200 | OK | The request has succeeded. |
202 | Accepted | API call has been accepted for processing. This code will be returned by for asynchronous operations (Batches). |
204 | No content | The server successfully processed the request, but is not returning any content |
400 | Bad Request | invalid parameters, fields or filters |
401 | Unauthorized | authorization error (invalid basic auth data or API key) |
403 | Forbidden | The server understood the request, but is refusing it (blocked due to many errors in particular time) or the access is not allowed. |
404 | Not found | There is no resource behind the URI. |
406 | Not acceptable | Resource or method is not available or was removed. |
408 | Timeout | request timeout |
422 | Unprocessable Entity | used if the server cannot process the enitity, e.g. mandatory fields are missing in the payload. |
429 | Too many requests | Rate limit exceeded. |
503 | Internal server error | We were unable to handle the HTTP request due to a temporary overloading or maintenance of the server. Please try again later. |
With 4xx response (error) you'll receive in response body error
with error description and fields
array with all errors.
{
"error":"Bad parameter: cartID not found.",
"fields":{
"0":[
"'status' can't be 'unknown'. Available values: subscribed,nonsubscribed,nonSubscribed,unsubscribed"
]
}
}