Webhook sent by the system when a pix payment is tranfered.
Flow: cashout
Event: transfer
Webhook triggered when a Pix transfer (withdrawal) is successfully completed and the funds have already been credited to the destination account. The system delivers a POST request in the format below.
Payload Example
{
"event": "transfer",
"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]",
"document_number": "12345678232",
"status": "success",
"flow_type": "cashout",
"e2e_id": "e0000400202020404040kswkks020202",
"created_at": "2022-02-02T21:34:07+0000",
"updated_at": "2022-02-02T21:36:03+0000",
"error": null,
"events": [
{
"id": "321-654-987",
"success": true,
"status": "success",
"event_type": "transfer",
"amount": "1.00",
"ip_address": null,
"processor_code": null,
"processor_message": null,
"processor_transaction_id": "operation-id-123",
"batch_id": null,
"qrcode": null,
"qrcode_image": "",
"pix_key_type": null,
"pix_key_value": null,
"pix_message": null,
"created_at": "2022-02-02T21:36:03+0000",
"updated_at": "2022-02-02T21:36:03+0000"
},
{
"id": "123-456-789",
"success": true,
"status": "success",
"event_type": "payment",
"amount": "1.00",
"ip_address": null,
"processor_code": "1",
"processor_message": "pending",
"processor_transaction_id": "123-456-789",
"batch_id": null,
"qrcode": null,
"qrcode_image": "",
"pix_key_type": "email",
"pix_key_value": "[email protected]",
"pix_message": "This is NOT a test",
"created_at": "2022-02-02T21:34:07+0000",
"updated_at": "2022-02-02T21:34:10+0000"
}
],
"statement": [
{
"e2e_id": "e0000400202020404040kswkks020202",
"bank_statement_id": "operation-id-123",
"transaction_id": "123-456-789",
"date": "2022-02-12 18:00:35",
"amount": "450.00",
"status": "CONFIRMED",
"payer_ispb": "123321",
"payer_bank_code": "888",
"payer_bank_name": "Banco Foo S.A.",
"payer_bank_agency": "00001",
"payer_acc_number": "112233",
"payer_acc_type": "checking",
"payer_document": "12345678232",
"payer_document_type": "CPF",
"payer_name": "Foo Bar",
"created_at": "2022-02-12T18:00:42.000000Z"
}
]
}
}