E-invoice to JSON reader
Turn an incoming XRechnung, ZUGFeRD / Factur-X or Peppol invoice into plain JSON, checked with the official rules in the same call.
- Version 1
- Checked against 3 published cases
Check an invoice now
Free, no sign-up, 5 invoices a day. Files up to 900 KB, XML or Factur-X PDF. The file is checked in memory and is not stored.
What it checks
Reads a UBL 2.1 or UN/CEFACT CII invoice, or the XML inside a Factur-X / ZUGFeRD PDF, and returns its data as JSON: parties, addresses, VAT numbers, payment details, lines, VAT breakdown and every total as the file states it. The field names are the same as the creators take, so the JSON can go straight into your system, or back into /v1/create. The matching official rules run on the same document (XRechnung, Peppol BIS, Factur-X or EN 16931, chosen from its specification ID), so you also learn whether the invoice is valid. Amounts are never recalculated; a note says when a line's amount does not match its quantity and price.
- Only the EN 16931 fields the creators' model has are read; attachments, item attributes and EXTENDED-profile extras are left out, and read_notes says when something was.
- PDF/A-3 conformance of a PDF itself is not checked.
Rules used
- CEN/TC 434 EN 16931 validation artefacts, version 1.3.17
- KoSIT validator configuration for XRechnung 3.0.2, version 2026-08-31
- OpenPeppol BIS Billing 3.0 Schematron (compiled with SchXslt 1.10.1), version 3.0.22
- Factur-X 1.09.2 / ZUGFeRD 2.5 schemas and Schematron (FNFE-MPE and FeRD), as distributed with Mustang, version 1.09.2
A check shows whether the invoice passes the official rule sets listed, at the versions listed. It is not legal or tax advice, and passing does not promise that a tax authority or buyer will accept the invoice. See the terms.
Use it from your code
jq -Rs '{xml: .}' xrechnung-01.01a-invoice-ubl.xml |
curl https://api.curatedapi.com/v1/validate/einvoice/read \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @-
{
"validator": "einvoice/read@1",
"result": {
"valid": true,
"invoice": {
"number": "123456XX",
"issue_date": "2016-04-04",
"currency": "EUR",
"buyer_reference": "04011000-12345-03",
"notes": [
"#ADU#Es gelten unsere Allgem. Geschäftsbedingungen, die Sie unter […] finden."
],
"seller": {
"name": "[Seller name]",
"trading_name": "[Seller trading name]",
"address": {
"line1": "[Seller address line 1]",
"city": "[Seller city]",
"postcode": "12345",
"country": "DE"
},
"vat_id": "DE 123456789",
"registration_id": "[HRA-Eintrag]",
"legal_info": "123/456/7890, HRA-Eintrag in […]",
"electronic_address": {
"id": "[email protected]",
"scheme": "EM"
},
"contact": {
"name": "nicht vorhanden",
"phone": "+49 1234-5678",
"email": "[email protected]"
}
},
"buyer": {
"name": "[Buyer name]",
"address": {
"line1": "[Buyer address line 1]",
"city": "[Buyer city]",
"postcode": "12345",
"country": "DE"
},
"id": "[Buyer identifier]",
"electronic_address": {
"id": "[email protected]",
"scheme": "EM"
}
},
"payment": {
"method": "sepa_credit_transfer",
"iban": "DE79000000001234567890",
"terms": "Zahlbar sofort ohne Abzug."
},
"lines": [
{
"id": "Zeitschrift [...]",
"name": "Zeitschrift [...]",
"description": "Zeitschrift Inland",
"note": "Die letzte Lieferung im Rahmen des abgerechneten Abonnements erfolgt in 12/2016 Lieferung erfolgt / erfolgte direkt vom Verlag",
"quantity": "1",
"unit": "XPP",
"unit_price": "288.79",
"vat_category": "S",
"vat_rate": "7",
"seller_item_id": "246",
"order_line_reference": "6171175.1",
"period": {
"start": "2016-01-01",
"end": "2016-12-31"
}
},
{
"id": "Porto + Versandkosten",
"name": "Porto + Versandkosten",
"quantity": "1",
"unit": "XPP",
"unit_price": "26.07",
"vat_category": "S",
"vat_rate": "7"
}
]
},
"totals": {
"currency": "EUR",
"line_total": "314.86",
"total_without_vat": "314.86",
"vat_total": "22.04",
"total_with_vat": "336.9",
"amount_due": "336.9",
"vat_breakdown": [
{
"category": "S",
"rate": "7",
"taxable_amount": "314.86",
"vat_amount": "22.04"
}
],
"lines": [
{
"id": "Zeitschrift [...]",
"net_amount": "288.79"
},
{
"id": "Porto + Versandkosten",
"net_amount": "26.07"
}
]
},
"syntax": "UBL Invoice",
"document_type_code": "380",
"payment_means_code": "58",
"read_notes": [],
"scenario": "EN16931 XRechnung (UBL Invoice)",
"document_type": "UBL Invoice",
"specification_id": "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0",
"errors": 0,
"warnings": 0,
"notices": 1,
"error_rules": [],
"checks": [
{
"check": "XML syntax",
"passed": true
},
{
"check": "XML Schema for UBL 2.1 Invoice",
"passed": true
},
{
"check": "Schematron rules for EN16931 (UBL)",
"passed": true
},
{
"check": "Schematron rules for Invoice - CIUS XRechnung (UBL)",
"passed": true
}
],
"messages": [
{
"rule": "BR-DE-TMP-32",
"level": "information",
"message": "[BR-DE-TMP-32] Eine Rechnung sollte zur Angabe des Liefer-/Leistungsdatums entweder BT-72 \"Actual delivery date\", BG-14 \"Invoicing period\" oder in jeder Rechnungsposition BG-26 \"Invoice line period\" enthalten.",
"check": "Schematron rules for Invoice - CIUS XRechnung (UBL)",
"location": "/Q{urn:oasis:names:specification:ubl:schema:xsd:Invoice-2}Invoice[1]"
}
],
"messages_truncated": false,
"profile": "XRECHNUNG",
"pdf": null
},
"rules": [
{
"name": "CEN/TC 434 EN 16931 validation artefacts",
"version": "1.3.17",
"url": "https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17"
},
{
"name": "KoSIT validator configuration for XRechnung 3.0.2",
"version": "2026-08-31",
"url": "https://github.com/itplr-kosit/validator-configuration-xrechnung/releases/download/v2026-08-31/xrechnung-3.0.2-validator-configuration-2026-08-31.zip"
},
{
"name": "OpenPeppol BIS Billing 3.0 Schematron (compiled with SchXslt 1.10.1)",
"version": "3.0.22",
"url": "https://github.com/OpenPEPPOL/peppol-bis-invoice-3/releases/tag/3.0.22"
},
{
"name": "Factur-X 1.09.2 / ZUGFeRD 2.5 schemas and Schematron (FNFE-MPE and FeRD), as distributed with Mustang",
"version": "1.09.2",
"url": "https://github.com/ZUGFeRD/mustangproject/tree/1d633ab612856527d536a709ed53bedd2a4ea98c/validator/src/main/resources"
}
]
}
MCP tool validate_einvoice_read at https://mcp.curatedapi.com.
Inputs, results and errors in the API reference.
Other validators
- EN 16931 validator (UBL and CII)
- Factur-X / ZUGFeRD validator
- Peppol BIS 3.0 invoice validator
- XRechnung validator (KoSIT rules)
Guides
- XRechnung vs ZUGFeRD and Factur-X
- KoSIT validator API alternative
- EU e-invoicing API for 2027
- XRechnung validator API
- Factur-X and ZUGFeRD validator API
- EN 16931 and Peppol BIS validation API
Guides
Check every invoice before it is sent
Run the same check from your invoicing app or ERP, one POST per invoice, before the file goes to the customer or the Peppol network. The answer lists every rule it breaks.
Free for up to 200 invoices checked a month. 10,000 invoices checked a month cost $9.00 on the Starter plan.