Every time an insights is generated, a webhook is sent to the URL.
This response usually contains an object of the insights response that have been generated for that particular statement.
Mobile Insights Webhook Response
Here is an example of the response from a mobile insights call that is sent to the webhook.
To compare the hash; serialize the whole insights response object, hash the response and compare both
{
"metadata": {
"statusMessage": null,
"statusCode": "0",
"timeStamp": "01/01/0001 00:00:00",
"responseType": "INSIGHTS",
"hmacMessage": "365a61a63aedc2298ac92870e2e2bd108188f9c090fd878949c43d3576da79b49ad405b746f78a1f130e92af4e728b1993c056e2cab0ec2edd8058ae7bd2c942"
},
"mobileInsights": [],
"mobileRequest": {
"bankName": null,
"clientFullName": null,
"accountType": null,
"accountName": null,
"statementName": null,
"appName": "Periculum",
"bundleId": "com.periculum",
"version": "1.0",
"device": {
"device": "a02",
"deviceId": "k39tv1_bsp_titan_hamster",
"deviceName": "Galaxy A02",
"firstInstallTime": 1638979981343,
"baseOs": "Android",
"apiLevel": 29,
"androidId": "44abe5741a109256",
"batteryLevel": 1,
"brand": "samsung",
"buildNumber": 1,
"fingerprint": null,
"manufacturer": "samsung",
"maxMemory": 201326592,
"readableVersion": "1.0.1",
"uniqueId": "09abe5741a10422",
"isTablet": false,
"camera": {
"isCameraPresent": true
},
"network": {
"carrier": "Stay Safe",
"ip": "0.0.0.0",
"macAddress": "E0:C3:77:84:E4:74"
}
},
"sms": {
"data": [{
"_id": 0,
"thread_id": 0,
"address": "carbon",
"date": 1638968676984,
"date_sent": 0,
"protocol": 0,
"read": 0,
"status": -1,
"type": 1,
"reply_path_present": 0,
"body": "Hi AWUYA Onefi-Carbon is offering you 50% off your unpaid loan. Pay 6094 into Access Bank: One Finance 0711190324, send proof to [email protected]",
"locked": 0,
"sub_id": 0,
"error_code": 0,
"creator": "com.samsung.android.messaging",
"seen": 0,
"sim_imsi": null,
"AccountNumber": "0711190324"
}, {
"_id": 0,
"thread_id": 0,
"address": "MTN N",
"date": 1638896046045,
"date_sent": 0,
"protocol": 0,
"read": 0,
"status": -1,
"type": 1,
"reply_path_present": 0,
"body": "Your MOD/MyMTNApp recharge bonus will expire on 2021-12-09 \u0026 unused bonus will NOT rollover. Dial *556# to view bonus.",
"locked": 0,
"sub_id": 0,
"error_code": 0,
"creator": "com.samsung.android.messaging",
"seen": 0,
"sim_imsi": null,
"AccountNumber": null
}, {
"_id": 0,
"thread_id": 0,
"address": "zenithbank",
"date": 1638894551976,
"date_sent": 0,
"protocol": 0,
"read": 1,
"status": -1,
"type": 1,
"reply_path_present": 0,
"body": "Acct:217**499\nDT:07/12/2021:5:28:05PM\nTRF FRM GODWIN SAMUEL AWUYA TO ELLI\nDR Amt:25,000.00\nBal:5,749.08\nREF:1305483861\n",
"locked": 0,
"sub_id": 0,
"error_code": 0,
"creator": "com.samsung.android.messaging",
"seen": 1,
"sim_imsi": null,
"AccountNumber": "217**499"
}
],
"count": 3
},
"metadata": {
"customer": {
"phoneNumber": "08066518328",
"bvn": "000000001"
}
},
"location": {
"accuracy": 60,
"altitude": 56.16767860279199,
"bearing": 0,
"latitude": 6.5667185,
"longitude": 3.2741809,
"provider": "fused",
"speed": 0,
"time": 1638980181522
}
}
}