Discount Code for multiple products with their own discount amount with same code | Admin API

Highlighted
Tourist
6 0 2

Hi,

As multiple discount codes cannot be applied at checkout, I would like to merge them into a single discount code and have that applied during checkout.

I found that it is possible to have a single discount code associating with multiple products but also maintaining per product discount price at the checkout. Attached the screenshot of a store to know what I mean,

Single Discount cod for two products while maintaining their different discount pricesSingle Discount cod for two products while maintaining their different discount prices

All that I see from Fixed Amount Discount Code Graphql API to have multiple products is, productsToAdd item in the query, with a single discountAmount option e.g., the same discount amount can be applied to all products in productToAdd array.

Any help on how to have the same code for multiple products along with their different discounts & prices?

Thanks in advance.

0 Likes