One document with lines
saga_documentRetrieves a single purchase or sales document, including header, lines, generated ledger entries, and linked payments, so you can inspect its full accounting impact.
Instructions
One purchase or sales document: header, lines, the ledger entries it produced and the payments linked to it.
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": {
"kind": "<kind>",
"id": "<id>"
},
"name": "saga_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id (ID_INTRARE / ID_IESIRE) from saga_documents or saga_open_invoices. | |
| firm | No | Firm code (folder name such as "0001"). Optional when only one firm is configured. | |
| kind | Yes | ||
| currency | No | true = a foreign-currency document; when omitted, both kinds are searched. |