#mehdim

1 messages · Page 1 of 1 (latest)

quick hullBOT
cedar charm
#

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

oak maple
#

Do you mean you would only like to have coupon applied on specific prices, but not all?

cedar charm
#

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

oak maple
cedar charm
#

oh yeah but what do we if we've already made the coupon?

oak maple
#

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

cedar charm
#

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?

oak maple
#

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

cedar charm
#

oh it's just one

#

how do we do that?

oak maple
#

The steps will be:

  1. Before creating a subscription, check whether the price ID is eligible in your system
  2. If the price ID is eligible, then set the coupon; otherwise, don't set the coupon code
cedar charm
#

wait I'm not sure that works

#

I want to make it so no discount is applied to this subscription

oak maple
#

If you don't set the coupon on the subscription with ineligible price, then the discount won't be applied