Applying a discount with subscriptionDraftDiscountCodeApply doesn't count as used

jvitora
Shopify Partner
2 0 1

I've understood that I need to call this mutation and then commit the draft to update the contract. But what I'm facing is that when I create a discount that is supposed to have a usage limit of one per user, even if I make the call to the mutations the customer is able to apply it on another subscription. Something that I've also noticed is that the usage count is not increased after I do this process (subscriptionDraftDiscountCodeApply -> subscriptionDraftCommit). Is there something I'm missing?

Replies 2 (2)

jvitora
Shopify Partner
2 0 1

@Philibert_Dugas can u help me?

jvh
Shopify Partner
5 0 9

@Philibert_Dugas i've also been seeing issues with discount behaviors (for a while). The case reported by @jvitora is one, sometimes the usage count increases beyond the recurring cycle limit, and furthermore, discounts aren't always removed after they're used up.

 

In the case where the discount isn't removed automatically, sometimes it doesn't apply to any of the lines anymore and in other cases it just calculates a $0 discount and the coupon appears on orders without providing any discount. (The latter case in particular is confusing to the CX team where it appears discounts are living longer than they should.)