{"uid":"cap_POYv8dnRGl_g5U4HAN7fa","slug":"invoket-invoice-read-structured-invoice-parser-fef74bff","name":"Invoket Invoice Read — Structured Invoice Parser","description":"Read any EU structured e-invoice in one call: post a Factur-X PDF, CII or UBL XML and get faithful structured data - parties with SIREN/VAT identifiers, line items, VAT breakdown, totals, payment IBAN and due dates. Covers the three formats mandated by the French 2026-2027 e-invoicing reform (EN 16931). No account, no key, no OCR guesswork.","url":"https://api.invoket.com/invoice/read","method":"POST","headers":{},"bodySchema":{"type":"object","required":["document_base64"],"properties":{"document_base64":{"type":"string","description":"Base64 (standard alphabet, whitespace tolerated) of the complete document: a Factur-X/ZUGFeRD PDF (PDF/A-3 with embedded XML) or a CII D16B / UBL 2.1 invoice XML. Alternatively, skip JSON entirely and POST the raw bytes with Content-Type: application/pdf or application/xml. Max body 10 MB (413 beyond). Scanned/image PDFs without embedded XML are rejected (400) - this endpoint reads the structured formats of the EN 16931 core, no OCR"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_quQA4p4NfmvgKlHWhp1qy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a Factur-X/ZUGFeRD PDF or CII D16B/UBL 2.1 XML invoice and returns structured, machine-readable invoice data with provenance.","exampleAgentPrompt":"Parse this Factur-X invoice PDF I'm about to send you and give me the structured data — supplier, buyer, line items, totals, and tax breakdown — so I can verify the amounts before approving payment.","exampleUseCases":[{"title":"AP automation pre-payment verification","prompt":"Before I approve this supplier invoice, parse the attached Factur-X PDF and pull out the line items, totals, and tax amounts so I can cross-check them against our purchase order."},{"title":"E-invoice data extraction for ERP ingestion","prompt":"I have a batch of UBL 2.1 XML invoices from our European suppliers — can you read this one and give me the structured fields so I can import it into our ERP system?"},{"title":"Audit trail with provenance for structured invoice","prompt":"Extract all the structured data from this ZUGFeRD PDF/A-3 invoice, including provenance information, so I have a verifiable record of what was billed for our compliance audit."}],"resultDescription":"A structured JSON object containing the parsed invoice data extracted from the embedded EN 16931-compliant XML, including supplier and buyer identifiers, invoice number and date, line items with descriptions and quantities, subtotals, tax breakdowns, and grand totals, along with provenance metadata indicating the source format and extraction confidence.","failureModes":["Scanned/image-only PDFs without embedded XML return 400 — OCR is not supported","Documents exceeding 10 MB return 413 (payload too large)","Malformed or non-EN-16931-compliant XML returns 400","Non-PDF/non-XML content types without proper Content-Type header may be rejected","Corrupted base64 encoding returns a parsing error"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract structured invoice data from EN 16931 compliant documents (Factur-X/ZUGFeRD PDFs or CII D16B/UBL 2.1 XML files) without OCR. It is ideal for AP automation agents that need to verify invoice amounts before executing payments, ERP ingestion pipelines, or audit workflows requiring provenance. Do not use for scanned invoices, image-based PDFs, or non-standard invoice formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:34:23.782Z","isFirstParty":false}