CII or UBL
XRechnung 3.0 KoSIT validator API
German B2G in CII or UBL syntax, checked against the KoSIT rules in force (3.0). Leitweg-ID and BR-DE rules included. Version pinning ready for 4.0.
XRechnung is the German CIUS of EN 16931 used for invoices to federal, state and many municipal buyers. The file is XML, either UBL or UN/CEFACT CII, checked with the KoSIT rule set (currently 3.0, with 4.0 on the horizon).
EInvoiceFile generates XRechnung from a JSON invoice and validates uploaded XML against those rules, including Leitweg-ID and BR-DE business rules. The API returns the XML in the response. It does not log into a German authority portal for you.
Use XRechnung when the buyer is a German public body. For German B2B hybrid PDF invoices, use ZUGFeRD. For France, use Factur-X.
Where it applies
- Germany · In force. Federal and Länder B2G: XRechnung 3.0
- France · N/A. Use Factur-X / Chorus Pro instead of XRechnung
- Poland · N/A. National KSeF schema; convert from EN 16931 UBL
Sample JSON
{
"invoice": {
"number": "XR-3001",
"leitwegId": "04011000-12345-67",
"buyerReference": "B2G-DE",
"currency": "EUR"
}
}Download sample XML · API reference
Related
Questions
What is an XRechnung API?
An HTTP API that creates or checks XRechnung XML (UBL or CII) against the German KoSIT / EN 16931 rules, so your application does not embed the schematron itself.
Does EInvoiceFile submit XRechnung to the buyer?
No. The API returns validated XML. You send that file through the channel the buyer specifies, such as a portal, email, or Peppol access point.