Accounting report
banana_accounting_reportRetrieve accounting reports (balance sheet/P&L) for a document, with filters for period, columns, and JSON/HTML output.
Instructions
Return the accounting report (enhanced balance sheet / P&L) for a document. Defaults to JSON. Supports view, columns, navigation, period and subdivision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Accounting document name as opened in Banana (e.g. "accounting.ac2"). Append "_p1", "_p2" for previous years. Defaults to BANANA_DEFAULT_DOC if set. | |
| view | No | XML name of the view to return. | |
| format | No | Response format. Defaults to "json" for machine-readable output. | |
| period | No | Period filter: an abbreviation like "Q1"/"3M"/"1Y" or a date range "2024-01-01/2024-03-31". | |
| columns | No | Comma-separated XML names of columns to return, e.g. "Account,Description,Balance". | |
| navigation | No | When true, include the HTML page navigation (only relevant for html format). | |
| subdivision | No | Period subdivision: M=monthly, Q=quarterly, S=semesterly, Y=yearly. |