Deletes discount coupon template as per entered guid. If successful, returns the code 200.
If the discount coupon template does not exist within the e-shop, a 404 code is returned.
If the discount coupon template cannot be deleted, because it is used as template of discount coupon, a 409 code is returned.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/discount-coupons/templates/{guid}
- https://api.myshoptet.comhttps://api.myshoptet.com/api/discount-coupons/templates/{guid}
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X DELETE \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/discount-coupons/templates/b6e09a7a-6cb5-11eb-89aa-08002746ad91 \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
{ "data": {}, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }