BR-02: Every invoice needs an invoice number (BT-1)

Explained by Matheel from ZATCA's rule text and the condition SDK 3.4.8 executes · Updated

Warning: accepted with a warningAll invoicesFields: 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

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