General ledger (hovedbok)
reai_general_ledgerRead a period's general ledger, showing each account's opening balance, postings, and closing balance. Filter by account range, date, amount, or other criteria to answer spending and balance questions.
Instructions
Read the general ledger for a period: every account with its opening balance, postings and closing balance. This is the report to use for questions like 'what did we spend on X' or 'what is the balance of account 1920'. Narrow with accountNumber or an account range, since a full-year ledger for an active tenant can be large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | Inclusive end date. Defaults to today. | |
| vatCode | No | Filter by VAT code. | |
| amountTo | No | Maximum posting amount. | |
| tenantId | No | ReAI tenant (company) id. Omit to use the active tenant — set one with reai_use_tenant, or list what this token can reach with reai_whoami. | |
| accountTo | No | End of an account-number range. | |
| projectId | No | Filter by project. | |
| startDate | No | Inclusive start date. Defaults to 1 January of the current year. | |
| amountFrom | No | Minimum posting amount. | |
| customerId | No | Filter by customer. | |
| supplierId | No | Filter by supplier. | |
| accountFrom | No | Start of an account-number range. | |
| accountNumber | No | Restrict to a single account. | |
| voucherNumber | No | Filter by voucher number. |