Read an e-invoice (XRechnung, ZUGFeRD, Factur-X, Peppol, FatturaPA)
einvoice_viewRead an e-invoice (XRechnung, ZUGFeRD, Factur-X, Peppol, FatturaPA). Opens an e-invoice XML, a PDF/A-3 with the invoice attached (ZUGFeRD, Factur-X, XRechnung) or a .p7m and returns every field, the lines, and all totals recomputed from the lines and VAT breakdown, with quick checks (required fields, IBAN and VAT-ID check digits). Same engine as the e-invoice viewer page. Use when: An agent has an e-invoice file and needs its data as JSON or wants to know whether its sums add up. Not for: A full EN 16931 / XRechnung Schematron validation (use doc_invoice_audit for a pay/hold verdict); scanned paper invoices. File types: xml, pdf, p7m. Max 20 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "einvoice_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options, if any (see the tool description). | |
| file_url | No | Public https URL of the file (preferred). | |
| filename | No | File name with its extension, e.g. part.step. | |
| file_base64 | No | The file as base64, for small files without a URL (give filename too). |