get_gl_journal_entry
One entry + lines, plus the subledger rows it produced/touched (Gap B detail
surfacing): its gl_vat_posting rows, its gl_vat_zero_posting turnover-only
declarations (zero-rated/exempt output — R2-13b: these have no VAT line to pair, so
without them a correctly coded 0 % line is indistinguishable from an untagged one)
and referenced gl_open_item rows. A declared base line also carries the resolved
code on lines[].vat_code. Drafts carry empty lists. documents carries the
accounting documents explicitly attached to the entry (POST …/documents) — the
evidence for a hand-booked entry; a pipeline-created entry carries its document
through source_ref_* instead and lists nothing here. Member read, like the rest of
the detail.
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>",
"entry_id": "<entry_id>"
},
"name": "get_gl_journal_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_id | Yes | ||
| company_id | Yes |