All rules · en16931 · error

BR-02

The invoice must have an invoice number.

Reviewed

Why this rule exists

It is how the document is referenced by every later message — the credit note that corrects it, the payment that settles it, the audit that examines it.

Why it usually happens

How to fix it

Assign the invoice number before serialization, not after.

The official rule

An Invoice shall have an Invoice number (BT-1).

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

normalize-space(cbc:ID) != ''

Applied to nodes matching /ubl:Invoice | /cn:CreditNote

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-eu-1.1.1en16931errorbilling/creditnote, billing/invoice

Related rules

ibr-079

Check your own invoice

Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.

Open the validator
BR-02 — The invoice must have an invoice number. · PINT Probe