API for Automated Invoice Processing – PDF to XML & JSON FastAPI
🔌 API for Automated Invoice Processing
With our powerful FastAPI REST interface, you can process incoming PDF invoices automatically into structured JSON and XML output – fully compliant with DIN EN 16931 (ZUGFeRD/XRechnung). Ideal for developers, integrators, ERP, DMS, web platforms and online shops.
✅ Your Benefits with the Invoice Extractor API
- Structured output: JSON + XML (ZUGFeRD-compliant)
- Secure token authentication via HTTP Header
- 100% server-side processing in Germany
- RESTful API based on FastAPI – modern & documented
- Ideal for mailroom, ERP/DMS platforms & web integrations
🖼️ Also works with scanned & image-based PDF invoices (OCR)
Our API handles not only digital PDFs but also scanned or image-based documents (from MFPs, OCR scans, email attachments). Integrated Tesseract OCR reliably detects key data like recipient, IBAN, VAT ID, line items and totals.
- ✔ Automatic OCR for image-PDFs
- ✔ Perfect for scanned invoices & incoming mail
- ✔ OCR activates only when needed (hybrid mode)
🌍 Supported languages (automatic detection)
The API detects and processes invoices in six languages automatically – no setup required:
- 🇩🇪 German
- 🇬🇧 English
- 🇵🇱 Polish
- 🇫🇷 French
- 🇮🇹 Italian
- 🇪🇸 Spanish
Ideal for international workflows, platforms and suppliers.
🚀 CURL example: send PDF to the API
curl -X POST https://generator.7-pdf.de/extract-invoice/ \ -H "accept: application/json" \ -H "Authorization: Bearer [[ T O K E N - C O D E ]]" \ -H "Content-Type: multipart/form-data" \ -F "file=@/Users/username/Documents/Invoice.pdf"
Response example (JSON excerpt):
{ "success": true, "invoice_number": "2825056", "xml": "<?xml version="1.0" ?>\n<rsm:CrossIndustryInvoice ...", "validation_file": "passed", "validation_string": "passed" }
💻 PowerShell Examples for Windows
Automate your PDF invoice processing with our free PowerShell scripts!
📄 PowerShell: Convert PDF to ZUGFeRD XML
Use our full PowerShell example in the documentation to extract structured XML using curl.exe and save it locally.
📁 PowerShell: Convert full folders to ZUGFeRD PDF
Batch-convert entire folders locally using our enhanced PowerShell script with 7-PDF Printer + Attach Tool. Includes PDF/A-3 conversion and automatic ZUGFeRD attachment. Go to 👉 example script: convert-pdfs-to-pdf-zugferd.ps1
⚙️ Looking for PDF to ZUGFeRD batch processing? You're covered!
- 📂 Convert entire folders automatically
- 📎 Attach XML via 7-PDF Attach Extract and Remove
- 🖨 PDF/A-3 conversion via 7-PDF Printer included
🔐 Access available in Pro, Team & Enterprise Plans
The API is available exclusively for licensed users. You can get started immediately by purchasing a valid API token.
📥 Get API Access Now
📥 Try the software now – Automated processing of PDF invoices into PDF ZUGFeRD format!
Start today with the 7-PDF Attach Extract and Remove Software and process your PDF invoices into standards-compliant e-invoices – free trial, with numerous automation features and professional options.
Downloads
Attachment | Size |
---|---|
7-PDF Attach Extract And Remove Files 2.0.1 - EXE (Version 2025) | 63.51 MB |
7-PDF Attach Extract And Remove Files 2.0.1 - ZIP (Unpack & Install - Version 2025) | 63.03 MB |
7-PDF Attach Extract And Remove Files License | 30.06 KB |
THIRD PARTY LICENSE FILE | 12.03 KB |
7-PDF Attach Extract And Remove PAD File | 26.35 KB |