Skip to main content

Queries overview

📄️generalLedgerBalancesByPeriod

Superseded by generalLedgerBalancesByPeriodV2. This version pages on the document id, which forces the backend to re-group the company's whole balance set on every page, and it omits ledgerId from the grouping, so parallel ledgers are silently collapsed into a single row with an arbitrary winner. When switching: V2 paginates on lastGroupKey and returns a page object rather than a list; it returns one row per (ledgerId, branchId, accountId, subaccountId) group, so expect more rows on a multi-ledger company and key rows on the whole group rather than on ledgerId alone; and pageSize counts groups rather than documents, defaulting to 1000 rather than 5000, so send an explicit pageSize if you rely on the default.