#mochihealth
1 messages · Page 1 of 1 (latest)
Hi, you can Create a Subscription Schedule and pass the 'from_subscription' parameter, https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription. Then, modify the schedule by making the Subscription Schedule Update call: https://stripe.com/docs/api/subscription_schedules/update to your desired behavior. I'd highly recommend that you test this out in your test environment.
you mean test it with the test_clock
but like what would i put in as the start and end date
I basically jsut want to use it to swtich subscriptions
so the start and end date would be the same?
I mean, use your test API key to play with this: https://stripe.com/docs/keys#test-live-modes
oh of course lol
but would the start date be the end date of the existing subscription and would the end date of the phase be the same as the start date?
This is very hard to conceptually talk without an explicit example as you can make updates to these dates. I think starting to play around would help you get much better clarity.
example is jan 1 customer subscribes for a monthly subscription that is due to bill again on feb 1. jan 15th comes along and customer wants to upgrade to a 3 month subscription cycle. I want to basically schedule the switch for feb 1 so instead of charging for the regular monthly subscription on feb 1 it would bill for the 3 month one then
In this case, yes.
yes as in the start date and end date of the additional phase is the same?
also how can i check if a subscription is already part of a subscription schedule
like lets say they upgrade it and then decide to do a further upgrade to like a 6 month or yearly subscription how can I check if their is an existing subscription schedule which i need to change a phase of or if I need to create a new one altogether
As as in, you can set this on the phase: https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-start_date yourself.
yea but what would be the end date of the phase
You can just update the Subscription Schedule
but is there a way to check if a subscription is already in a schedule
These would have a subscription schedule object: https://stripe.com/docs/api/subscription_schedules/object
It gets fun as you start playing with the API and let us know of you have questions while testing these out.