List of discount coupons within the e-shop. The list is paged at 1000 coupons. The discount coupons can be filtered according to the date of creation, validity, repeatability of usage or their template.
If absolute price is used, the amount is interpreted with the default VAT rate of the eshop (in administration:
Settings » Basic Settings » Tax Classes). It can be retrieved using endpoint Eshop Info, array taxClasses.
The same is valid for minimum price.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/discount-coupons
- https://api.myshoptet.comhttps://api.myshoptet.com/api/discount-coupons
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/discount-coupons?template=01b39ad8-8686-11e9-968c-08002774f818&creationTimeFrom=2018-05-28T14%3A17%3A00%2B02%3A00&creationTimeTo=2028-05-28T14%3A17%3A00%2B02%3A00&reusable=true&validFrom=2018-05-28&validTo=2028-05-28&itemsPerPage=888&page=3' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
- typePriceRatio
- null
{ "data": { "coupons": [ … ], "paginator": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }