Once you have successfully reserved an account, it’s important you implement a webhook urlURL. This is how we notify you when a transfer is done to that account. To implement a webhook, you simply need to create an endpoint that accepts post requests and can calculate a HASH value for security. Here is what we send to your webhook urlURL:
Info |
---|
For information on how to calculate the transactionHash click here. Test your webhook here by doing a test transfer to an active monnify account number. |
...
Webhook Notification Data - Account Transfer
Code Block | ||
---|---|---|
| ||
{ "transactionReference" : "MNFY|20200900003149|000000", "paymentReference" : "MNFY|20200900003149|000000", "amountPaid" : "180000.00", "totalPayable" : "180000.00", "settlementAmount" : "179989.25", "paidOn" : "09/09/2020 11:31:56 AM", "paymentStatus" : "PAID", "paymentDescription" : "Ojinaka Daniel", "transactionHash" : "a294a0bfxxxxxxxxxxxxxxxxxxxx0b399cf077e30cf2ad54a7da9e17583deb5130286e6bb5dxxxx353f027725b83fcafac02d2e181f53edd5f", "currency" : "NGN", "paymentMethod" : "ACCOUNT_TRANSFER", "product" : { "type" : "RESERVED_ACCOUNT", "reference" : "7b3xxxx072a44axxxxxxx2b6c2374458" }, "cardDetails" : null, "accountDetails" : { "accountName" : "John Ciroma Abuh", "accountNumber" : "******4872", "bankCode" : "000015", "amountPaid" : "180000.00" }, "accountPayments" : [ {{ "accountName" : "John Ciroma Abuh", "accountNumber" : "******4872", "bankCode" : "000015", "amountPaid" : "180000.00" } }], "customer" : { "email" : "dojinaka@monnify.com", "name" : "Daniel Ojinaka" }, "metaData" : { } } |
Webhook Notification Data - Card Payment
...