VAT code card
banana_vat_cardRetrieves the account card for a VAT code or multiple VAT codes, with optional filters like period and document. Returns JSON by default for machine processing.
Instructions
Return the account card for a VAT code (or pipe-separated codes, e.g. "V0|V80"). Defaults to JSON.
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". | |
| columns | No | Comma-separated XML names of columns to return, e.g. "Account,Description,Balance". | |
| vat_code | Yes | VAT code, e.g. "V80" or "V0|V25|V80". | |
| navigation | No | When true, include the HTML page navigation (only relevant for html format). |