Chart of Accounts
Manage your General Ledger accounts. The chart of accounts is the foundation of your financial reporting.
List Accounts
GET/api/v1/accounts
| Parameter | Type | Description |
|---|---|---|
accountType | string | Filter: asset, liability, equity, revenue, expense |
isActive | boolean | Filter active/inactive accounts |
search | string | Search by name or code |
Response
{
"data": [
{
"_id": "65f1a2b3c4d5e6f7a8b9c0d1",
"accountCode": "1110",
"accountName": "Cash",
"accountType": "asset",
"accountSubType": "Cash & Cash Equivalents",
"currentBalance": 45230.50,
"isActive": true,
"isSystemAccount": true
},
{
"_id": "65f1a2b3c4d5e6f7a8b9c0d2",
"accountCode": "4100",
"accountName": "Sales Revenue",
"accountType": "revenue",
"accountSubType": "Sales Revenue",
"currentBalance": 128500.00,
"isActive": true
}
],
"total": 32
}Get Account Ledger
GET/api/v1/general-ledger/account/:accountId
All ledger entries for one account, with a running balance. Needs the general_ledger:read scope.
| Parameter | Type | Description |
|---|---|---|
startDate | date | Filter from date |
endDate | date | Filter to date |
Create Account
POST/api/v1/accounts
| Parameter | Type | Description |
|---|---|---|
accountCoderequired | string | Unique code (e.g., 1110, 4200) |
accountNamerequired | string | Account name |
accountTyperequired | string | asset, liability, equity, revenue, expense |
accountSubTyperequired | string | Sub-classification (see valid subtypes) |
parentAccountId | string | Parent account ID for hierarchical charts |
openingBalance | number | Opening balance (auto-posts to GL) |
Account Code Conventions: 1xxx = Assets, 2xxx = Liabilities, 3xxx = Equity, 4xxx = Revenue, 5xxx = Expenses
Trial Balance
GET/api/v1/reports/trial-balance
Get the trial balance — all accounts with their debit/credit totals. Should always be balanced (debits = credits).
| Parameter | Type | Description |
|---|---|---|
asOfDate | date | Trial balance as of this date (default: today) |