Skip to content

X + Y discount settings update

Request

Updates settings for X + Y discounts. All settings are optional, but at least one should be present.

Please note, that updating "enableInCashdesk" setting on HU projects will throw an exception.

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
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
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
    }
  }'

Responses

OK

Bodyapplication/json
dataobject
errorsArray of objects or null(Errors)
metadataobject(Metadata)
Response
{ "data": { "combineWithLoyaltyDiscounts": true, "combineWithVolumeDiscounts": true, "combineWithQuantityDiscounts": true, "enableMultipleDiscounts": true, "categoryTargeting": "all-categories", "enableInCashdesk": true }, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }