List segments
banana_segmentsReturn the list of segments from a Banana Accounting file as a JSON array of objects containing each segment's id and description.
Instructions
Return the list of segments as a JSON array of {id, descr} objects.
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. |