Skip to Content

XRechnung Leitweg DE

74.55 74.55

Instant digital delivery after payment confirmation.
License: OPL-1, every download is watermarked.
Terms and Conditions

XRechnung Leitweg-ID & B2G Routing Satellite for Germany

Validate the Leitweg-ID check digits, place it in BT-10 BuyerReference, and check the B2G routing of every German public-sector XRechnung

What this module does

Every electronic invoice a supplier sends to a German public authority (B2G) must carry the authority's Leitweg-ID - the public-sector routing identifier - in EN 16931 business term BT-10 BuyerReference. A wrong Leitweg-ID, or a missing BuyerReference, means the receiving portal (ZRE / OZG-RE / a Land portal) rejects or misroutes the invoice. This satellite makes that impossible to get wrong: it validates the Leitweg-ID check digits with the official ISO/IEC 7064 MOD 97-10 algorithm (the same scheme used by the IBAN), classifies its administrative scope, runs the German B2G routing rules, and writes the Leitweg-ID into the BuyerReference element of your UBL or CII (ZUGFeRD) XRechnung - directly inside your own Odoo database.

It is a pure validation and format add-on: it does not replace your XRechnung generator and it is not a portal connector. It guarantees the routing identifier is correct and correctly placed, so your existing transmission path (or your own portal credentials) carries a clean, routable document.

Check-digit validation (MOD 97-10)

Verifies the two trailing check digits of any Leitweg-ID against the KoSIT Leitweg-ID Format-Spezifikation v2.0.2: coarse addressing (2–12 digits) plus optional fine addressing (up to 30 alphanumeric characters) are mapped to numbers (A=10 … Z=35) and checked with ISO/IEC 7064 MOD 97-10. Wrong digits are flagged with the correct value, and a one-click action recomputes them.

BT-10 BuyerReference placement

Detects whether an attached invoice is a UBL Invoice/CreditNote or a UN/CEFACT CII (ZUGFeRD) document and injects or replaces the Leitweg-ID in the correct location — cbc:BuyerReference for UBL, ram:BuyerReference inside the header trade agreement for CII — in the schema-correct position, without touching anything else in the file.

B2G routing rules

Applies the German XRechnung CIUS routing rules: BR-DE-15 (BuyerReference mandatory), Leitweg-ID structure and check digit, scope vs. target portal (a federal 991 ID cannot go through a Land-only portal), and BR-DE-21 (the XRechnung specification identifier). Each invoice gets a pass / warning / fail verdict with a readable report.

Scope classification

Recognises the federal prefix 991 (Bund) and the sixteen official Land prefixes, so each Leitweg-ID is labelled federal / state / unclassified together with the corresponding Bundesland — on the partner, the invoice and every routing check.

Feature overview

AreaCapability
Check digitISO/IEC 7064 MOD 97-10 validation and recomputation of the two-digit Pruefziffer
StructureCoarse (2–12 digits) + optional fine (0–30 [A-Z0-9]) + check digits, one or two hyphens
ScopeFederal (991 / Bund) and all 16 Land prefixes, with the Bundesland name
BT-10 placementInject / replace BuyerReference in UBL Invoice, UBL CreditNote, and CII (ZUGFeRD)
Routing rulesBR-DE-15, BR-DE-21, structure, check digit, portal scope match (ZRE / OZG-RE / Land)
EnforcementOptional block on posting a B2G invoice whose Leitweg-ID is invalid
Audit trailOne routing-check record per validation, with errors, warnings and report
ToolsInteractive Leitweg-ID checker / builder wizard and a date-range batch validator

How it fits your workflow

Flag a customer as a public authority and store its Leitweg-ID once; the check digits are validated immediately and the scope is shown. Every customer invoice to that authority inherits the Leitweg-ID into its BT-10 BuyerReference field, where it can be overridden per document. Validate the routing from the invoice (or in batch for a whole month), then place the BuyerReference into your generated XRechnung XML. Posting can be blocked when the routing identifier is invalid, so a non-routable B2G invoice never leaves Odoo.

Scope & boundary

This is a validation and format add-on. It builds and verifies the Leitweg-ID and places it in the BuyerReference of UBL and CII XRechnung documents. It does not transmit invoices to a portal and is not an official KoSIT product; transmission to ZRE / OZG-RE / a Land portal is performed with your own access. All rates, formats and the check-digit algorithm follow the published German specifications (KoSIT Leitweg-ID Format-Spezifikation 2.0.2, EN 16931 / XRechnung CIUS). Compatible with Odoo 18 and 19, Community and Enterprise.

Screenshots

Validate Batch

Validate Batch

Leitweg Id Checker

Leitweg Id Checker

Routing Checks

Routing Checks

Update date: 2026-07-02