Refund event
This webhook event is triggered when a refund has been processed for a payment. The event provides the refund amount and references to the original transaction for complete payment reversal tracking.
Webhook Example
{
"checkoutReference": "x7xhpi5lluzdg8dfg8qrt6vs57bi3xjmt6ky9g4tvcbcxuxwjg",
"payfacReference": "MD7XSDUCAA88YCGW",
"merchantReference": "73137382793774",
"amount": "10000",
"currency": "ISK",
"reason": "",
"success": "true",
"hmacSignature": "c3yRkNSWw+TaHwRbvXFJ+rDmcVREheNlMTqF7XsnZio=",
"additionalData": {
"eventType": "Refund",
"authCode": "123457",
"cardNumber": "411111******1111",
"cardUsage": "Debit",
"originalPayfacReference": "OOJWITWVQV42PSE8",
"paymentMethod": "VI",
}
}
info
HMAC key: 46cf31c712a1eecbd52426e32589b2f85351c44b747913fa
Headers
In the Authorization header, we will set the matching Api key for your webhook.
Fields
You will always get these fields.
| Field | Type | Description |
|---|---|---|
| checkoutReference | nullable string | Reference generated for this refund request. This is not the checkoutReference of the original checkout session — use originalPayfacReference to find the payment. See Reference fields. |
| payfacReference | string | Unique identifier of this refund. It matches the payfacReference returned in the Received response of the request that triggered it. |
| merchantReference | nullable string | The reference you sent in the refund request. May be null when the refund was not made through the API. |
| amount | string | The payment amount in the minor currency unit. |
| currency | string | The three-letter ISO currency code. |
| reason | nullable string | A field that provides additional context in case of payment errors or declines, helping diagnose specific issues. |
| success | string | Indicates the payment status (true/false). |
| hmacSignature | string | A cryptographic signature generated using a secret, enabling verification of the message authenticity and ensuring it hasn’t been tampered with. |
| additionalData | object | An object for the additional details included in the event. |
Additional Data Fields
Fields you will get depend on the event type of the webhook.
| Field | Type | Description |
|---|---|---|
| eventType | string | A string representing the type of event that occurred. |
| authCode | nullable string | An authorization code is a unique series of letters or numbers generated by a card issuer or bank to validate a card payment. |
| cardNumber | nullable string | A partially masked PAN. |
| cardUsage | nullable string | The source of funds used for a payment. |
| originalPayfacReference | nullable string | The payfacReference of the authorization this refund applies to — the value you sent as payfacReference in the request. Use it to link the event to the payment. |
| paymentMethod | nullable string | The payment method used in the payment. |