Updates settings for X + Y discounts. All settings are optional, but at least one should be present.
Please note, that updating "enableInCashdesk" will throw an exception unless the cashDesk or cashRegister module is active.
If you're targeting a discount to a specific category, right now, we only include products that have
that category as their primary one. If you want to include all products in that category in the discount,
not just the ones in the primary category, please use categoryTargeting attribute with all-categories value.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/xy-discounts/settings
- https://api.myshoptet.comhttps://api.myshoptet.com/api/xy-discounts/settings
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PATCH \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/xy-discounts/settings \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"combineWithLoyaltyDiscounts": true,
"combineWithVolumeDiscounts": true,
"combineWithQuantityDiscounts": true,
"enableMultipleDiscounts": true,
"categoryTargeting": "all-categories",
"enableInCashdesk": true
}
}'Response
{ "data": { "combineWithLoyaltyDiscounts": true, "combineWithVolumeDiscounts": true, "combineWithQuantityDiscounts": true, "enableMultipleDiscounts": true, "categoryTargeting": "all-categories", "enableInCashdesk": true }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }