get_sales_document
Retrieve a full sales document such as an invoice or quotation, including recipient, line items, prices, totals, tax breakdown, and version. Use it to inspect a document by type and ID.
Instructions
Read one sales document in full: an invoice, quotation or their kin.
One API call. Returns the recipient, the line items with their unit
prices, the totals, the tax breakdown and the version.
document_type has to match the id. A mismatch answers "not found",
exactly as a wrong id does.
A draft reads in full with voucherStatus draft: nothing has been
rendered yet, and download_document refuses it.
For a bookkeeping voucher use get_voucher.
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": {
"document_type": "<document_type>",
"document_id": "<document_id>"
},
"name": "get_sales_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The document's Lexware id, as returned by search_vouchers. | |
| document_type | Yes | Which kind of document this is. Take it from the `voucherType` search_vouchers reported, where a sales invoice is 'invoice'. Either spelling works, 'creditnote' or 'credit-note'. |