Download document PDF

The PDF of a finalised invoice or quote.

MCP tool lexware_office_read → download_document_pdf

read

Returns a download link for the PDF Lexware Office generated when the document was finalised. A draft has no PDF; use get_document to read it instead. For an e-invoice in XRechnung format the document is an XML file, and the link points to that file.

Parameters

Parameters: download_document_pdf
NameTypeDescription
document_id string required string Document ID from list_documents or create_invoice.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lexware_office_read",
    "arguments": {
      "operation": "download_document_pdf",
      "arguments": {
        "document_id": "document_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "document_id": "d_9c31be",
    "number": "RE1031",
    "file_name": "RE1031.pdf",
    "download_url": "https://files.example.com/f_3b90aa/RE1031.pdf"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.