Fired when a payment has been refunded to the customer. It provides details about the refund transaction, including the refunded amount and the original payment reference. Businesses can use this webhook to update financial records, notify customers of the refund status, and provide follow-up support to resolve any issues.
Example of Request Payload Object (payment_refunded)
Copy {
"id": "5e65daf0-8253-4ffb-ab54-8645465aac75",
"type": "payment_refunded",
"testMode": true,
"data": {
"user": {
"id": "6ea05f2f-fab2-4718-bfaf-abe888798100",
"email": "test@fungies.io",
"object": "user",
"username": null,
"internalId": null
},
"items": [],
"order": {
"id": "a0671147-3eee-4e08-885c-66dc436623f2",
"fee": 0,
"tax": 0,
"value": 0,
"number": "kktRWz1FllD0WDDX",
"object": "order",
"status": "PAID",
"userId": "6ea05f2f-fab2-4718-bfaf-abe888798100",
"country": "US",
"currency": "USD",
"createdAt": 1732370437156,
"totalItems": 0,
"orderNumber": "kktRWz1FllD0WDDX",
"currencyDecimals": 2
},
"payment": {
"id": "a0671147-3eee-4e08-885c-66dc436623f2",
"fee": 0,
"tax": 0,
"type": "one_time",
"value": 0,
"number": "kktRWz1FllD0WDDX",
"object": "payment",
"status": "PAID",
"userId": "6ea05f2f-fab2-4718-bfaf-abe888798100",
"orderId": "a0671147-3eee-4e08-885c-66dc436623f2",
"currency": "USD",
"createdAt": 1732370437156,
"orderNumber": "kktRWz1FllD0WDDX",
"currencyDecimals": 2
},
"customer": {
"id": "6ea05f2f-fab2-4718-bfaf-abe888798100",
"email": "test@fungies.io",
"object": "user",
"username": null,
"internalId": null
}
},
"idempotencyKey": "5e65daf0-8253-4ffb-ab54-8645465aac75"
}