invoice_parse
Parse ZUGFeRD 2.x and XRechnung 3.x invoices into structured JSON. Accepts raw XML, base64 XML, or base64 PDF.
Instructions
Extract structured data from a ZUGFeRD 2.x or XRechnung 3.x invoice. Accepts raw XML (CII or UBL), base64-encoded XML, or base64-encoded PDF (ZUGFeRD hybrid — the XML is extracted from the PDF/A-3 attachment). Returns a structured JSON object matching the invoice data model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_base64 | No | Base64-encoded PDF (ZUGFeRD hybrid). | |
| xml_base64 | No | Base64-encoded XML. | |
| xml_content | No | Raw XML string. | |
| include_raw_xml | No |