#mattwoberts-sub-expire-events
1 messages · Page 1 of 1 (latest)
HI 👋 there is not an event type that is specific to that scenario. customer.subscription.updated would be a good option to trigger your process.
I can't recall off-hand if customer.subscription.deleted is also triggered in that scenario, but if it is that may reduce how frequently your endpoint gets hit.
You can use Test Clocks to quickly run through a test scenario though and confirm what types of events will be generated for your flow:
https://stripe.com/docs/billing/testing/test-clocks
Ah ok thanks... I'll do that. I noticed that the invoice gets voided too so that's another option - listen for invoices voided, then check if the sub is incomplete_expired....
Yeah, that could work as well. There are usually multiple events that can be used as a trigger for certain action, but which one is best can fluctuate based on how exactly your integration is set up. That's why I typically recommend to test the flow and see what events are generated, what their contents are, and when they're created, so you can see exactly what will happen for your specific flow.
mattwoberts-sub-expire-events