For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
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.
Solved! Go to the solution
This is an accepted solution.
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:
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
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:
To learn more visit the Shopify Help Center or the Community Blog.
Thanks, this clarified things.