We currently create discounts using a percentage of the total of the order via API. This is provided automatically when someone signs up to our mailing list. We have just added a Gift Vouchers as a new product which again will create a discount using a fixed dollar amount via another API call.
The problem is if someone adds the Gift Voucher product to their order and then applies the percentage on total order code then the Gift Voucher has that saving applied to it too, this is not good.
My initial solution was to modify the Rate discount to only be applied to products of particular categories of which the Gift Voucher product category would not be included. This is not the ideal way as we have 56 categories for all other products we want the Rate discount to be applied to. It would be better to exclude specific categories in our particular situation. However, we can do create this type of discount via the Snipcart dashboard but the API documentation does not provide specifications on applying this particular type of discount.
Can I create this type of discount and send the list of categories that this discount should be applied to?
If someone else has an alternative solution to my situation I would be appreciative of your advice.