Using this endpoint, you can get list of all discount coupons with detailed info of each discount coupon asynchronously. See how Asynchronous requests work on our developer's portal.
Response will be in jsonlines format with each discount coupon taking one line of output file.
One discount coupon in response has the same format as one discount coupon item form list response. See Discount coupon snapshot schema for more details.
Result file is compressed using GZIP.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/discount-coupons/snapshot
- https://api.myshoptet.comhttps://api.myshoptet.com/api/discount-coupons/snapshot
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/discount-coupons/snapshot?codeFrom=0000000006&codeTo=0000000006&creationTimeFrom=2014-09-05T00%3A00%3A00%252B0000&creationTimeTo=2019-09-05T00%3A00%3A00%252B0000&discountType=free&validFrom=2014-09-05&validTo=2019-09-05&reusable=true&template=01b39ad8-8686-11e9-968c-08002774f818¤cy=EUR&shippingPrice=cart' \
-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" } }