Reports
Should you build statements on the reports endpoints? No — build them on ledger data, then use the reports endpoints to prove you got the same answer. Report output is presentation, with no stable row identity to drill from.
Endpoints
Xero
GET /Reports/{ProfitAndLoss,BalanceSheet,TrialBalance,AgedReceivablesByContact,…}
Row-typed output
QBO
GET /reports/{ProfitAndLoss,BalanceSheet,GeneralLedger,TrialBalance,…}
Nested Rows and Columns
NetSuite
Saved searches, SuiteQL, SuiteAnalytics
You define the query
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.
Report rows are presentation, not data
Xero · QBO · NetSuiteHeader, section and summary rows are interleaved with data rows, nesting depth carries meaning, and identity is inconsistent. Parsing is possible; drilling from a parsed row back to the transactions behind it generally is not.
Do — Build interactive statements from ledger data. Use the report endpoint on a schedule, assert equality, and surface a variance when it appears.
Xero's aged reports are per contact
XeroAgedReceivablesByContact takes one contact. Building a full aging report means one call per customer, against a 60-call-per-minute limit — a hundred customers is close to two full minutes of the organization's budget, and a tenth of a Starter-tier app's 1,000-call day.
Do — Compute aging ourselves from invoices plus unapplied cash, and tie to the ledger's own report for a sample of contacts rather than all of them.
What this changes in the interface
Every difference above that reaches the screen, and what the component does about it.
- Our number and their number can differ
- Statement components carry a tie-out line: the ledger's total, ours, and the variance. Zero variance is shown, not hidden — its presence is the assurance.
- Report rows cannot be drilled
- Drill-down is offered from ledger-derived statements only. Where a figure came from a report endpoint, the row is not clickable and says why.
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.
- ProfitAndLossP&L with period comparison and variance.
- BalanceSheetAssets / liabilities / equity, with the balance check.
- CashFlowStatementOperating / investing / financing.
- TrialBalanceAll accounts with the debit=credit proof.
- P&LPerformance over a period
- Balance sheetAssets, liabilities and equity at a point in time, proving the accounting equation
- StatementP&L, balance sheet, or cash flow
- ComparativeA prior period column
- Statement semanticsThe P&L, balance sheet and cash flow statement are three views of one set of facts, and they tie to each other. This page covers how each one is structured and what the statement components enforce as a result.
Compared acrossXero docsQuickBooks Online docsNetSuite docs