list_gl_open_items
One page of the AR/AP subledger (member read).
direction filters server-side (ZCT-577); omit it for both.
commercial_document_id narrows to one document's item (D09-G13); not with as_of.
as_of (ZCT-577) reconstructs each item's open amount from posted journal lines
dated on or before that date, instead of reading today's cached amount. Items are
considered regardless of their current status (one settled since that date was
open on it), so status is refused alongside it rather than silently ignored.
original_amount and status on each row remain the item's own, current facts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>"
},
"name": "list_gl_open_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| limit | No | ||
| offset | No | ||
| status | No | ||
| direction | No | ||
| company_id | Yes | ||
| counterparty_id | No | ||
| commercial_document_id | No |