#tomfree
1 messages · Page 1 of 1 (latest)
Hi there 🙂
DO I rightly assume the subscription is created once the startdate is reached?
If the start date is in the future then yes
To clarify that is specifically the phase[0] start_date
And you can also rely on the status
What webhook event would I get in that case? both a customer.subscription.created and a subscription_schedule.updated event?
Yes pretty sure that is correct. You should also be able to test this easily with Test Clocks or just setting the start date for a short time from creation
And then what does completed vs released mean for subscriotion schedules?
This is mainly for distinguishing when you have theend_behaviorset toreleaseorcanceland to look back at when the Schedule was actually finished
released is the time the Schedule stopped controlling the Sub. and completed would be whether the Subscription Schedule has ended. They are very similar here but you would focus on completed if you used an end_behavior of cancel
ok. and if i have just one phase cause i want the sub to be future dated, will it complete when the phase starts or ends or never if the subscription pitentially has iniufite periods?
It will continue indefinitely if you don't set an end_date or iterations
ok i dont really need the schedule after the sub is created. so if I set start and enddate of the subschedule to the same time int he future and the schedule to rlease, would the subscrioptionschedule then terminate directly after it created the subscriptionb?
No it won't cancel if you use release. I think you would need to set the end_date at least 1 second after the start_date otherwise I believe it will error