XRechnung vs ZUGFeRD and Factur-X
A practical comparison of the formats a European invoice can take, and the API calls that create, check and read each one. The API does not choose which format a buyer requires.
Free plan: 1,000 calls a month, no card needed. Paid plans start at $9 or €9. Test keys are never billed.
jq -Rs '{xml: .}' xrechnung-01.01a-invoice-ubl.xml |
curl https://api.curatedapi.com/v1/validate/einvoice/xrechnung \
-H "Authorization: Bearer YOUR_CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @-
{
"validator": "einvoice/xrechnung@1",
"result": {
"valid": true,
"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
},
"… 2 more"
],
"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
}
}
Germany has required businesses to accept e-invoices since 2025. From January 2027, companies with more than €800,000 turnover in the previous year must send them, and all others from January 2028. In France, every business has had to accept e-invoices since September 2026, and large and mid-sized companies must also send them; smaller ones start sending in September 2027. Belgium has required B2B e-invoices since January 2026. Those dates say that a structured invoice has to be sent. They do not, on this page, pick XRechnung over ZUGFeRD or Factur-X for a given buyer.
XRechnung 3.0 is a CIUS of EN 16931. The file is UBL 2.1 or UN/CEFACT CII, and its specification ID (BT-24) is urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0. KoSIT's validator configuration for XRechnung 3.0.2 (release 2026-08-31) chooses the scenario from that ID, then runs the schema, the EN 16931 rules and the XRechnung rules (BR-DE). Valid means no error.
ZUGFeRD 2 and Factur-X are the same CII invoice inside a PDF. The profile comes from the guideline ID (BT-24): MINIMUM, BASIC WL, BASIC, EN 16931 (urn:cen.eu:en16931:2017), EXTENDED or XRECHNUNG. MINIMUM through EXTENDED use the Factur-X 1.09.2 / ZUGFeRD 2.5 schema and Schematron for that profile. XRECHNUNG uses KoSIT's rules. ZUGFeRD 2.0 guideline IDs are checked against the current rules for the same profile, with a warning. ZUGFeRD 1.0 is not supported.
Peppol BIS Billing 3.0 is a third file, UBL only, with specification ID urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0. Creating the file and sending it over the Peppol network are separate: the API does the file, and a certified access point does the sending.
What you get
- XRechnung in UBL or CII, ZUGFeRD / Factur-X as a PDF, Peppol BIS as UBL
- The profile and the rules come from the document's own specification ID
- A created file is returned only when the official rules accept it
- A check that runs lists every finding with the rule ID, level and message
- The same key works for the REST API and the MCP server
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.
The three files, side by side
Paths and limits are the endpoints as they are served. A create call counts as 10 calls. A check or a read counts as 5.
| XRechnung 3.0 | ZUGFeRD 2 / Factur-X | Peppol BIS 3.0 | |
|---|---|---|---|
| Syntax | UBL 2.1 or UN/CEFACT CII. The creator's syntax is ubl (default) or cii. | UN/CEFACT CII embedded in a PDF. The creator draws the A4 page from the same JSON, in German (default) or English. | UBL 2.1 only. CII is not a Peppol BIS 3.0 document. |
| Specification ID (BT-24) | urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0 | From the guideline ID: MINIMUM, BASIC WL, BASIC, EN 16931 (urn:cen.eu:en16931:2017), EXTENDED or XRECHNUNG. | urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 |
| Rules | KoSIT's configuration for XRechnung 3.0.2, release 2026-08-31. Schema first, then EN 16931 and the BR-DE rules. Valid means no error. | Factur-X 1.09.2 / ZUGFeRD 2.5 for MINIMUM through EXTENDED. The XRECHNUNG profile uses KoSIT's rules. | OpenPeppol BIS Billing 3.0.22: the UBL schema, the EN 16931 rules Peppol ships, then the Peppol rules, including the country rules Peppol publishes. |
| Create from JSON | POST /v1/create/einvoice/xrechnung. Needs a buyer reference, the seller's contact name, phone and email, both parties' electronic addresses, and payment instructions. | POST /v1/create/einvoice/zugferd. profile is en16931 (default) or xrechnung. MINIMUM, BASIC WL, BASIC and EXTENDED are not offered. | POST /v1/create/einvoice/peppol-bis. Both electronic addresses need an EAS scheme; an email address is refused. A buyer reference or an order reference is required. The network hop is not included. |
| Check a file you have | POST /v1/validate/einvoice/xrechnung, XML up to 4 MiB. | POST /v1/validate/einvoice/factur-x. PDF up to 6 MiB, or CII XML up to 4 MiB. Send one of the two. | POST /v1/validate/einvoice/peppol-bis, UBL XML up to 4 MiB. |
| Read into JSON | POST /v1/validate/einvoice/read. The specification ID picks XRechnung, Peppol, Factur-X or EN 16931. Amounts are copied from the file, not recalculated. | The same read endpoint. From a PDF it reads factur-x.xml, zugferd-invoice.xml or xrechnung.xml. | The same read endpoint, for a UBL invoice or credit note. |
What the creator will and will not build
All three creators take the invoice as JSON, work out every total the way EN 16931 defines it, and run the official rules on the file before returning it. The answer includes those totals, so your app can compare them with its own. The body can be at most 1 MiB. The invoice is not stored, logged or cached.
The ZUGFeRD creator writes PDF/A-3b with fpdf2, which enforces the PDF/A rules it knows. The PDF is not then run through a separate PDF/A checker, and you cannot bring your own layout. The text of the page is German or English; the XML is the same either way. The embedded file is factur-x.xml, or xrechnung.xml for the XRECHNUNG profile.
The reader returns the parties, addresses, VAT numbers, payment, lines, VAT breakdown and totals, with the same field names the creators take, plus the report of the matching rules. Attachments, item attributes and EXTENDED-profile extras are left out, and read_notes says when something was. A note is also added when a line's amount is not its quantity times its price.
Endpoints
Each one is a POST and an MCP tool. Its page shows the inputs, an example and the sources it is checked against.
Check an XRechnung 3.0 invoice the way German public buyers do, with KoSIT's official validator configuration.
/v1/validate/einvoice/xrechnung · validate_einvoice_xrechnung
Checked against 2 published cases
Check a Factur-X or ZUGFeRD 2 invoice, as a PDF or its XML, against the rules for its profile.
/v1/validate/einvoice/factur-x · validate_einvoice_factur_x
Checked against 2 published cases
Check a UBL invoice or credit note against Peppol BIS Billing 3.0 with OpenPeppol's official rules.
/v1/validate/einvoice/peppol-bis · validate_einvoice_peppol_bis
Checked against 1 published case
Turn an incoming XRechnung, ZUGFeRD / Factur-X or Peppol invoice into plain JSON, checked with the official rules in the same call.
/v1/validate/einvoice/read · validate_einvoice_read
Checked against 3 published cases
Send the invoice as JSON, get back an XRechnung 3.0 file that passes KoSIT's official validator.
/v1/create/einvoice/xrechnung · create_einvoice_xrechnung
Checked against 2 published cases
Send the invoice as JSON, get back a ZUGFeRD / Factur-X PDF/A-3 with the XML inside, checked against the official rules.
/v1/create/einvoice/zugferd · create_einvoice_zugferd
Checked against 3 published cases
Send the invoice as JSON, get back a Peppol BIS Billing 3.0 UBL file that passes OpenPeppol's official rules.
/v1/create/einvoice/peppol-bis · create_einvoice_peppol_bis
Checked against 1 published case
On this site
Common questions
Which format do I send from January 2027?
The dates above require a structured e-invoice. They do not name one file type for every buyer. German public buyers are set up for XRechnung, which KoSIT's configuration checks, and a public buyer reference is the Leitweg-ID. A ZUGFeRD or Factur-X file in the EN 16931 profile (also called COMFORT) is a full EN 16931 invoice inside a PDF. MINIMUM and BASIC WL do not count as e-invoices in Germany, which is why the creator does not offer them. Ask the buyer which specification ID they accept. This API checks and builds the file; it does not decide the requirement.
What is the difference between ZUGFeRD and Factur-X?
For version 2 they are the same CII invoice and the same profiles. Factur-X is the name used with FNFE-MPE, ZUGFeRD the name used with FeRD. The validator reads factur-x.xml, zugferd-invoice.xml or xrechnung.xml from the PDF, and the profile named in the PDF's XMP metadata. The creator writes a PDF/A-3b with factur-x.xml, or xrechnung.xml when the profile is XRECHNUNG.
Can I send a PDF to the XRechnung validator?
No. POST /v1/validate/einvoice/xrechnung takes the UBL or CII XML, at most 4 MiB. A Factur-X or ZUGFeRD PDF goes to POST /v1/validate/einvoice/factur-x (PDF at most 6 MiB, or the CII XML at most 4 MiB), or to POST /v1/validate/einvoice/read, which also returns the invoice as JSON. PDF/A-3 conformance of the PDF itself is not checked.
What happens when the file I ask to create breaks a rule?
The call fails with INVOICE_NOT_VALID (HTTP 422). No file is returned and nothing is billed. Each detail names the rule, the rule owner's message and the field to look at. A check of a file you already have is different: that call is HTTP 200 with valid set to false, and it is billed, because the check ran.
How many calls does one invoice check use?
One check counts as 5 calls, on the REST API and on the MCP server. The free plan includes 1,000 calls a month, which covers 200 checks. A live key is billed when the check runs, including when the invoice is not valid.
What does the free plan include?
The free plan includes 1,000 calls a month and needs no card. Paid plans start at $9 a month or €9 a month. Failed calls, test keys and a retry that sends the same idempotency key are not billed.
Start on the free plan
1,000 calls a month, no card needed. Paid plans start at $9 or €9. Same key for the REST API and the MCP server.