E-invoice API: XRechnung, Peppol and ZUGFeRD from JSON

Send the invoice's data as JSON and get back an XRechnung, a Peppol BIS invoice, a ZUGFeRD / Factur-X PDF or a French CTC invoice, already checked against the official schema and business rules of its profile. One call, no XML to write and no validator to run

100 calls a month free, plus a test key with 50 a day

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.

ProfileYou getChecked with
XRechnung 3.0UBL or CII XML, or a ZUGFeRD PDF in the XRECHNUNG profileEN 16931 rules 1.3.16, XRechnung 3.0 rules 2.6.0
Peppol BIS Billing 3.0UBL XMLEN 16931 rules 1.3.16, Peppol BIS Billing 3.0 rules 3.0.21
ZUGFeRD / Factur-X EN 16931CII XML, or the PDF/A-3 hybrid with factur-x.xml insideFactur-X EN 16931 rules 1.09.2
France CTC (2026)Factur-X EN 16931 (CII) or UBL, as XML or PDFFactur-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_version pins 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 --pdf writes the file and exits 1 when it breaks a rule.
  • AI agents: the MCP server's create_invoice tool 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.

PlanCalls a monthPrice
Free100, plus 50 a day with a test key$0
Pro10,000$29 a month, two months free yearly
Pro50,000$79 a month, two months free yearly
Pro100,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.

WhatxmlvalidbeliqQuittio
What it isA hosted API, with SDKs, a CLI and an MCP serverA hosted APIAn open-source PHP library (MIT) you run in your app; Quittio Managed (numbering, archiving, dispatch) from €149 per project, in early access
Formats writtenXRechnung 3.0 (UBL, CII), Peppol BIS 3.0, ZUGFeRD / Factur-X EN 16931, France CTCXRechnung, 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 rulesRun on every invoice it writes, in the same call, release named in the answerSchematron for XRechnung, Factur-X, ZUGFeRD, Peppol BIS and NLCIUS; XSD only for FatturaPA, Facturae, e-SLOG and KSeFThrough the KoSIT validator and veraPDF, which you run yourself (Java)
Checking invoices from elsewhere83 e-invoice profiles, PDFs and archives, in the browser or by APIA validate endpoint for its formatsIts own check levels in the library
DeliveryNot offered: you send the invoiceIn development, provisionally €0.25 per delivered invoiceDispatch in Quittio Managed
Free100 calls a month, plus 50 a day with a test key20 documents a monthFree and open source; you host it
About 10,000 a month$29 a month€39 a month billed yearly, €49 monthlyYour own servers
About 50,000 a month$79 a month€144 a month billed yearly, €180 monthlyYour own servers
Where it runsOur 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.

Questions

E-invoice API

What it writes, how it checks and what happens to your data

Does the API send the invoice to the buyer?
No. It writes the invoice and checks it; you send it, by email, through your Peppol access point or the platform your country uses. xmlvalid is not a Peppol access point and doesn't deliver documents.
How is the invoice checked?
Against the profile's XSD and its official Schematron business rules (EN 16931, XRechnung, Peppol BIS, FeRD's Factur-X rules, the French CTC rules), the same releases the validator runs, named in every answer. A PDF is checked as a PDF invoice: the XML inside, its attachment and, on our worker, PDF/A with veraPDF.
What happens to the data I send?
The JSON is deleted when the run ends. The written XML or PDF stays with the result for 24 hours so you can download it, then it is gone. Both run on our servers in Germany (Hetzner, Falkenstein); see security.
Do I need to compute the totals?
No. Send quantities, prices and VAT rates; line amounts, VAT per category and rate, the invoice totals and the amount due are worked out in decimal, rounded the way EN 16931 wants. The answer returns them so you can compare with your own.
Can I try it without paying?
Yes. A free account has 100 API calls a month, and a test key (xv_test_…) 50 a day outside that quota, with the same engine and rules. Each written invoice counts as one call.
Which formats will come next?
The API writes what the e-invoice generator writes. The validator already checks many more national formats (KSeF, FatturaPA, Facturae and others); tell us at support@xmlvalid.com which one you need to write. The fields are in the API reference.