Get batch status by ticket

Get status of a previously created batch request by its ticket ID.

Response

A JSON object with the following fields:

FieldTypeDescription
statusstring"QUEUED" – no requests were completed yet; "IN_PROGRESS" – there is at least one completed request; "COMPLETED" – All requests were completed
totalRequestsnumberTotal number of API requests
completedRequestsnumberNumber of completed API requests
responsesArray <RequestDetails>Details of requests made to Ecwid API

RequestDetails

FieldTypeDescription
idstringOptional request ID you specified for each API request
statusstring"COMPLETED" – All requests were completed; "FAILED" – if response HTTP code was not 200OK; "NOT_EXECUTED" – request was not executed, because previous requests failed. See Handling failed requests to learn more details
httpBodyjsonResponse body for your requests. escapedHttpBody is returned instead if escapedJson parameter is true in your batch status request. For example: details of orders found, status of a discount coupon update, id of a product created, etc. Check examples for each endpoint
escapedHttpBodystringEscaped JSON string of response body for each API request in a batch. Returned if escapedJson parameter is true in your batch status request
httpStatusCodenumberHTTP status code from Ecwid API for a request
httpStatusLinestringHTTP status reason phrase

Errors

In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description

HTTP codes

HTTP StatusDescription
400Request parameters are malformed
415Unsupported content-type: expected application/json or text/json
500Cannot retrieve the order info because of an error on the server

Error response body (optional)

FieldTypeDescription
errorMessagestringError message
Language
Click Try It! to start a request and see the response here!