Validation rules

PEPPOL-EN16931-R130

The unit code of an item price base quantity must equal the invoiced quantity's unit code.

Rule
PEPPOL-EN16931-R130official EN 16931 / XRechnung rule
Severity
error
Detected by
tier 3 — KoSIT validator (authoritative)
Reachability
Only reachable when validating your own XML — normbill-generated documents cannot trigger it

The serializer copies price_base_unit as given; callers must keep it aligned with the line unit (BT-130).

How to fix it

Align the base quantity's unitCode with the invoiced quantity's.

PEPPOL-EN16931-R130 auf Deutsch — was bedeutet der Fehler?

Der Einheitencode der Preis-Basismenge muss dem Einheitencode der abgerechneten Menge entsprechen.

So beheben Sie den Fehler

Gleichen Sie price_base_unit (BT-150) an die Positions-Mengeneinheit (BT-130) an.

Official sources

Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.

Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.