Chart of accounts
How does each ledger model an account? The one object all three broadly agree on, and still the one that most often breaks the profit and loss. They differ on hierarchy, on whether the account number exists at all, and on how finely the type is stated.
Endpoints
Xero
GET /Accounts
Full records, no paging on this endpoint
QBO
SELECT * FROM Account
Query endpoint, 1,000 rows per page
NetSuite
SuiteQL: FROM account
REST /record/v1/account returns ids only
The same concept in three vocabularies
Read across a row. An empty cell means the concept has nowhere to live in that system. Design around it; don't paper over it.
- Native
- — A field or object exists for it
- Partial
- — Exists with a caveat that changes what you can build
- Derived
- — Not stored — you compute it
- Absent
- — Nothing in the API
What differs, and what to do about it
Each difference comes with how to handle it.
Xero has no account hierarchy
XeroXero's chart is a flat list: no parent field, no grouping object. The grouping in Xero's own reports comes from account type. QBO nests five levels deep in FullyQualifiedName; NetSuite nests arbitrarily.
Do — Render a flat list gracefully, with type as the only grouping. No chart-of-accounts view may assume parents exist.
Account numbers are not identifiers
Xero · QBO · NetSuiteThey are editable in all three, optional on Xero bank accounts (Xero enforces Code as unique and requires it elsewhere), and in QBO absent entirely unless the company turned account numbers on. Unique is not the same as stable. A mapping table keyed on account code will silently break when a bookkeeper renumbers the chart.
Do — Key every mapping on the source id. Display the number, sort by it, let users search it — but never join on it.
Type granularity does not survive a lowest-common-denominator mapping
Xero · QBO · NetSuiteAll three separate receivables from other current assets at the type level — QBO AccountType 'Accounts Receivable' vs 'Other Current Asset', NetSuite AcctRec vs OthCurrAsset. QBO's AccountSubType (~80 values) gives the finest granularity of the three, below that. Xero's Type is coarser but carries SystemAccount, which QBO lacks. Collapsing all three onto one enum loses different information in each direction.
Do — Map to the coarsest common type for statement grouping, and keep the source type verbatim in a second field for tooltips, mapping UIs and support questions.
Normal balance is not a field anywhere
Xero · QBO · NetSuiteNone of the three tells you whether an account is debit-normal. All three expect you to derive it from the class — asset and expense are debit-normal; liability, equity and revenue are credit-normal — and then invert it for contra accounts: accumulated depreciation, allowance for doubtful accounts, treasury stock, sales returns and discounts. Class alone gets every one of those wrong.
Do — Derive once, at normalization, from class plus a contra flag taken from the source subtype (QBO AccumulatedDepreciation, DiscountsRefundsGiven…) or your own mapping — never class alone — and store it. Deriving it at render time in a component is how a revenue figure ends up with the wrong sign.
The type the components consume
What this changes in the interface
Every difference above that reaches the screen, and what the component does about it.
- Xero charts are flat; QBO and NetSuite nest
- ChartOfAccounts renders a tree when depth exists and a grouped list when it does not. The indent affordance is conditional, not decorative.
- Account numbers may be absent
- The number column collapses rather than showing a blank gutter. Sorting falls back to name, and the sort control says so.
- System accounts must not be posting targets
- AccountPicker filters them out of write contexts and shows them, marked, in read contexts. The same component, two capability-driven modes.
Where the accounting is explained
What consumes this payload
The components read the normalized object above. Here are the surfaces it feeds, the glossary entries for its concepts, and the document that explains the accounting.
- ChartOfAccountsHierarchy, statement mapping, unsupported-account flags.
- AccountPickerShows the normal balance. Blocks non-postable accounts.
- AccountCardBank account with available vs. current.
- Chart of accountsThe account structure
- AccountA GL account in the chart of accounts. Always qualify when a bank account is meant.
- Normal balanceThe side that increases an account — debit for assets and expenses, credit for liabilities, equity and revenue, inverted for a contra account
- Contra accountAn account with the opposite normal balance to its type, presented as a deduction from its parent — accumulated depreciation against PP&E, the allowance against AR
- The accounting modelEvery Lopifi component sits on one data model, and if the model is wrong no amount of design saves the product. This page defines it, from the journal line up to basis and materiality.
Compared acrossXero docsQuickBooks Online docsNetSuite docs