CatalogDiscount API apply to specific product

Hi There,

We are working with CatalogDiscount API and everything working fine but we need to apply the discount code or attache it to a specific product(Item) the same as we have in the dashboard (Discount rules)

Any suggestions (:


Hi @TemJ welcome to the forums!

You can automatically apply taxes/discounts based on the rules you’ve already set up by setting the pricing_options->auto_apply_discounts == true. See here for more info: Apply Taxes and Discounts