#ironbeard-subscription-schedule-webhook-events

1 messages ยท Page 1 of 1 (latest)

night zealot
#

Hello ๐Ÿ‘‹
Give me a moment to catch up here, thanks ๐Ÿ™‚

pure needle
#

no prob ๐Ÿ™‚

night zealot
pure needle
#

So.. releasing is an action that is done through the API and completed is something Stripe does?

night zealot
#

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.

pure needle
#

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"

night zealot
#

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

pure needle
#

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?

night zealot
#

I believe so, it should yes.

#

I'd recommend trying it out in test mode though to be 100% sure

pure needle
#

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?

night zealot
#

I don't think test clocks work with existing subscriptions at the moment

pure needle
#

Thanks ๐Ÿ™‚