Pix transfer was successful
Webhook sent by the system when a pix payment is tranfered.
When a Pix transfer is successful (the amount is already on the destination bank account), our system delivers a POST webhook in the following format:
Webhook example:
Pix transfer webhook example payload
{
"event": "transfer",
"transaction": {
"created_at": "2022-02-02T21:34:07+0000",
"e2e_id": "e0000400202020404040kswkks020202",
"email": "[email protected]",
"error": null,
"events": [
{
"amount": "1.00",
"created_at": "2022-02-02T21:36:03+0000",
"event_type": "transfer",
"id": "321-654-987",
"pix_key_type": null,
"pix_key_value": null,
"pix_message": null,
"qrcode": null,
"qrcode_image": null,
"success": true,
"updated_at": "2022-02-02T21:36:03+0000"
},
{
"amount": "1.00",
"created_at": "2022-02-02T21:34:07+0000",
"event_type": "payment",
"id": "123-456-789",
"pix_key_type": "email",
"pix_key_value": "[email protected]",
"pix_message": "This is NOT a test",
"processor_code": "1",
"processor_message": "pending",
"processor_transaction_id": "123-456-789",
"qrcode": null,
"qrcode_image": null,
"success": true,
"updated_at": "2022-02-02T21:34:10+0000"
}
],
"first_name": "Foo",
"flow_type": "cashout",
"id": "123-456-789",
"last_name": "Bar",
"merchant_id": "123-456-789",
"merchant_transaction_id": "0000001",
"processor_id": "123-456-789",
"statement": [
{
"acc_info": {
"acc_number": "112233",
"acc_type": "checking",
"bank_agency": "00001",
"bank_code": "888",
"document": "****232****",
"ispb": "123321",
"name": "Foo Bar"
},
"amount": "450.00",
"created_at": "2022-02-12T18:00:42.000000Z",
"date": "2022-02-12 18:00:35",
"e2e_id": "e0000400202020404040kswkks020202"
}
],
"status": "success",
"transaction_type": "pix",
"updated_at": "2022-02-02T21:36:03+0000",
"user_id": "123-456-789"
}
}
The webhook URL is defined by Processor and, for now, this configuration has to be requested to our team.