Pix charge was refunded

Webhook sent by the system when a Pix charge is refunded to the source account.

Sometimes the payment is made by a third party, meaning the document associated with the payer's account is different from the one provided when creating the charge. When this happens, the deposited amount is refunded to the source account, and our system delivers a POST webhook in the following format:

{
    "event": "void",
    "transaction": {
        "id": "3238094e-aaea-417f-8ba3-175a5e4d30fb",
        "merchant_id": "c5cbab97-4dfb-468c-aa06-27dbee6e7c2e",
        "user_id": "ae8555d5-b5c5-4075-af58-c3252094daee",
        "processor_id": "ee83698e-8cf9-4adb-8016-d2db9e1ca232",
        "merchant_transaction_id": "f1c8b96b-000a-4587-b4ee-128bd1336c1b",
        "transaction_type": "pix",
        "first_name": "Foo",
        "last_name": "Bar",
        "email": "[email protected]",
        "updated_at": "2025-02-02T06:35:23+0000",
        "created_at": "2025-02-02T06:34:33+0000",
        "events": [
            {
                "id": "680049dc-f50a-4972-9c4e-c91b3dc33ec5",
                "success": true,
                "status": "success",
                "event_type": "void",
                "amount": "30.00",
                "ip_address": null,
                "processor_code": "1",
                "processor_message": "1",
                "processor_transaction_id": "c2eece92-8082-449a-9e96-ef2fb5445415",
                "batch_id": null,
                "qrcode": null,
                "qrcode_image": "",
                "pix_key_type": null,
                "pix_key_value": null,
                "pix_message": null,
                "updated_at": "2025-02-02T06:35:25+0000",
                "created_at": "2025-02-02T06:35:23+0000"
            },
            {
                "id": "a6102cb4-98fc-4b9e-b68e-1a1424364efb",
                "success": false,
                "status": "declined",
                "event_type": "auth",
                "amount": "30.00",
                "ip_address": null,
                "processor_code": "1",
                "processor_message": "1",
                "processor_transaction_id": "c2eece92-8082-449a-9e96-ef2fb5445415",
                "batch_id": null,
                "qrcode": "qrcode string",
                "qrcode_image": "",
                "pix_key_type": null,
                "pix_key_value": null,
                "pix_message": "Depósito para: merchant name",
                "updated_at": "2025-02-02T06:35:23+0000",
                "created_at": "2025-02-02T06:34:33+0000"
            }
        ],
        "document_number": "05586718022",
        "status": "failed",
        "flow_type": "cashin",
        "error": {
            "type": "ERROR_COMPLIANCE",
            "code": 1,
            "message": "Third party payments are not allowed",
            "meta": []
        },
        "e2e_id": "E18236120202502020422s165b390a37",
        "statement": [
            {
                "e2e_id": "E18236120202502020422s165b390a37",
                "date": "2025-02-02 03:35:15",
                "amount": "30.00",
                "acc_info": {
                    "ispb": "99999999",
                    "bank_code": "999",
                    "bank_agency": "9999",
                    "acc_number": "99999999",
                    "acc_type": "TRAN",
                    "document": "05586718022",
                    "name": "Foo Bar"
                },
                "created_at": "2025-02-02T06:35:15.000000Z"
            }
        ]
    }
}