Hi,
I’m trying to create discount code that applies for seal subscription and that discount code should support subscription. I had added this in price rule: “appliesOnSubscription”: True, but it didn’t work. Neither it’s throwing error nor it’s doing it. Every time the discount code is created with purchase type of one-time purchase. How can i make it happen? It would be helpful if anyone can provide me full docs or full code to create discount code that supports both.
Topic summary
A developer is attempting to create a Shopify discount code that applies to subscription purchases, but encountering issues with implementation.
Problem:
- Setting
"appliesOnSubscription": Truein the price rule doesn’t work - No errors are thrown, but the discount code defaults to one-time purchase only
- The subscription purchase type is not being applied
Request:
- Looking for complete documentation or working code examples
- Needs solution to create discount codes that support both one-time and subscription purchases
The issue remains unresolved with no responses yet.