Search the docs

Pages and API endpoints

Developer dashboard
Docs/Accounts

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
ParameterTypeDescription
accountTypestringFilter: asset, liability, equity, revenue, expense
isActivebooleanFilter active/inactive accounts
searchstringSearch 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.

ParameterTypeDescription
startDatedateFilter from date
endDatedateFilter to date

Create Account

POST/api/v1/accounts
ParameterTypeDescription
accountCoderequiredstringUnique code (e.g., 1110, 4200)
accountNamerequiredstringAccount name
accountTyperequiredstringasset, liability, equity, revenue, expense
accountSubTyperequiredstringSub-classification (see valid subtypes)
parentAccountIdstringParent account ID for hierarchical charts
openingBalancenumberOpening 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).

ParameterTypeDescription
asOfDatedateTrial balance as of this date (default: today)