Data Sync
Last updated May 19th, 2022
Overview
Data sync allows you to fetch new data (balance, transactions, and statements) of a connected financial account from an institution.
Manual Trigger
You can manually trigger data sync through our Manual Data Sync endpoint so as to get new data. This will trigger a request to update the user's financial data.
On Manual Triggers
Some banks require the user to re-authorize data sync if they have Multi-Factor Authentication (MFA) enabled on their account. This means that the user will be required to enter an OTP, security answer, or CAPTCHA before their data can be updated.
What Happens?
For Accounts Without MFA
A webhook event called mono.events.account_updated
is sent for a manual trigger. After this has been sent, requests to the Information , Statement, Transactions , Income endpoints will now return new data. The returned data object that is sent with this webhook event is shown below:
Request
{
"event": "mono.events.account_updated",
"data": {
"meta": {
"data_status": "AVAILABLE",
"auth_method": "internet_banking"
},
"account": {
"scope": [
"financial_data"
],
"_id": "6631279bdedfbd",
"name": "Samuel Olamide",
"accountNumber": "0235000043",
"currency": "NGN",
"balance": 20044,
"type": "Tier 3 Savings Account",
"bvn": "1010",
"liveMode": true,
"institution": {
"name": "ALAT by WEMA",
"bankCode": "035",
"type": "PERSONAL_BANKING"
},
"accessType": "PERSISTENT",
"created_at": "2024-04-30T17:16:01.171Z",
"updated_at": "2024-05-01T10:25:23.666Z"
}
}
}
For the manually triggered sync, along with the webhook event above, the object response from the Data Sync endpoint when triggered is shown below:
Request
{
"status": "successful",
"hasNewData": true,
"code": "SYNC_SUCCESSFUL",
"message": null
}
For Accounts With MFA Enabled
If the connected account has Multi-Factor Authentication (MFA) enabled, the user must re-authorise the connection using MFA (i.e OTP, security question or CAPTCHA), before new data can be retrieved from their financial institution.
A webhook event called mono.events.reauthorisation_required
, will send the response below, containing the connected account._id
Request
{
event: 'mono.events.reauthorisation_required',
data: {
account: {
_id: '5fbcde8f8699984153e65537'
}
}
}
For the manually triggered sync, along with the webhook event, the response from the Data Sync endpoint is shown below:
Request
{
"status": "failed",
"hasNewData": false,
"code": "REAUTHORISATION_REQUIRED"
}
The user then has to re-authorise their account on the Mono Connect Widget before the Data Sync can be completed.
Activating Data Sync
To activate Data Sync for your business, log in to the Plans & Billing page on your dashboard, switch to the My Subscriptions tab and toggle the Data Sync switch on, to enable it for your business, as seen in the image below;