improved
Updated Bank code mapping in Collect webhook
29 days ago by Muskan Chugh
Previously bank codes were mapped as follows -
"bank_codes": [
{
"key": "swift_code",
"value": "swufbkr"
}
],
To bring parity among all Tazapay objects , now bank codes in collect webhook (In both destination_details and payer_bank_details) will be mapped as following -
"bank_codes":
{
"swift_code": "swufbkr"
}
Here is an example webhook response
{
"type": "collect.succeeded",
"id": "evt_ct084dhp7e1snb8es140",
"object": "event",
"created_at": "2024-11-22T13:08:06.763281809Z",
"data": {
"metadata": {},
"created_at": "2024-11-22T12:14:30.248803Z",
"payer": {
"payer_bank_details": {
"bank_codes": {
"swift": "testSC"
},
"account_number": "test",
"name": "test"
},
"name": "test",
"reference_id": "test",
"additional_details": "test"
},
"destination_details": {
"type": "virtual_account",
"virtual_account": {
"account_holder_name": "test",
"account_number": "testa",
"bank_codes": {
"swift_code": "testSC"
},
"id": "cva_crqj1ri9chqqs7moi980",
"object": "virtual_account",
"currencies": [
"UGX",
"USD",
"HKD",
"HUF",
"ILS",
"JPY",
"KES",
"TRY"
],
"iban": "test"
}
},
"id": "col_ct07b9glg5v6hep19qkg",
"object": "collect",
"currency": "USD",
"status": "succeeded",
"type": "wire_transfer",
"destination": "cva_crqj1ri9chqqs7moi980",
"holding_currency": "USD",
"balance_transaction": "btr_ct084bolg5v6hep1onb0",
"amount": 10000
}
}