Generate Account

This endpoint allows you to generate virtual account for a specified bank as setup in the preferred bank endpoint above

POST https://api.oneappgo.com/v1/dedicated-account

You can pass bankcode as a field to the generate account endpoint to generate account number on the go without considering the default set bank. Get the list of available bank and their code from the partnerbank endpoint.

Headers

NameTypeDescription

authorization*

String

SECRET_KEY

Request Body

NameTypeDescription

trackingid*

String

A unique id for the user generating account for

firstname*

String

First name of the user

lastname*

String

Last name of the user

userbvn*

String

Bank Verification Number of the user

useremail*

String

Email Address

userphone*

String

Phone number

bankcode

String

Bank code

{
  "status": true,
  "message": "Account Number Successfully Generated",
  "trackingref": "001858002",
  "trackingid": "002",
  "acctname": "John Doe",
  "acctno": "3984124113",
  "clientid": "1858000",
  "bankcode": "101",
  "bankname": "Providus Bank"
}

Take a look at how you might do this:

curl --location 'https://api.oneappgo.com/v1/dedicated-account' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "trackingid": "2727",
    "firstname": "John",
    "lastname": "Doe",
    "userbvn": "22222253444",
    "useremail": "johndoe@example.com",
    "userphone": "09123456789",
    "bankcode": "101"
}'

Sample response

{
  "status": true,
  "message": "Account Number Successfully Generated",
  "trackingref": "001858002",
  "trackingid": "002",
  "acctname": "John Doe",
  "acctno": "3984124113",
  "clientid": "1858000",
  "bankcode": "101",
  "bankname": "Providus Bank"
}

Last updated