Virtual Account Services
  1. Accounting
Virtual Account Services
  • Introduction
  • Terminologies
  • Webhooks
  • Authentication
  • Account
    • Create Account
      POST
    • Rename Account
      POST
    • Balance Inquiry
      GET
    • Create Bulk Accounts
      POST
    • List Accounts
      GET
  • Transaction
    • Credit Account
      POST
    • Debit Account
      POST
    • Credit Account [Agency Banking]
      POST
    • Debit Account [Agency Banking]
      POST
    • Transaction Query
      GET
    • Transaction Details
      GET
    • Transaction History
      GET
  • Transfer
    • Get Institutions
      GET
    • Name Inquiry
      POST
    • Interbank Transfer
      POST
    • Interbank Transfer [Sync]
      POST
    • Transfer Query
      GET
    • Transfer Enquiry
      GET
    • Virtual Account Intrabank Transfer
      POST
    • Core Banking Intrabank Transfer
      POST
    • Collection Accounts Intrabank Transfer
      POST
  • Invoice
    • Create Invoice
    • Get Invoice Detail
    • List Merchant Invoices
  • Refunds
    • Initiate Refund
    • Get Refund Status
    • Get Refunds
  • Notifications
    • Notification
    • Send Notification
  • Merchant
    • Account
      • Get Account
      • Activate Sub Ledger For Merchant
      • Get SubLedger Callback Urls
      • Set SubLedger Callback Urls
      • Get Collection Accounts
    • Transfer
      • Get Transfer History
      • Get Subledger transfers
      • Get Transfer Details
      • Name Inquiry
    • Refund
      • Refund Details
  • Admin
    • Accounting
      • Get GL Accounts
        GET
      • Get Classification Codes
        GET
    • Dashboard
      • Dashboard Summary
      • Dashboard Transactions
      • Dashboard Transaction Details
    • Group Codes
      • Get Group Codes
      • Set Collection Account
      • Create Group Code
    • Reporting
      • Get Report Types
      • Get Report Parameters
      • Create Report
      • Get Reports
      • Get Reports Details
  1. Accounting

Get GL Accounts

GET
/admin/accounting/glaccounts
This API retrieves detailed information about all General Ledger (GL) accounts, providing essential data such as account identifiers, balances, and associated metadata. It enables seamless financial tracking, reconciliation, and reporting for organizations managing multiple GL accounts.

Response Body#

The response is a JSON object containing the following fields:
Field NameTypeDescription
optionsArrayA list of GL account options.
options[].idIntegerThe unique identifier for the GL account.
options[].nameStringThe name of the GL account.
options[].glCodeStringThe general ledger code associated with the account.
options[].disabledBooleanIndicates whether the GL account is disabled (true if disabled, false otherwise).
options[].manualEntriesAllowedBooleanSpecifies if manual entries are allowed for the account.
options[].typeObjectContains details about the type of GL account.
options[].type.idIntegerThe unique identifier for the GL account type.
options[].type.codeStringA system-defined code representing the GL account type.
options[].type.valueStringThe category of the GL account (e.g., ASSET, LIABILITY).
options[].usageObjectProvides information about how the GL account is used.
options[].usage.idIntegerThe unique identifier for the account usage type.
options[].usage.codeStringA system-defined code representing the GL account usage.
options[].usage.valueStringThe type of usage assigned to the GL account (e.g., HEADER, DETAIL).
options[].nameDecoratedStringA formatted version of the GL account name for display purposes.
options[].tagIdObjectContains metadata associated with the GL account.
options[].tagId.idIntegerThe unique identifier for the tag assigned to the GL account.
options[].parentIdIntegerThe unique identifier of the parent GL account (if applicable).

Request

None

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/admin/accounting/glaccounts'

Responses

🟢200Get GL Accounts
application/json
Body

Example
{
    "options": [
        {
            "id": 1,
            "name": "CURRENT ASSETS",
            "glCode": "101000",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 2,
                "code": "accountUsage.header",
                "value": "HEADER"
            },
            "nameDecorated": "CURRENT ASSETS",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 2,
            "name": "CASH ACCOUNT",
            "parentId": 1,
            "glCode": "101100",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 2,
                "code": "accountUsage.header",
                "value": "HEADER"
            },
            "nameDecorated": "....CASH ACCOUNT",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 3,
            "name": "CASH: NIGERIA NOTES & COINS",
            "parentId": 2,
            "glCode": "101101",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 1,
                "code": "accountUsage.detail",
                "value": "DETAIL"
            },
            "nameDecorated": "........CASH: NIGERIA NOTES & COINS",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 4,
            "name": "TELLER_1",
            "parentId": 2,
            "glCode": "101102",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 1,
                "code": "accountUsage.detail",
                "value": "DETAIL"
            },
            "nameDecorated": "........TELLER_1",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 5,
            "name": "TELLER_2",
            "parentId": 2,
            "glCode": "101103",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 1,
                "code": "accountUsage.detail",
                "value": "DETAIL"
            },
            "nameDecorated": "........TELLER_2",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 6,
            "name": "TELLER_3",
            "parentId": 2,
            "glCode": "101104",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 1,
                "code": "accountUsage.detail",
                "value": "DETAIL"
            },
            "nameDecorated": "........TELLER_3",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 7,
            "name": "TELLER_4",
            "parentId": 2,
            "glCode": "101105",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 1,
                "code": "accountUsage.detail",
                "value": "DETAIL"
            },
            "nameDecorated": "........TELLER_4",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 8,
            "name": "BANK BALANCES",
            "parentId": 1,
            "glCode": "101200",
            "disabled": false,
            "manualEntriesAllowed": true,
            "type": {
                "id": 1,
                "code": "accountType.asset",
                "value": "ASSET"
            },
            "usage": {
                "id": 2,
                "code": "accountUsage.header",
                "value": "HEADER"
            },
            "nameDecorated": "....BANK BALANCES",
            "tagId": {
                "id": 0
            }
        },
        {
            "id": 9,
            "name": "First Bank of Nigeria",
            "parentId": 8,
            "glCode": "101201",
            "disabled
🟢200Get GL Accounts [ASSET]
🟢200Get GL Account [LIABILITY]
Modified at 2025-03-02 14:30:59
Previous
Refund Details
Next
Get Classification Codes
Built with