Using this endpoint, you can get all prices in the given price list asynchronously, with the same information per price as the Price list prices endpoint. See how Asynchronous requests work on our developer’s portal.
Response will be in jsonlines format with each price taking one line of output file.
One price in the response has the same format as one item of the price list prices response. See Price list price snapshot schema for more details.
The job is the same as the one behind /api/pricelists/{id}/snapshot, so a snapshot already running on that path will make this one answer 409.
Result file is compressed using GZIP.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/price-lists/{id}/prices/snapshot
- https://api.myshoptet.comhttps://api.myshoptet.com/api/price-lists/{id}/prices/snapshot
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/price-lists/1/prices/snapshot?codeFrom=0000000006&codeTo=0000000006&actionPriceDateFrom=2019-09-05&actionPriceDateTo=2019-09-05&vatRate=21.0¤cyCode=CZK&orderableMinAmount=10&orderableMinAmountFrom=10&orderableMinAmountTo=100&orderableMaxAmount=20&orderableMaxAmountFrom=20&orderableMaxAmountTo=200' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
{ "data": { "jobId": "ad24xod" }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }