I use discountCodeAppCreate to generate a discount code, when the customer adjusts the number of products in the cart (say the number of products in the cart > 2) I want to apply the discount code to that product automatically.
I know I can use discountAutomaticAppCreate to create a discount that automatically applies when the condition is met, but discountAutomaticAppCreate is limited to only 5 active discountAutomaticAppCreates