PEPPOL-EN16931-R130: Price base quantity unit differs from the invoiced quantity unit

How to clear PEPPOL-EN16931-R130 when the official OpenPeppol BIS Billing 3.0 schematron rejects your invoice.

3 invoices/month free · Pro €12 (100) · Office €49 (1,000) · pay via Paddle, cancel any time.

PEPPOL-EN16931-R130 · Fatal error

[PEPPOL-EN16931-R130]-Unit code of price base quantity MUST be same as invoiced quantity.

What it means and how to fix it

Official rule: the unit code of the price base quantity MUST be the same as the invoiced quantity.

If the line quantity is in H87 (piece) or C62 (one), the price's BaseQuantity must use that same UN/ECE Rec. 20 unit code. A typical failure is quantity in pieces and a base quantity in hours (HUR) or kilograms, or a missing unit on one of the two attributes. The unit on the net price itself (the amount) is a currency, not this rule; R130 compares only the two quantity units.

Related: PEPPOL-EN16931-R121 requires a base quantity, when present, to be a positive number above zero. This page is not advice about which unit you must sell in.

<cac:InvoiceLine>
  <cbc:InvoicedQuantity unitCode="H87">2</cbc:InvoicedQuantity>
  <cac:Price>
    <cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
    <cbc:BaseQuantity unitCode="H87">1</cbc:BaseQuantity>
  </cac:Price>
</cac:InvoiceLine>

Where it sits in UBL

UBL: cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode (BT-130) and cac:Price/cbc:BaseQuantity/@unitCode (BT-150).

Related rules

Source

OpenPeppol BIS Billing 3.0 (BIS Billing 3.0.22 schematron). Facts checked 30.11.2026. Not legal advice.

FAQ

What if I omit BaseQuantity?

R130 compares unit codes when the price base quantity is present. If you omit BaseQuantity, the price applies to one unit of the invoiced quantity; other rules may still apply.

Where are unit codes listed?

UN/ECE Recommendation 20 (and Rec. 21 for some package codes), as used by EN 16931 and Peppol BIS 3.0.

Does the code have to be H87?

No. It has to be the same code on both quantities. H87 is only the example for 'piece'.

Validate the XML for free Pricing: 3 free, Pro €12, Office €49