#Aquitaine - refund webhooks
1 messages · Page 1 of 1 (latest)
I can see how this came about from the original charges API, but it's a little odd that creating a refund on the API returns 'the refund object' but the webhook that happens is sending you the charge object 'with some refunds attached, one of which is pertinent to this event'
ah, i can see that argument
each charge.refunded event will be associated with a single charge, but may include multiple refunds if there were multiple partial refunds on the charge
yeah, the business problem @feral cipher is trying to solve is, 'from this webhook event, get the refund object that just happened'
It's unlikely to be something we change in the near future unfortunately but it's a limitation we are aware of!
no worries, just making sure we understood it correctly. Thanks as always guys