Create a Sub-Account

This endpoint helps help to create a sub-account/merchant for your customers

POST https://api.oneappgo.com/v1/business/create-subaccount

Headers

Name
Type
Description

authorization*

String

SECRET_KEY

Request Body

Name
Type
Description

firstname

string

Your customer firstname

lastname

string

Your customer lastname

email

string

Your customer email address

phoneno

string

Your customer phone number

loginaccess

boolean

Pass true to the field to create login access for the customer. Default is false

Take a look at how you might do this:

curl --location 'https://api.oneappgo.com/v1/business/create-subaccount' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRE_KEY' \
--data-raw '{
    "phoneno":"09000000001",
    "firstname":"Olaope",
    "lastname":"James",
    "email":"johndoe@exaple.com",
    "loginaccess": false
}'

Sample Response

{
    "status":true,
    "message":"Sub Account Successfully Created For OlaopeJames",
    "trackingid":"00104K0000000"
}

Last updated

Was this helpful?