BR-52: Each additional document reference needs an ID (BT-122)
Checks that every cac:AdditionalDocumentReference has a non-empty cbc:ID.
How to fix it
Give each cac:AdditionalDocumentReference a non-empty cbc:ID; in the official samples these are values such as <cbc:ID>ICV</cbc:ID>, <cbc:ID>PIH</cbc:ID> and <cbc:ID>QR</cbc:ID>.
ZATCA's official text
[BR-52]-Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122).
Source: ZATCA SDK 3.4.8 · EN 16931 (CEN) rules
Fails when (the condition ZATCA's SDK runs)
not((cbc:ID) != '')
Related rules
- BR-47 · Each VAT breakdown needs a VAT category code (BT-118)
- BR-48 · Each VAT breakdown needs a VAT rate (BT-119) unless category is O
- BR-49 · Payment means must state a payment means code (BT-81)
- BR-53 · With a tax currency (BT-6), give the VAT total in it (BT-111)
- BR-54 · Each item attribute needs a name (BT-160) and a value (BT-161)
- BR-55 · A billing reference must give the preceding invoice number (BT-25)
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