#stoneej
1 messages · Page 1 of 1 (latest)
Right. refund.created is specifically for cash balances on the Customer.
To get the Refund object, you'd have to make a Charge Retrieve API call to get charge.refunds, which is a list of refunds on the Charge: https://stripe.com/docs/api/charges/object#charge_object-refunds
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh I see it's not included by default so that's why I wasn't see anything on the webhook. Thank you.
Okay. So for our use case we care about any refunds to invoices for the customer. We would only need charge.refunded for this right? No need to worry about refund.created.
Correct, charge.refunded will always be triggered for an invoice refund. refund.created would be created for a refund for a specific payment method, but in that case charge.refunded will be triggered as well