Question about the subscriptionDraftDiscountCodeApply mutation

Hi.

I would like to make sure my understanding of the subscriptionDraftDiscountCodeApply mutation is correct.

Let’s say I create a discount code that can only be used once for an order (per customer) and apply it to a subscription contract using the subscriptionDraftDiscountCodeApply mutation. Will the discount only apply to the next order of the subscription and not to the orders that come after?

Or do I have to do something else to ensure that the discount code applies to a contract correctly?

Thanks.

Hi DanielTehrani,

The subscriptionDraftDiscountCodeApply will apply a discount code to a ContractDraft that later on can be committed to create a real contract.

The discount code for subscription will have it’s own rules, so the discount needs to have the pruchase type as subscriptions or both:

After that, on the usage limit rules you will have the options:

Thanks, this clarified things.