One request
Post the invoice to /api/v1/invoices. Everything but the profile and the lines may be left out; amounts may be numbers or decimal strings.
curl -H "Authorization: Bearer $XMLVALID_API_KEY" -H "Content-Type: application/json" \
https://xmlvalid.com/api/v1/invoices -d '{
"invoice": {
"profile": "xrechnung",
"number": "RE-2026-0042",
"buyerReference": "04011000-12345-03",
"seller": { "name": "Muster Software GmbH", "city": "Berlin", "country": "DE", "vatId": "DE136695976", … },
"buyer": { "name": "Beispiel Handel AG", "city": "München", "country": "DE", … },
"payment": { "iban": "DE02120300000000202051" },
"lines": [
{ "name": "Softwarelizenz, Jahresabo", "quantity": 1, "unit": "ANN", "price": 1200, "rate": 19 },
{ "name": "Fachbuch XML", "quantity": 2, "price": "39.90", "rate": 7 }
]
},
"format": "xml"
}'
The answer is the validation of the invoice it wrote: the verdict, every finding with its rule id and line, the rule set releases that ran, the totals as written and the fields of your JSON it had no place for. The XML or PDF is at links.document for 24 hours.
{
"status": "done",
"result": { "valid": true, "outcome": "valid", "errors": [], "warnings": [] },
"rule_sets": [
{"key":"en16931-ubl-1.3.16","name":"EN 16931 rules 1.3.16 (UBL)","version":"1.3.16"},
{"key":"xrechnung-3-ubl","name":"XRechnung 3.0 rules (UBL)","version":"2.6.0"}
],
"invoice": {
"schema": "xrechnung-3-ubl", "profile": "xrechnung", "syntax": "ubl", "format": "xml",
"totals": { "net": "1279.80", "tax": "233.59", "payable": "1513.39", … },
"ignored": []
},
"links": { "document": "https://xmlvalid.com/api/v1/validations/…/document" }
}
Formats and rules
Each invoice is checked with the rule sets below, at the releases the validator runs; where each one comes from and its hashes are on rule provenance.
| Profile | You get | Checked with |
|---|---|---|
| XRechnung 3.0 | UBL or CII XML, or a ZUGFeRD PDF in the XRECHNUNG profile | EN 16931 rules 1.3.16, XRechnung 3.0 rules 2.6.0 |
| Peppol BIS Billing 3.0 | UBL XML | EN 16931 rules 1.3.16, Peppol BIS Billing 3.0 rules 3.0.21 |
| ZUGFeRD / Factur-X EN 16931 | CII XML, or the PDF/A-3 hybrid with factur-x.xml inside | Factur-X EN 16931 rules 1.09.2 |
| France CTC (2026) | Factur-X EN 16931 (CII) or UBL, as XML or PDF | Factur-X EN 16931 rules 1.09.2, French e-invoicing rules 1.4.0.04, EN 16931 rules 1.3.16 |
Invoices and credit notes (type 380 or 381). The PDF is a PDF/A-3 with the CII XML inside as ZUGFeRD defines it, laid out in one of 15 languages with your logo, and checked as a PDF invoice: the XML inside, its attachment and PDF/A with veraPDF.
What it does for you
- Totals in decimal. Line amounts, VAT per category and rate, document allowances and charges, the amount paid in advance and the amount due, rounded the way EN 16931 wants, never in floating point.
- The profile's details. XRechnung and Peppol specification ids, Peppol endpoints filled from the parties' VAT numbers, a Skonto line in KoSIT's form, SEPA direct debit, the French billing mode and legal notes.
- Nothing lost in silence. A field the invoice has no place for comes back in
ignored, so a misspelt key shows up in the answer, not at the buyer. - Checked before it leaves. A rule the invoice breaks comes back as a finding with its id, such as BR-DE-15, its XPath and a page explaining the fix.
- The API you may already use. Same keys, quotas, webhooks, reports and
rules_versionpins as validation; documents from elsewhere are checked against 83 e-invoice profiles with the same API.
SDKs, CLI and AI agents
- SDKs for PHP, Python and TypeScript:
createInvoice()/create_invoice()and the document's download. - The command-line client:
xmlvalid invoice invoice.json --pdfwrites the file and exits 1 when it breaks a rule. - AI agents: the MCP server's
create_invoicetool writes the invoice from what the agent gathered and returns the XML with its check. - An OpenAPI description and a Postman collection with real answers.
Pricing
Each written invoice is one API call, the same as a validation. No overage: past the month's calls the API answers 429 until the next month.
| Plan | Calls a month | Price |
|---|---|---|
| Free | 100, plus 50 a day with a test key | $0 |
| Pro | 10,000 | $29 a month, two months free yearly |
| Pro | 50,000 | $79 a month, two months free yearly |
| Pro | 100,000 | $129 a month, two months free yearly |
Pro also brings the validator's fixes through the API, webhooks, URL monitors and the inbox. See pricing.
Compared with beliq and Quittio
Two other ways to write EN 16931 invoices from your own data: beliq, a hosted API, and Quittio, an open-source PHP library. Their side comes from their own pages as they read on 23 November 2026.
| What | xmlvalid | beliq | Quittio |
|---|---|---|---|
| What it is | A hosted API, with SDKs, a CLI and an MCP server | A hosted API | An open-source PHP library (MIT) you run in your app; Quittio Managed (numbering, archiving, dispatch) from €149 per project, in early access |
| Formats written | XRechnung 3.0 (UBL, CII), Peppol BIS 3.0, ZUGFeRD / Factur-X EN 16931, France CTC | XRechnung, Factur-X, ZUGFeRD, Peppol BIS 3.0, NLCIUS, FatturaPA, Facturae, e-SLOG, KSeF FA(3) | ZUGFeRD / Factur-X, XRechnung 3.0 (CII, UBL), Peppol BIS 3.0, CII, UBL 2.1; QR-Rechnung and ebInterface 6.1 in country packages |
| Official business rules | Run on every invoice it writes, in the same call, release named in the answer | Schematron for XRechnung, Factur-X, ZUGFeRD, Peppol BIS and NLCIUS; XSD only for FatturaPA, Facturae, e-SLOG and KSeF | Through the KoSIT validator and veraPDF, which you run yourself (Java) |
| Checking invoices from elsewhere | 83 e-invoice profiles, PDFs and archives, in the browser or by API | A validate endpoint for its formats | Its own check levels in the library |
| Delivery | Not offered: you send the invoice | In development, provisionally €0.25 per delivered invoice | Dispatch in Quittio Managed |
| Free | 100 calls a month, plus 50 a day with a test key | 20 documents a month | Free and open source; you host it |
| About 10,000 a month | $29 a month | €39 a month billed yearly, €49 monthly | Your own servers |
| About 50,000 a month | $79 a month | €144 a month billed yearly, €180 monthly | Your own servers |
| Where it runs | Our servers in Germany (Hetzner) | The EU (Hetzner) | Wherever your app runs |
beliq fits better when you need FatturaPA, Facturae, e-SLOG, KSeF or NLCIUS written today, or delivery from the same provider once it ships; it also has a smaller paid tier (2,000 documents for €18 billed yearly). Quittio fits better when the invoices must be made inside your own PHP application, without a call to anyone. xmlvalid fits when you want every invoice checked with the official rules before it goes out, without running Java, the same rules for the invoices you receive, and more calls for the price.
Sources: beliq.eu, quittio.dev, github.com/Quittio/quittio. If something here is out of date, tell us and we will correct it.