invoice_extract
Extract invoice data from PDFs, photos, or XRechnung/ZUGFeRD XML into structured JSON with line items, VAT IDs, totals, and IBAN, validated against EU VIES.
Instructions
Invoice Data Extraction (EU e-invoice) — Invoice data extraction for accounting agents: PDF, photo or XRechnung / ZUGFeRD / Factur-X XML to JSON (number, dates, seller and buyer with VAT ID, line items, tax per rate, totals, IBAN, payment terms). E-invoices are read exactly from the embedded XML, without AI; plain PDFs and photos by Claude Haiku 5.5. Every result is checked: totals add up, seller VAT ID in EU VIES, IBAN and BIC. Says whether the file is a real EN 16931 e-invoice. Up to 15 MB. Cost: $0.02 USDC per call. Latency p99: 8000ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | XRechnung/ZUGFeRD XML text | |
| pdf_url | No | PDF URL; or send one of the other inputs | |
| xml_url | No | XML URL | |
| validate | No | Check VAT ID and IBAN | |
| image_url | No | Photo or scan URL | |
| pdf_base64 | No | PDF as base64 | |
| image_base64 | No | Photo as base64 |