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

Sub-Accounts History

This endpoint helps get the history of a sub-account created under your account.

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

Headers

Name
Type
Description

authorization*

String

SECRET_KEY

Request Body

Name
Type
Description

trackingid

string

customer trancking id store during creation or from get subaccount endpoint

Take a look at how you might do this:

curl --location 'https://api.oneappgo.com/v1/business/subaccount-history' \
--header 'Authorization: Bearer SECRET_KEY' \
const axios = require('axios');

let config = {
  method: 'post',
  url: 'https://api.oneappgo.com/v1/business/subaccount-history',
  headers: { 
    'Authorization': 'Bearer SECRET_KEY',
  }
};

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/subaccount-history',
  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_HTTPHEADER => array(
    'Authorization: Bearer SECRET_KEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Sample Response

{
  "status": true,
  "message": "Transction history found.",
  "data": [
    {
      "prevbal": "0.00",
      "newbal": "250002.00",
      "descriptions": "Fund credit to Olajide Olatunji subaccount",
      "type": "credit",
      "reference": "BW1S405671B8165007",
      "paidtru": "1app",
      "status": "1",
      "trackingid": "bi158338",
      "date_created": "16, January 2024 11:39 am",
      "amount": "250002.00",
      "paystatus": "Completed"
    },
    {
      "prevbal": "250002.00",
      "newbal": "350002.00",
      "descriptions": "Fund credit to Olajide Olatunji subaccount",
      "type": "credit",
      "reference": "BW797S10104509B346",
      "paidtru": "1app",
      "status": "1",
      "trackingid": "bi158338",
      "date_created": "16, January 2024 10:57 am",
      "amount": "10000.00",
      "paystatus": "Completed"
    }
  ]
}

PreviousGet All Sub-AccountsNextSub-Accounts Wallet

Last updated 2 months ago

Was this helpful?