#blueish
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
There's a refund.created event: https://stripe.com/docs/api/events/types#event_types-refund.created
I'm not seeing this refund.created event the event logs of my invoice
Could you please share the invoice ID?
Normal partial refund
in_1MtR76Qvae0iFd1N4BAI0jma
Partial refund using credit note
in_1MtR8aQvae0iFd1NfksmP8ik
Both of these Invoices have a related charge.refunded events
yes
and how can I distinguish if the refund is from a normal refund or from a credit note based on the charge.refunded event data?
I see, let me check
I don't think there's a way to tell the difference, unfortunately.
ok but is it possible to get all the credit notes of an invoice?
You can list Credit Notes by Invoice ID: https://stripe.com/docs/api/credit_notes/list#list_credit_notes-invoice