Books
Get ledger analytics
Returns aggregated ledger analytics (trends, category breakdowns) for the selected range, suitable for charting. Amounts are integer cents.
get/analytics
Request
- Base URLhttps://api.app.lastaccountingcompany.com/portal
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
customer_idstring
Target company. Optional — API keys are pinned to one company, and single-company sessions default to it.
rangestring
Period selector: YYYY-MM, YYYY-Qn, YYYY, all, this_month, or last_6_months.
Response
Analytics payload.
Analytics Ledger Data required
Aggregated ledger analytics for charting. Interiors are returned as-is; amounts are integer cents.
Changes
No recorded changes to this operation across all 1 revision of this API.