Upload Voucher File
lexware_upload_voucher_fileAttach a file to a bookkeeping voucher by supplying a server file path or base64-encoded content; specify file name and MIME type as needed.
Instructions
Upload a file attachment to a bookkeeping voucher. Provide either filePath (absolute path on the MCP server host) or contentBase64 (base64-encoded content) — not both. When using filePath, fileName is optional (derived from the file name) and contentType is auto-detected for common image extensions. When using contentBase64, fileName is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Voucher UUID | |
| fileName | No | File name for the upload. Required when using contentBase64; derived from filePath when omitted. | |
| filePath | No | Absolute path to the file on the MCP server host. Must be readable by the MCP server process. | |
| contentType | No | MIME type, defaults to application/pdf | |
| contentBase64 | No | Base64-encoded file content. Required when filePath is not provided. |