Updating a Discount with more than 700+ product id's

codeflowcodeflow Member Posts: 1

I would like to add a list of products to a discount. Unfortunately, after I pass more thann 500, 600 ID's, I get a bad gateway.


Is there a limit on how much products I can pass to the discount? If yes, is there a work around for that? I don't want to use the 'applyTo' attribute.


My request looks like this (I removed my credentials from this request) :

## Update Discount

curl -X "PUT" "https://api.webshopapp.com/de/discounts/699******.json" \

    -H 'Content-Type: application/json; charset=utf-8' \

    -d $'{

 "discount": {

   "products": "1143******,1146******,1142******",

   "isActive": true

 }

}'


If i pass less than 500 product id's it works fine. But over 500 doesn't work.

Tags:

1 comment

Sign In or Register to comment.