#ironbeard-subscription-schedule-webhook-events
1 messages ยท Page 1 of 1 (latest)
no prob ๐
So completion of the schedule should trigger subscription_schedule.completed
https://stripe.com/docs/billing/subscriptions/subscription-schedules#completing-schedule
and this is for the subscription_schedule.released
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#releasing-subscription
So.. releasing is an action that is done through the API and completed is something Stripe does?
completed here means that all phases of the schedule are complete and the schedule would now follow the end_behavior you've defined
A subscription can be released anytime using the API, yes.
Gotcha. So if I'm not doing any releasing, then I would only listen for completed in order to know when a SubscriptionSchedule is "over"
that is correct
I believe you can also define end_behavior as release where the subscription will continue outside the schedule
I would assume that it triggers .released event as well
Hmm, yeah. So end_behavior is either release or cancel, and I don't want it to do cancel, so I'm assuming that if end_behavior='release' that it'll still send the completed webhook when the last phase finishes?
I believe so, it should yes.
I'd recommend trying it out in test mode though to be 100% sure
for sure. Thanks ๐ is there a way to attach a Clock to a subscription I created via the API? e.g., not create it in the dashboard?
I don't think test clocks work with existing subscriptions at the moment
Thanks ๐