This webhook request is triggered whenever a card was charged successful, but the transaction failed at a point or after chargeback dispute. The event type is transaction.refund

Request Payload

{
    "environment": "production",
    "business": "xxxxxxxxxxxxxxxxxxxxx",
    "data": {
        "object": {
            "_id": "xxxxxxxxxxxxxxxxxxxxx",
            "business": "xxxxxxxxxxxxxxxxxxxxx",
            "customer": "xxxxxxxxxxxxxxxxxxxxx",
            "account": "xxxxxxxxxxxxxxxxxxxxx",
            "card": "xxxxxxxxxxxxxxxxxxxxx",
            "authorization": "xxxxxxxxxxxxxxxxxxxxx",
            "amount": 20005,
            "fee": 5,
            "vat": 0,
            "feeDetails": [{
                "contract": "61a18b8a4ddab599d20344a7",
                "currency": "NGN",
                "amount": 5,
                "description": "Verve Card Authorization Fee",
                "_id": "66d39a9a74ffd5590104310d"
            }],
            "currency": "NGN",
            "type": "refund",
            "balanceTransactions": [],
            "merchantAmount": 20000,
            "merchantCurrency": "NGN",
            "merchant": {
                "category": "6014",
                "name": "T Jeezy Communicati 017",
                "merchantId": "2TEPLA000000002",
                "city": "225 2TEP6ZJD",
                "state": "LA",
                "country": "NG",
                "postalCode": "100001",
                "_id": "66d39a9274ffd559010430a4"
            },
            "terminal": {
                "rrn": "000000017225",
                "stan": "017225",
                "terminalId": "2TEP6ZJD",
                "terminalOperatingEnvironment": "on_premise",
                "terminalAttendance": "attended",
                "terminalType": "pos",
                "panEntryMode": "magnetic_stripe",
                "pinEntryMode": "magnetic_stripe",
                "cardHolderPresence": true,
                "cardPresence": true,
                "_id": "66d39a9274ffd559010430a5"
            },
            "transactionMetadata": {
                "channel": "pos",
                "type": "payment",
                "reference": "9160060154000000017225",
                "_id": "66d39a9274ffd559010430a6"
            },
            "isDeleted": false,
            "createdAt": "2024-09-02T20:17:55.766Z",
            "updatedAt": "2024-09-02T20:17:55.766Z",
            "__v": 0
        }
    },
    "_id": "xxxxxxxxxxxxxxxxxxxxx",
    "type": "transaction.refund",
    "pendingWebhook": true,
    "webhookArchived": false,
    "createdAt": 1716210897,
    "__v": 0
}