Get the monthly, custom-range, or all-time general-ledger view
Per-account opening, debit, credit, and closing over posted entries only. Monthly periods on/after an active fiscal opening snapshot rebase onto it (snapshot base + later movements), exactly like the statements reads. All time uses the snapshot as its opening and sums every movement from that boundary, or starts from zero when there is no snapshot, so its closing matches the latest monthly view. Monthly periods clamp to [first..latest posted]. Kpis are served when the chart is known (FI): cash_cents is the closing cash balance, while revenue_cents and net_income_cents cover the selected movement range (one month or the all-time boundary through the latest period). books_state explains legitimately partial balances (mirror tenants, running history imports).
Authorizations
Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....
Query Parameters
Defaults to monthly. range requires period and from_period; all_time accepts neither.
monthly, range, all_time Month for monthly scope or inclusive through-month for range scope.
^[0-9]{4}-(0[1-9]|1[0-2])$Inclusive first month for range scope.
^[0-9]{4}-(0[1-9]|1[0-2])$Response
The GL view. scope echoes the served range. In all_time, [movement_period_from, period] is the inclusive accounting-period range behind debit and credit: movement_period_from is the active opening-snapshot boundary, or period_bounds.first when there is no snapshot. Range responses echo their effective start. Monthly responses omit movement_period_from.
The response is of type object.