#shreyanshcactusglobal_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/1262745017576067142
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
so you want the use to pay the first month, but then get another month free?
Yes that's correct.
if so, after the Subscription is created and paid for, you can add a coupon to the subscription for one month off
Yes but the problem is, This isn't a scalable approach. I have numerous prices for different types of subscription. Creating and maintinaing coupon for each interval will go out of hand very easily. That's why i was thiking is there a way to build something that's scalable.
I don't get which part is not scalable. create a single coupon that's 100% off for one month. Once the Subscription is active, update the Subscription with an API call to apply this coupon. for the next Invoice, the customer will have nothing to pay.
One month is a placeholder term. I have different prices that reoccur in Month, Quarter, Years and there are different types of prices as well.
So what i am trying to say is creating coupons for all these will create a lot of unnecessary overhead.
the other option, is after the Subscription is created & paid, simply add a free trial to the Subscription, that ends after the end of the second month. this gives you more flexibility on when exactly you want the three trial to end.
The system will identify these both renewals as separate renewals.
Even in my system this will have incorrect entries as user having renewed twice. But the entire subscription was only ONE occurance.
1 + 1 as one subscription. With coupons this becomes 1 month paid subscription, 1 month free subscription.
The only reason i am concerned with this is because my system relies on webhooks recieved from stripe and we have built a lot of functionality based on this so we need to treat this whole period under 1 subscription. Rather than 2 renewals.
I hope i'm making sense.
I gave you two options to achieve what you want (use coupons or add a free trial). unfortunately I don't think there's a third option. so you'll need to pick one and adapt your code so everything works.
there's actually a third option, but it's more complex: use Subscription schedule
you can learn more about it here: https://docs.stripe.com/billing/subscriptions/subscription-schedules
Okay sorry for taking your time but do you think creating a phase like so would be a better option?
- 1st phase will normal price
- 2nd phase with coupon code for 1 month or whatever duration my prices has
no worries, I'm here to help. yes that's definitely an option.
note that dealing with Subscription Schedule can be a bit tricky, that's why I usually recommend to use coupons.
The solution you were referring to with Subscription Schedule was something on the same lines that i mentioned?
you mentioned phases, which is what you would set when using Subscription Schedules.
Do you know if instead of using coupon in subscription phase.
I could set the 2nd phase of a subscription as a trial entirely. That way i don't have to deal with coupons at all.
Cool, Thanks for your help.
happy to help ๐