#srn-refunds
1 messages · Page 1 of 1 (latest)
hello @ebon onyx! it's not possible via a single webhook event only. You would probably want to also listen for charge.refund.updated and check the refund status : https://stripe.com/docs/api/refunds/object#refund_object-status
pretty much yes. For some kinds of payment methods, it's possible to see a successful refund, then later it's refund status is updated to failed
ach debit is one of them, sepa debit and iDEAL too
it'll contain the same parameters which you would expect to see in a refund object
i don't think i've personally ever come across a case for card payment that first succeeds and then fails later
let me see if i can find one example charge.refund.updated to share with you, onesec
{
"id": "evt_...",
"object": "event",
"api_version": "2020-03-02",
"created": 1643673601,
"data": {
"object": {
"id": "re_...",
"object": "refund",
"amount": 50000,
"balance_transaction": "txn_...",
"charge": "ch_...",
"created": 1643132817,
"currency": "usd",
"metadata": {
},
"payment_intent": "pi_...",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
"status": "succeeded",
"transfer_reversal": null
},
"previous_attributes": {
"status": "pending"
}
},
"livemode": true,
"pending_webhooks": 1,
"request": {
"id": null,
"idempotency_key": null
},
"type": "charge.refund.updated"
}
yes, you'll need to get the charge id from the refund object and then make a request to retrieve the charge object to get the metadata. For Connect events, the event will also contain an account header : https://stripe.com/docs/connect/webhooks#connect-webhooks