Evaluate report session
evaluate_report_sessionEvaluate a template (source/templateid) or an insight view (view: payables, receivables, profit-and-loss, balance-sheet, cash-flow, salestax-summary, salestax-activity, … — see the view param for the full list) against a period from the report session's cached dataset — identical answers to /report/evaluate, tens of milliseconds instead of a full pipeline run. For interactive use: period slides, template/view switches, constant tweaks. Live books only; frozen periods evaluate via /report/evaluate with snapshotid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asAt | No | For as-at views (account-totals-as-at, balance-sheet, clearing-residual): the position date (YYYY-MM-DD), inclusive. Synonym for periodEnd. | |
| mode | No | trial-balance: "cumulative" (default — closing balances as at periodEnd, opening/retained included, ties to the balance sheet) or "period"/"range" (period-movement only within [periodStart..periodEnd], for error-checking a window). | |
| view | No | An insight view instead of a template: account-totals, account-totals-as-at, trial-balance, profit-and-loss, balance-sheet, cash-flow, receivables, payables, customer-totals, supplier-totals, product-totals, salestax-summary, salestax-activity, income-tax-summary, inventory, clearing-residual. Provide this OR a template, not both. | |
| basis | No | income-tax-summary: "profit" (default) or "turnover". | |
| source | No | A statutory template source, e.g. "locale:za/vat201". Provide this, templateid, or view. | |
| compare | No | profit-and-loss: true = two columns, the equal-length prior period and the current one. | |
| filters | No | Row filters: [{"property": "tags"|"customer"|"supplier"|"product"|"account", "value": ...}]; tags value "none" means untagged. | |
| journal | No | account-totals and entity totals: restrict to one journal (1 income, 2 expenses, 3 assets, 4 liabilities, 5 equity). | |
| monthly | No | Views with columns (profit-and-loss, cash-flow): true = one column per calendar month in the period. | |
| version | No | ||
| constants | No | ||
| dimension | No | cash-flow: "category" (default — counterpart categories) or "baseaccount" (per bank/cash account). | |
| periodEnd | No | Inclusive period end (YYYY-MM-DD). Required. | |
| templateid | No | ||
| periodStart | No |