#KEITH LARD
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Do you have an example refund you're looking at?
Just want to make sure I am on the same page
Ye, would you like an event id?
Sure
evt_3N92QNAjtNFaRAYo1UxMOqWU
This for example was refunded 50p
but amount_refunded is a rolling total off all refunds on the charge (which makes sense), I'm just trying to figure how to get that 50p figure to store each refund in my database. Rather than the total
Maybe listen to refund.created instead?
Ah my bad, I think that event is only generated if a refund is created from customer's cash balance..
Hmm thinking...
Ah you can retrieve the charge and expand refunds
https://stripe.com/docs/api/charges/object#charge_object-refunds
That should get you all the refunds linked to the charge
Cool thank you I will have a look ๐