BR-02: Every invoice needs an invoice number (BT-1)
Checks that the document root (ubl:Invoice or cn:CreditNote) has a cbc:ID element and that it is not empty.
How to fix it
Add a non-empty invoice number directly under the root element, e.g. <cbc:ID>INV-0001</cbc:ID>.
ZATCA's official text
[BR-02]-An Invoice shall have an Invoice number (BT-1).
Source: ZATCA SDK 3.4.8 · EN 16931 (CEN) rules
Fails when (the condition ZATCA's SDK runs)
not(exists(cbc:ID) and (cbc:ID) !='')
Related rules
- BR-KSA-73 · Prepaid amount (BT-113) requires full prepayment reference on lines
- BR-03 · Every invoice needs an issue date (BT-2)
- BR-04 · Every invoice needs an invoice type code (BT-3)
- BR-05 · Every invoice needs a currency code (BT-5)
Validate your invoice against ZATCA's rules
Paste the XML and see every error and warning. It runs in your browser; the invoice goes nowhere.
Validate an invoice or try Matheel