Skip to main content
GET
/
service
/
general-ledger
/
accounts
curl -X GET "https://kube.acho.io/service/general-ledger/accounts?accounting_period_id=a3UM4R8nYh33A6hgda" \
  -H "Authorization: jwt YOUR_TOKEN"
{
  "data": [
    {
      "account_id": "11100",
      "account_number": 11100,
      "account_name": "Cash - Operating",
      "account_type": "Asset",
      "normal_balance": "debit",
      "currency": "USD",
      "balance": 50000.00,
      "opening_balance": 45000.00,
      "is_summary": false,
      "is_inactive": false
    },
    {
      "account_id": "12100",
      "account_number": 12100,
      "account_name": "Accounts Receivable",
      "account_type": "Asset",
      "normal_balance": "debit",
      "currency": "USD",
      "balance": 25000.00,
      "opening_balance": 20000.00,
      "is_summary": false,
      "is_inactive": false
    }
  ],
  "pagination": {
    "total": 50,
    "limit": 20,
    "offset": 0,
    "has_more": true
  }
}

Request

Retrieve a list of GL accounts with optional filtering by accounting period.

Headers

Authorization
string
required
JWT authentication token. Format: jwt YOUR_TOKEN

Query Parameters

accounting_period_id
string
Filter accounts by accounting period to get period-specific balances
account_type
string
Filter by account type: Asset, Liability, Equity, Revenue, Expense
is_inactive
boolean
Filter by active status. Set to true to include inactive accounts
limit
number
default:"20"
Maximum number of records to return (max 100)
offset
number
default:"0"
Number of records to skip for pagination
curl -X GET "https://kube.acho.io/service/general-ledger/accounts?accounting_period_id=a3UM4R8nYh33A6hgda" \
  -H "Authorization: jwt YOUR_TOKEN"
{
  "data": [
    {
      "account_id": "11100",
      "account_number": 11100,
      "account_name": "Cash - Operating",
      "account_type": "Asset",
      "normal_balance": "debit",
      "currency": "USD",
      "balance": 50000.00,
      "opening_balance": 45000.00,
      "is_summary": false,
      "is_inactive": false
    },
    {
      "account_id": "12100",
      "account_number": 12100,
      "account_name": "Accounts Receivable",
      "account_type": "Asset",
      "normal_balance": "debit",
      "currency": "USD",
      "balance": 25000.00,
      "opening_balance": 20000.00,
      "is_summary": false,
      "is_inactive": false
    }
  ],
  "pagination": {
    "total": 50,
    "limit": 20,
    "offset": 0,
    "has_more": true
  }
}