#hughk-subscription
1 messages · Page 1 of 1 (latest)
that's expected because a coupon applies to the Invoice not the underlying Price duration
We don't have a way to have a 2 months off coupon that discounts 2 months off of a 3months price
OK - Thank you @weak remnant
does that make sense overall?
It does but does not solve my problem. I'm thinking of coding something up that would put a negative balance on the invoice but would have to track the prices/coupons etc externally from stripe. Any other suggestions?
Are you just looking for alternatives on how to approach a coupon that is "2 months free" for a 3 month price? Would a 66% off coupon not work?
Thanks @torpid tapir , the challenge is as follows. I would like to give a customer 2 months free and I don't know in advance if they are going to choose to sign up for the 1 month, 3 month or 1 year subscription so a blanket 66% off won't work.
Would something like this work for you
You have three coupons (one for each plan length) with each coupon setting applies_to (see https://stripe.com/docs/api/coupons/create#create_coupon-applies_to) so that it's only applicable for one particular plan.
- Coupon A would be
duration: repeating,duration_in_months: 2, 100% off for the 1 month price - Coupon B would be 66% off,
duration: oncefor the 3 month price - Coupon C would be 16% off,
duration: oncefor the 1 year price
I currently have a single product with 3 prices. Would this require 3 different products? Additionally could each coupon have the same promotion code?
Yeah, my suggestion would need 3 different products (which may not be ideal for your integration). And each would have to have a different coupon code
@torpid tapir - I'll see if the 3 products affects our integration at all but it should work. From the docs on promotion Codes I can see tham the code is The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer. It does not say the code must be uniq across all products. If it is just limitted to uniq per customer I could use the same code 2MONTHFREE across coupon A, B and C each with a different product and discount.
I think that part of the docs may be a bit misleading - what it means is that all currently active promotion codes must be unique. Just to double check I tried to create a new promotion code w/ the same code as an already active one and I get an error
OK - I will work on a few things on my end and see what I can come up with. Thank you for the help.