Account card
banana_account_cardReturn the ledger of transactions for an account by ID. Supports filtering by period, custom columns, and JSON or HTML format.
Instructions
Return the account card (ledger of transactions) for an account. Defaults to JSON. Supports view, columns, navigation, period and filter.
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. | |
| filter | No | JavaScript expression to filter transactions, e.g. filter=row.value("Date")==="2024-01-15". Available: row, rowNr, table. | |
| 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". | |
| account | Yes | Account id, e.g. "1000". | |
| 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). |