BR-KSA-37: Seller building number must be exactly 4 digits

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

Warning: accepted with a warningAll invoicesFields: —

The seller's address cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:BuildingNumber must match ^[0-9]{4}$: exactly four digits. A missing building number also fails this check.

How to fix it

Provide the seller building number as four digits, e.g. <cbc:BuildingNumber>2322</cbc:BuildingNumber>.

ZATCA's official text

[BR-KSA-37]-The seller address building number must contain 4 digits.
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

not(matches(cac:PostalAddress/cbc:BuildingNumber, '^[0-9]{4}$'))

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