shopify discount automatic api for specfic products

shopify discount automatic api for specfic products

Anil918
Shopify Partner
5 0 0

How can we create automatic discounts for specific products using the API? In Shopify, I found an option for automatic discounts applied to all items, but I'm looking to apply it to specific products.

 I found just for all item  link: Shopify API Documentation on Automatic Discount Creation.

Reply 1 (1)

hardik355
Shopify Partner
248 22 38

Hello @Anil918 
Hope you are doing well
You are using correct API. Please checkout this screenshot.

hardik355_0-1739376659037.png

You have to pass the data like this.

items: {  
         products: {
          productsToAdd: [product_ids]
         }
       }
If helpful then please Like and Accept Solution.
For App Development and Design changes Hire Me.
Skype: live:hardikradadiya355
Thanks