#Aquitaine - refund webhooks

1 messages · Page 1 of 1 (latest)

dusky cloak
#

👋

barren stump
#

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'

dusky cloak
#

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

barren stump
#

yeah, the business problem @feral cipher is trying to solve is, 'from this webhook event, get the refund object that just happened'

lavish arch
#

It's unlikely to be something we change in the near future unfortunately but it's a limitation we are aware of!

barren stump
#

no worries, just making sure we understood it correctly. Thanks as always guys