Mono Logo
  • Why Mono
    • Why Choose Mono
      Here's why 250+ Businesses & Developers use Mono APIs
    • Pricing
      Affordable pricing for developers, SMEs, and enterprises
    • See a Demo
      Experience Mono APIs in action
  • Products
    • Connect
      Financial account linking
    • Statement Pages
      No-code bank statement collection
    • DirectPay
      Direct bank payment collection
    • DirectPay Pages
      No-code bank payment collection
    • Portal
      Linked account management
    • Percept
      Corporate finance management
  • Learn
    • About us
    • Blog
    • Tutorials
    • Coverage
  • Developers
    • Overview
    • Documentation
Create free account
Why Mono
  • Why Choose Mono
  • Pricing
  • See a Demo
Products
  • Connect
  • Statement Pages
  • DirectPay
  • DirectPay Pages
  • Portal
  • Percept
Learn
  • About us
  • Blog
  • Tutorials
  • Coverage
Developers
  • Overview
  • Documentation
Create free account
Mono Blog

How to retrieve Account ID

26 Feb, 2021Engineering
  • King Kenway
    Growth
  • On this page
    • Overview
    • Let me show you how simple it is
    • Interested in using Mono?
    Share article
    • Twitter
    • LinkedIn

    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.

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

    Now take a look at the code below:

    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.

    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

    3 Oct, 2024Engineering

    Building an automated loan recovery process with Mono Direct Debit APIs

    Read the story
    Building an Automated Loan Recovery Process using Mono Direct Debit APIs
    17 Jul, 2024Engineering

    How to Implement the Mono Telco Data API

    Read the story
    How to Implement the Mono Telco Data API

    Start building with Mono

    Access high-quality financial data and start processing payments directly from bank accounts in minutes.

    Start now for freeTalk to Sales
    Products
    • Connect
    • Statement Pages
    • DirectPay
    • DirectPay Pages
    • Portal
    • Transactions
    • Income
    • Information
    • Realtime Data
    Resources
    • Developers
    • Documentation
    • API Reference
    • SDKs
    • Demo
    • Join Slack
    • Consumers
    Company
    • About us
    • Partner stories
    • Blog
    • Coverage
    • Careers
    • Contact
    Legal
    • End-User Policy
    • Privacy Policy
    • Developer Policy
    • Terms of Use
    • Cookies
    • Security
    © Mono Technologies Nigeria Limited
    TwitterLinkedIn