Read a received e-invoice into JSON
parse_einvoiceRead an incoming EU e-invoice into one JSON shape: seller, buyer, dates, references, totals, VAT breakdown, payment/IBAN, lines and attachments. Accepts UBL 2.1 Invoice/CreditNote or UN/CEFACT CII XML (XRechnung, Peppol BIS 3, Factur-X XML) in xml, or a ZUGFeRD/Factur-X PDF as base64 in pdf_base64. Use when asked to read, extract or book a received e-invoice. Values are returned as written in the invoice; this does NOT validate it (use validate_einvoice for that).
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": "parse_einvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | Invoice XML as text (UBL or CII). Give either xml or pdf_base64. | |
| pdf_base64 | No | Base64 of a Factur-X/ZUGFeRD PDF with embedded XML. Give either xml or pdf_base64. |