Create a Connected Account

Creation of a connected businesses/account

Connected accounts can be created via dashboard and available via API for larger integrations. If you accessing connected accounts via your business dashboard, simply go to connect and select the connected account tab.

Terminologies for connected businesses

  • bankName and accountNumber: This refers to the bank account of the connected account while the later refers to the bank code

Access get banks endpoint here

  • businessName and userMobile: This refers to the name of the business and the phone number associated with the business/merchant.

  • splitType: this refers to the commission the parent business would like to receive from the connected account. Split types include flat and percentage with cap

  • flat: this refers to a flat fee you want to receive from the connected account from each transaction made

    1. to accept a payment of 50 naira for each transaction, split_type will be "flat" and split_value will be 50

    2. to accept a payment of 100 naira for each transaction, split_type will be "flat" and split_value will be 100

  • percentage with cap: this refers to the percentage of the transaction you would like to get as a commission with a cap txCap(or no cap)

    1. to accept payment of 3% for each transaction with a cap of 2000 naira, split_type will be "percentage with cap" and split_value will be 0.03while txCap will be 2000

    2. to accept payment of 3% for each transaction with no cap, split_type will be "percentage with cap" and split_value will be 0.03while txCap will be 0

Create Connected accounts

Connected accounts can either be created via your business/merchant dashboard or directly via create account endpoint.

Create a Connected Accounts

POST https://api2.ourpass.co/v1/api/subaccounts/partial

This endpoint help businesses to create connected accounts

Headers

NameTypeDescription

apiKey*

String

Pass your api key in the request header to authorise the call

{
    "success": true,
    "message": "Business Subaccount created",
    "data": {
        "businessName": "Dan Busee ltd",
        "accountNumber": "0073559141",
        "bankCode": "000001",
        "currency": "NGN",
        "authorizationKeys": "auth_live_lHe89VQLI9Jym4Yd5WGiTSZVqHpel9Qy",
        "splitType": "percentage-with-cap",
        "splitValue": 0,
        "percentValue": 10,
        "createdAt": "Mon Mar 28 2022 10:45:01 GMT+0100 (West Africa Standard Time)"
    }
}
curl --location --request POST 'https://api2.ourpass.co/v1/api/subaccounts/partial' \
--data-raw '{
    "bankCode": "000001",
    "txCap": 1000,
    "subAccountEmail": "kilofer2357.nd@gmail.com",
    "userMobile": "2348098783565",
    "businessName": "Dan Busee ltd",
    "accountNumber": "0073559141",
    "accountName": "OLALEKAN ADEWALE",
    "currency": "NGN",
    "bankName": "ACCESS BANK"    
}'

Last updated