#markta_best-practices

1 messages ¡ Page 1 of 1 (latest)

feral pewterBOT
#

👋 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.

unborn inlet
edgy sierra
#

Thanks for pointing me in the right direction. I will dig into that

unborn inlet
#

Happy to help!

edgy sierra
#

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

unborn inlet
#

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).

edgy sierra
#

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?

unborn inlet
#

That's one approach, yep!

edgy sierra
#

Do youo recomend a different one?

unborn inlet
#

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.

edgy sierra
#

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?

unborn inlet