Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Questions regarding subscriptionDraftDiscountCodeApply

Questions regarding subscriptionDraftDiscountCodeApply

luis_costa
Shopify Partner
4 0 0

Regarding the Graphql API https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/subscriptiondraftdiscountcodeapply, I want to know if the coupon options for combinations are applicable?

 

So for example, let's say I have two discounts with the following options:

 

Screenshot 2024-04-19 at 09.16.54.png

 

And

 

Screenshot 2024-04-19 at 09.17.08.png

 

If I apply both of these discounts to a subscription using the API subscriptionDraftDiscountCodeApply, and then create a billing attempt for this subscription, I see that both discounts are applied to the order on the same product:

 

Screenshot 2024-04-19 at 09.17.28.png

According to the combination rules outlined in https://help.shopify.com/en/manual/discounts/combining-discounts/discount-combinations, if two product discounts are applicable to the same product, only one of them should be applied. Is this expected, or am I doing something incorrectly?

 

Thank you!

Replies 0 (0)