#mehdim
1 messages · Page 1 of 1 (latest)
in this case, the product is for a subscription, and we are always starting one from the backend, so if there are any parameters we could pass to the subscription create call, that would work too
Do you mean you would only like to have coupon applied on specific prices, but not all?
sort of, we have already created a "friends and family" coupon that is 50%
but we have a new product that we do not want that coupon to work on
Coupon supports applies_to parameter for the eligible items can be applied to: https://stripe.com/docs/billing/subscriptions/coupons#set-eligible-products, but not another way round for ineligible items
oh yeah but what do we if we've already made the coupon?
applies_to can only be set at coupon creation and it can't be updated. You'd need to create a new one in this case
hmmmm is there any way to prevent coupons being used at subscription creation time?
could we specify a coupon that doesn't work to prevent other coupons from applying?
How many items do you have in your subscription? If it's just one, your system can check whether the item is eligible for the coupon and determine whether a coupon can be applied
The steps will be:
- Before creating a subscription, check whether the price ID is eligible in your system
- If the price ID is eligible, then set the coupon; otherwise, don't set the coupon code
wait I'm not sure that works
I want to make it so no discount is applied to this subscription
If you don't set the coupon on the subscription with ineligible price, then the discount won't be applied