#markta_best-practices
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/1288527302329630884
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! You could do this with trial periods and careful scheduling on your end, but it's not recommended. Subscription Schedules are the approach I would suggest: https://docs.stripe.com/billing/subscriptions/subscription-schedules
Thanks for pointing me in the right direction. I will dig into that
Happy to help!
I see that I can update individual subscriptions with the schedule. Can a custom subscription schedule be applied to a plan, so everyone who signs up would get the second quarter free?
I would like to do this through the dashboard if possible
You can't automatically apply a Subscription Schedule to each Subcription with a specific plan. You can do this manually via the Dashboard, but you would need to do it for every Subscription individually (there's a 1:1 relationship between Subscription Schedules and Subscriptions).
OK, it seems like the way to achieve this would be setting up a webhook to call a lambda when a new subscription is created. The lambda would use the Stripe API to update the subscription schedule to give the 2nd quarter for free. Does that sound right?
That's one approach, yep!
Do youo recomend a different one?
It depends on your integration, context, and requirements. Another possible approach would be to simply create a Subscription Schedule directly, then have the Subscription Schedule create the Subscription itself for you. That may not work, though, if you're doing something like creating Subscriptions with Checkout, which doesn't support Subscription Schedules.
OK, I am coming on as a new maintenance dev on an unfamiliar platform. I'll see how they have things set up. Thanks again for the advise
Subscription schedules are created with specific dates, right? They can't trigger changes oon dates relative to start date?
They can. In that case you wouldn't set a start_date or end_date for phases, but instead you'd set a number of iterations for each phase, and those phases and iterations would begin when the Schedule begins: https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-iterations