Overview
The Chart of Accounts is the complete list of ledger accounts for a business, organized in a hierarchical tree structure. It serves as the foundation for all financial reporting and is automatically created when a business is onboarded.Hierarchy Structure
Accounts are organized in a parent-child hierarchy:Hierarchy Fields
| Field | Description |
|---|---|
hierarchy_level | Depth in the tree (0 = root account) |
parent_account_code | Code of parent account (null for roots) |
has_children | Boolean indicating sub-accounts exist |
sub_accounts | Array of nested child accounts |
Account Organization
The standard chart of accounts follows this top-level structure:Balance Sheet Accounts
Assets - What the business ownsLiabilities - What the business owesEquity - Owner’s stake
Income Statement Accounts
Revenue - Income earnedExpenses - Costs incurred
Retrieving the Chart of Accounts
Two endpoints are available:Flat List (Paginated)
Use List Chart of Accounts for:- Filtering by account type
- Searching by name or code
- Paginated results
- Period-specific balances
Hierarchical Tree
Use Get Chart of Accounts Hierarchy for:- Complete tree structure
- Nested sub-accounts
- Visual hierarchy representation
- Account counts
Response Structure
Hierarchy Response
The hierarchy endpoint returns accounts as a nested tree:Balance Calculations
Account balances follow double-entry bookkeeping rules:- Debit Accounts
- Credit Accounts
Assets & Expenses increase with debitsPositive balance = Normal (what you own/spent)
Parent Account Balances
Parent accounts aggregate balances from all descendants:Common Use Cases
Display account tree in UI
Display account tree in UI
Use the hierarchy endpoint to fetch the complete tree, then render recursively:
Filter accounts by type
Filter accounts by type
Use the list endpoint with
account_type parameter:Get period-specific balances
Get period-specific balances
Use the list endpoint with period filters: