Validation rules
PEPPOL-EN16931-R130 — Peppol BIS rule
The unit code of an item price base quantity must equal the invoiced quantity's unit code.
- Rule
PEPPOL-EN16931-R130— official 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.
Related rules
PEPPOL-EN16931-R121— An item price base quantity must be a positive number above zero.PEPPOL-EN16931-R120— An invoice line net amount must equal quantity × (price / base quantity) plus line charges minus line…PEPPOL-EN16931-R111— An invoice line period end date must lie within the document invoicing period.PEPPOL-EN16931-R110— An invoice line period start date must lie within the document invoicing period.PEPPOL-EN16931-R101— A line document reference may only be used for an invoice line object identifier.PEPPOL-EN16931-R061— A direct-debit payment (means code 49/59) must carry a mandate reference (BT-89).
Official sources
- XRechnung specification (KoSIT / xeinkauf.de)
- KoSIT validator on GitHub and the XRechnung validator configuration
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.