#madmark00178_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1314345928945307728
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- madmark00178_api, 27 minutes ago, 8 messages
- madmark00178_api, 1 hour ago, 27 messages
- madmark00178_api, 2 days ago, 20 messages
Hello! No, this isn't a bug. This Promotion Code is based on a Coupon which will give them 100% off Subscription charges for a month. If they Subscribe to a yearly plan in that month they get 100% off of that charge.
I see. Then what is the appropriate way to offer 100% off a month? I can only set limits to products, not prices, for coupons. I can do ~8% off for an annual plan, but i'd need to be able to specify a separate discount
If you want to have a discount for a month off of a yearly Subscription you'd need to do the 8% approach you mentioned.
But how do i separate coupons to be used on annual plans and monthly plans? When making a coupon, the only option is to limit to products, not prices. In other words, if I create an 8% off discount, then if a user applies that to a monthly plan, it won't work correctly either.
You could switch to amount_off instead of specifying a percentage: https://docs.stripe.com/api/coupons/create#create_coupon-amount_off
Okay but that gets complex with multiple currencies.. so there's no simple way to set coupons that apply to annual and coupons that apply to monthly?
No, unfortunately there's not a good solution for the use case you describe.
What if move the annual prices to a new product?
That's one workaround, yep.
I just have to ask again - for coupon duration, theres 'once' and then theres 'multiple months - once'. It even says it will apply 100% off for 1 month, whereas with 'once' it says '100% off once'. Thats definitely not a bug?
Yeah. I'm not sure what you're referencing, but if you look here: https://docs.stripe.com/api/coupons/create#create_coupon-duration
once
Applies to the first charge from a subscription with this coupon applied.
The first charge for a yearly Subscription is for a year, which means once will apply to that first year. The Coupon will drop off after a month and not impact Subscription charges after that.
If I were in your position I'd probably switch to two different Promotion Codes, one for monthly and one for yearly, and split things up into two Products. Hard to say for sure without full context if that's the best approach, but that's where I'd start.
Okay thanks!
Wait one question - if i have coupons set to apply only to certain products, can i have the same coupon code 'BLACKFRIDAY' or whatever, be used for those two different products? Or do i need unique coupon codes?
I'm not certain, actually. I think they need to be unique, but try making them the same and see what happens. Worst outcome is you get an error about them needing to be unique.
Dang okay they do need to be unique
Okay so if they have to be unique, then it probably makes most sense to move annual prices to their own products, as you did recommend. Can i migrate existing annual prices to their own products though??
No, you'd need to recreate them under different Products.
Okay and would i just migrate existing users to the new price
Yep.
Okay. Thanks!