EN 16931 and Peppol BIS validation API
Two checks for European e-invoices. EN 16931 runs CEN's rules on UBL and CII. Peppol BIS Billing 3.0 runs OpenPeppol's rules on UBL, including the EN 16931 rules Peppol ships.
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: .}' cen-ubl-tc434-creditnote1.xml |
curl https://api.curatedapi.com/v1/validate/einvoice/en16931 \
-H "Authorization: Bearer YOUR_CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @-
{
"validator": "einvoice/en16931@1",
"result": {
"valid": true,
"scenario": "EN 16931 (UBL CreditNote)",
"document_type": "UBL CreditNote",
"specification_id": "urn:cen.eu:en16931:2017",
"errors": 0,
"warnings": 0,
"notices": 0,
"error_rules": [],
"checks": [
{
"check": "XML syntax",
"passed": true
},
{
"check": "UBL 2.1 CreditNote schema",
"passed": true
},
"… 1 more"
],
"messages": [],
"messages_truncated": false
}
}
The EN 16931 endpoint detects UBL 2.1 Invoice, UBL CreditNote or UN/CEFACT CII from the document, runs that schema, then CEN's validation artefacts: the business rules (BR), calculation rules (BR-CO), VAT rules and code lists. Country rules such as XRechnung are a separate endpoint.
The Peppol endpoint is UBL only. It runs the UBL 2.1 schema, the EN 16931 rules in the copy Peppol ships, and the Peppol BIS Billing 3.0 rules. Those include country rules for Norway, Denmark, Italy, Sweden, Greece, Iceland, the Netherlands and Germany.
Both answers list every finding with the rule ID, its level and the rule owner's message. An invoice that breaks the rules is HTTP 200 with valid set to false. The invoice is not stored, logged or echoed back.
What you get
- EN 16931 for UBL Invoice, UBL CreditNote and UN/CEFACT CII
- Peppol BIS Billing 3.0 for UBL, with OpenPeppol's Schematron
- Country CIUS such as XRechnung stay on their own endpoints
- The same key works for the REST API and the MCP server
- Published sample invoices are checked before release and on the live API every five minutes
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.
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 a UBL or CII invoice against the European e-invoicing standard EN 16931 with CEN's official rules.
/v1/validate/einvoice/en16931 · validate_einvoice_en16931
Checked against 5 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 3 published cases
On this site
Common questions
What is the difference between the EN 16931 and Peppol checks?
EN 16931 runs CEN's rules on UBL or CII and stops at the European standard. Peppol BIS Billing 3.0 is UBL only: it runs the EN 16931 rules in the copy Peppol ships, then the Peppol rules on top. XRechnung is a third endpoint.
Which syntaxes does the EN 16931 validator accept?
UBL 2.1 Invoice, UBL 2.1 CreditNote and UN/CEFACT Cross Industry Invoice (CII D16B). The syntax is detected from the document.
Does Peppol accept CII?
No. Peppol BIS 3.0 documents are UBL only. Send CII to the EN 16931 endpoint, or to XRechnung or Factur-X when that is the specification the document names.
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.