{"uid":"cap_FadLefUDrsZ084o4PqVw4","slug":"invoice-extraction-pdf-e-invoice-71a62b98","name":"Invoice Extraction PDF E-Invoice","description":"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.","url":"https://agentsvc.io/api/v1/proxy/invoice-extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"xml":{"type":"string","description":"XRechnung/ZUGFeRD XML text"},"pdf_url":{"type":"string","description":"PDF URL; or send one of the other inputs"},"xml_url":{"type":"string","description":"XML URL"},"validate":{"type":"boolean","default":true,"description":"Check VAT ID and IBAN"},"image_url":{"type":"string","description":"Photo or scan URL"},"pdf_base64":{"type":"string","description":"PDF as base64"},"image_base64":{"type":"string","description":"Photo as base64"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vfmv1sNcFAfzzCvfG6OUF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured invoice data (line items, VAT, totals, IBAN, parties) from PDFs, photos, or XRechnung/ZUGFeRD/Factur-X XML files into validated JSON","exampleAgentPrompt":"Extract all the invoice data from this PDF — I need the invoice number, dates, seller and buyer with their VAT IDs, line items, tax breakdown, totals, and IBAN — and tell me whether it's a valid EN 16931 e-invoice: https://example.com/invoices/rechnung-2024-001.pdf","exampleUseCases":[{"title":"Automated accounts payable ingestion","prompt":"Parse this supplier invoice PDF and give me the structured data — seller name, VAT ID, invoice number, line items, total amounts, and their IBAN for payment — so I can book it in our accounting system: https://supplier.example.com/invoice-2024-05.pdf"},{"title":"E-invoice compliance check","prompt":"I received this ZUGFeRD XML file from a vendor — can you extract the invoice data and tell me whether it's actually a valid EN 16931 e-invoice? Here's the XML: [xml content]"},{"title":"Invoice photo to JSON for expense report","prompt":"I have a photo of a paper invoice I need to expense — can you extract all the details from it including the seller's name, VAT ID, line items, tax rates, and total? Here's the image: https://myfiles.example.com/invoice-photo.jpg"}],"resultDescription":"A JSON object containing structured invoice data: invoice number, issue date, due date, seller and buyer details (name, address, VAT ID), line items with quantities and unit prices, tax amounts broken down by rate, subtotal and total amounts, IBAN and BIC for payment, payment terms, and a flag indicating whether the source file is a conformant EN 16931 e-invoice. Validation results for seller VAT ID (EU VIES check) and IBAN/BIC are included when the validate flag is true.","failureModes":["File exceeds 15 MB limit — returns an error","URL is inaccessible or returns non-invoice content — extraction fails","Malformed or non-standard XML that doesn't conform to XRechnung/ZUGFeRD/Factur-X schemas — parsing error","Image too blurry or low-resolution for AI extraction — low-confidence or missing fields","VAT ID not found in EU VIES — validation warning included in response","Invalid IBAN format — validation error flag in response","Totals don't add up after extraction — consistency check failure flagged in response"],"whenToPreferThis":"Choose this endpoint when you need to extract structured, validated invoice data from diverse input formats (PDF, photo, or XML e-invoices) in a single call with built-in verification of VAT IDs, IBANs, and arithmetic totals. It is especially valuable for accounting automation pipelines that must handle both legacy paper/PDF invoices and modern EN 16931 e-invoices (XRechnung, ZUGFeRD, Factur-X) without building separate parsers. Prefer this over generic OCR or document extraction services when tax compliance, EU VAT validation, and payment detail accuracy are critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:19.370Z","isFirstParty":false,"canonicalSlug":"invoice-extraction-pdf-e-invoice-71a62b98"}