#raz4395

1 messages ยท Page 1 of 1 (latest)

left wadiBOT
manic aspen
daring bane
#

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?

manic aspen
#

Nope

daring bane
#

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

manic aspen
#

You can listen to this event subscription_schedule.canceled

daring bane
#

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

manic aspen
#

yes that's a good option.

daring bane
#

thank you for the help ! ๐Ÿ™‚