Using this endpoint, you can get list of all orders with detailed info of each order (like in Order Detail endpoint) asynchronously. See how Asynchronous requests work on our developer's portal.
The list may be filtered by date of creation and order code. The code is the order identifier. Although this is usually a number, it is necessary to take into account that this might also include letters, dash, etc.
Response will be in jsonlines format with each order taking one line of output file.
One order in response has the same format as order detail response. See Order snapshot schema for more details.
This endpoint has several sections, which are exported only when requested in the include parameter (see Section on demand).
| Include parameter | Meaning |
|---|---|
notes | Order remarks, including up to six additional fields, which can be freely used by e-shop for its individual needs. The field names can be defined in administration and this section returns their names. |
images | Order images |
shippingDetails | Transport details |
stockLocation | Position in the stock |
surchargeParameters | Item surcharge parameters |
productFlags | Item product flags |
Use orderCodes request parameter to get the list of specific orders. Order codes are separated by a comma. If you use this query parameter, other filters are not applied, and the set of particular orders is returned. Please note that this parameter accepts max. 50 order codes in request parameter.
Result file is compressed using GZIP.
Purchase order filtering, according to forwarder company code.
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/snapshot
- https://api.myshoptet.comhttps://api.myshoptet.com/api/orders/snapshot
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/snapshot?include=string&orderCodes=2025000004%2C2025000002%2C2017000038%2C2017000025%2C2015000248&statusId=-1&shippingGuid=ecb3e399-2f57-11eb-8853-0800275177b9&shippingCompanyCode=zasilkovna&paymentMethodGuid=b57f91bb-e920-11e0-baa3-7dc668b75ca8&creationTimeFrom=2014-09-05T00%3A00%3A00%252B0000&creationTimeTo=2014-09-05T00%3A00%3A00%252B0000&codeFrom=0000000006&codeTo=0000000006&customerGuid=443cad54-73bc-11e8-8216-002590dad85e&email=john.doe%40example.com&phone=%2B420123456789&productCode=15%2FZLU&changeTimeFrom=2014-09-05T00%3A00%3A00%252B0000&changeTimeTo=2014-09-05T00%3A00%3A00%252B0000&sourceId=-1' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'{ "data": { "jobId": "ad24xod" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }