#raz4395
1 messages ยท Page 1 of 1 (latest)
Hi
You can void the invoice:
https://stripe.com/docs/api/invoices/void
Hi, my use case is only specific to the case when a recurrent payment failed and the customer decided he doesn't want it anymore and cancels it but the subscription_delete event was not sent yet
is there any setting directly to void any previous invoices automatically when a user cancels their sub?
Nope
ok then 2 more quick questions, what even can I listen to on a subscription cancel and what is the status of an invoice that is failed and awaits retry?
so I can actually listen to the cancel event and manually void the failed invoices for that sub
You can listen to this event subscription_schedule.canceled
All subscription related webhook events are listed here:
https://stripe.com/docs/billing/subscriptions/webhooks#events
alright thank you ๐
so workaround in my case is listening to that event and when that webhook catches the event, basically list all open invoices for that subscription id and void them
yes that's a good option.
thank you for the help ! ๐