NEWIntroducing Mono Prove: Transforming Identity Verification and Customer Onboarding experiences
Mono Blog

How to retrieve Account ID

Sep 19, 2021Engineering

Share article

Mono's robust APIs give developers/businesses superpowers to access financial accounts across Africa. To fully engage these suites of APIs, an Account ID is required for interactions.

Overview

To get started, you will need to implement the Mono Connect widget, in which your user will fill in their bank credentials to authenticate with their desired bank.

Once authenticated, you'll receive an authorisation code which you will then use to exchange for the account ID that will be used to consume Mono's API endpoints. E.g. the Bank statement endpoint.

With the account ID received, you can save this to your database for future API interactions.

Let me show you how simple it is

Mono connect widget has a couple of SDKs where the widget can be initiated. For this context, we would be implementing a JS/HTML Mono connect widget sample.

Firstly, insert the below script in your head tag.

null

Next, you can have this button inserted anywhere in your body to initiate widget.

null

Now take a look at the code below:

null

Ensure you pass in your public key to your key field. If you do not have any, quickly take a look at this documentation to get one and proceed.

With this fully setup, your user will authenticate successfully and a response code will be passed to the onSuccess callback method.

At this point, you will have to send this code to your backend and retrieve the Account ID with Mono's Auth. Endpoint.

The below snippet is a basic implementation of retrieving the account id with Mono's auth endpoint.

null

Once retrieved, you can then go ahead and persists this account ID to database. Full code to a sample widget can be found in this repository.

Check out our documentation for access to more APIs.

Interested in using Mono?

Request access to get started or reach out to us at hi@mono.co.

Like what you read?

Become a subscriber and receive notifications about blog posts, company events and announcements, products and more.

Next Read

Oct 2, 2024Engineering

Building an automated loan recovery process with Mono Direct Debit APIs

Read the story
Building an automated loan recovery process with Mono Direct Debit APIs
Jul 15, 2024Engineering

How to Implement the Mono Telco Data API

Read the story
How to Implement the Mono Telco Data API
Apr 19, 2024Engineering

How to build a robust credit-decisioning system with Mono Lookup APIs

Read the story
How to build a robust credit-decisioning system with Mono Lookup APIs

Start building with Mono today

a Flutterwave company

2026 © Mono Technologies Nigeria Limited

trust mark NIGtrust mark QR Codeiso-iec27001iso-iec27002iso-iec27003

Disclaimer:
The information provided on this website is intended for general informational purposes only and does not constitute financial, legal, or professional advice. While we strive to ensure that the content presented is accurate and up-to-date, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.

Our platform is designed to ensure secure access to financial accounts for the purposes of retrieving statements, monitoring transactions in real-time, and verifying customer identities. Despite our use of advanced security protocols to protect sensitive information, we cannot guarantee the absolute security of your data. Users are advised to independently verify the accuracy and completeness of all information obtained through our services before making any financial or business decisions.

Furthermore, while we endeavor to keep the website running smoothly, we take no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control. In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website.

This website may contain links to other websites which are not under the control of our company. We have no control over the nature, content, and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.

By using this website, you agree to these terms and acknowledge that any reliance on the information provided here is at your own risk. If you have any questions regarding this disclaimer or the website's content, please contact us directly.