1app
Create Boldd AccountLogin
  • Introduction
  • Authentication
  • Balance
  • Get Exchange Rate
  • Response Code
  • RECEIVE PAYMENTS
    • Payments
      • Initialize Payment
      • Verify Payment
      • Payment List
      • Payment Details
    • Inline/Popup Checkout
    • Payouts / Settlements
      • Payouts List
      • Settlement Transactions
    • Dispute Management
      • Fetch Disputes
      • Accept a Dispute
      • Decline a Dispute
    • Customers List
    • Webhook Notifications
    • Repush Notification
  • Virtual Accounts
    • Get Available Banks
    • Setup Preferred Bank
    • Generate Account
    • Virtual Account List
    • Account Transactions
    • Virtual Account Webhook
      • Notifications history
  • MAKE PAYMENTS
    • Airtime Purchase
    • Send Money
      • Verify Account Number
      • Make Transfer
    • Data Purchase
      • Data Plans
      • Data Bundle
    • Electricity
      • Electricity Billers
      • Verify Meter Number
      • Vend Electricity
    • Cable TV
      • Cable TV List
      • Verify IUC
      • Vend CableTv
    • Bank List
    • Payment Status
  • CUSTOMERS
    • Create Customer
  • VIRTUAL CARDS
    • Create Card Account
    • Cards Issuance
    • Card Funding
    • Card Transactions
    • Get all Cards
    • Cards Details
    • Cards Pan
    • Freeze and Unfreeze Card
  • USD Account
    • Create USD Account
  • IDENTITY
    • BVN Check
    • NIN Checks
  • SUB-ACCOUNTS
    • Create a Sub-Account
    • Attach Bank to a Sub-Account
    • Attach Payout Account
    • Get All Sub-Accounts
    • Sub-Accounts History
    • Sub-Accounts Wallet
  • Miscellaneous
    • Create Wallet
    • Universal Blacklist
  • Contact
    • Contact Us
Powered by GitBook
On this page

Was this helpful?

  1. SUB-ACCOUNTS

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

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"
}'
const axios = require('axios');
let data = JSON.stringify({
  "phoneno": "09000000001",
  "firstname": "Olaope",
  "lastname": "James",
  "email": "johndoe@exaple.com"
});

let config = {
  method: 'post',
  url: 'https://api.oneappgo.com/v1/business/create-subaccount',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': 'Bearer SECRET_KEY', 
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.oneappgo.com/v1/business/create-subaccount',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "phoneno":"09000000001",
    "firstname":"Olaope",
    "lastname":"James",
    "email":"johndoe@exaple.com"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer SECRET_KEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Sample Response

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

PreviousNIN ChecksNextAttach Bank to a Sub-Account

Last updated 2 months ago

Was this helpful?