Webhook sent by the system when a pix Charge is paid.

When a Pix QR Code generated on our platform is paid, our system delivers a POST webhook in the following format:

{
  	"event": "capture",
    "transaction" : {
        "id": "123-456-789",
        "merchant_id": "123-456-789",
        "user_id": "123-456-789",
        "processor_id": "123-456-789",
        "merchant_transaction_id": "0000001",
        "transaction_type": "pix",
        "first_name": "Foo",
        "last_name": "Bar",
        "email": "[email protected]",
        "updated_at": "2022-02-02T21:36:03+0000",
        "created_at": "2022-02-02T21:34:07+0000",
        "events": [
            {
                "id": "123-456-789",
                "success": true,
                "event_type": "capture",
                "amount": "1.00",
                "qrcode": null,
                "qrcode_image": null,
                "pix_key_type": null,
                "pix_key_value": null,
                "pix_message": null,
                "updated_at": "2022-02-02T21:36:03+0000",
                "created_at": "2022-02-02T21:36:03+0000"
            },
            {
                "id": "123-456-789",
                "success": true,
                "event_type": "auth",
                "amount": "1.00",
                "processor_code": "1",
                "processor_message": "pending",
                "processor_transaction_id": "123-456-789",
                "qrcode": "COPYPASTEPIXCODE",
                "qrcode_image": "data:image/png;base64,123123456546789789",
                "pix_key_type": null,
                "pix_key_value": null,
                "pix_message": null,
                "updated_at": "2022-02-02T21:34:10+0000",
                "created_at": "2022-02-02T21:34:07+0000"
            }
        ],
    }
}

The webhook URL is defined by Processor and, for now, this configuration has to be requested to our team.