Pix charge was refunded

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

Flow: cashin

Event: void

Sometimes the payment is made by a third party, meaning the document (CPF) associated with the paying account differs from the one provided when the charge was created. When this happens, the deposited amount is refunded to the source account and our system delivers a POST request in the format below.

This event may be triggered in other scenarios where the deposit cannot be processed, such as a blocked bank or other compliance-related restrictions.

Payload Example

{
    "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]",
        "document_number": "05586718022",
        "status": "failed",
        "flow_type": "cashin",
        "e2e_id": "E18236120202502020422s165b390a37",
        "created_at": "2025-02-02T06:34:33+0000",
        "updated_at": "2025-02-02T06:35:23+0000",
        "error": {
            "type": "ERROR_COMPLIANCE",
            "code": 1,
            "message": "Third party payments are not allowed",
            "meta": []
        },
        "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,
                "created_at": "2025-02-02T06:35:23+0000",
                "updated_at": "2025-02-02T06:35:25+0000"
            },
            {
                "id": "b7e2a1f3-1234-4abc-9def-987654321abc",
                "success": true,
                "status": "pending_settlement",
                "event_type": "third_deposit",
                "amount": "30.00",
                "ip_address": null,
                "processor_code": null,
                "processor_message": null,
                "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,
                "created_at": "2025-02-02T06:35:20+0000",
                "updated_at": "2025-02-02T06:35:20+0000"
            },
            {
                "id": "a6102cb4-98fc-4b9e-b68e-1a1424364efb",
                "success": true,
                "status": "success",
                "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",
                "created_at": "2025-02-02T06:34:33+0000",
                "updated_at": "2025-02-02T06:34:33+0000"
            }
        ],
        "statement": [
            {
                "e2e_id": "E18236120202502020422s165b390a37",
                "bank_statement_id": "c2eece92-8082-449a-9e96-ef2fb5445415",
                "transaction_id": "3238094e-aaea-417f-8ba3-175a5e4d30fb",
                "date": "2025-02-02 03:35:15",
                "amount": "30.00",
                "status": "CONFIRMED",
                "payer_ispb": "99999999",
                "payer_bank_code": "999",
                "payer_bank_name": "Banco Foo S.A.",
                "payer_bank_agency": "9999",
                "payer_acc_number": "99999999",
                "payer_acc_type": "TRAN",
                "payer_document": "05586718022",
                "payer_document_type": "CPF",
                "payer_name": "Foo Bar",
                "created_at": "2025-02-02T06:35:15.000000Z"
            }
        ]
    }
}