#wendy-webhook-invoice

1 messages · Page 1 of 1 (latest)

raw sentinel
#

hello, one sec

#

you use the credit_note.created event which contains the Invoice ID for which Invoice it was applied to

sage parrot
#

ok thanks

#

however, our other alternative to do full refund (that does not use creditNote) but has some limitation as it can only refund the latest invoice on the sub is to create a stripe refund to the latest invoice payment intent then we delete the subscription to cancel it

#

with this i know that if we retrieve the invoice with expand[0]=charge, i will find out if it's been refunded. For this flow, which webhook to get notified to get the refundLine (debit $$)

#

the invoice might have been created/paid before the full refund via this flow happen, so our current approach in detecting invoice won't work to let us know a refund happen (invoice.paid & invoice.failed webhooks we are currently listening)