Skip to main content
BR-KSA-39ErrorZATCA Phase 2 UBL 2.1implemented

Seller VAT Registration Number Mandatory (BT-31)

Seller PartyTaxScheme/cbc:CompanyID is mandatory on all ZATCA e-invoices.

Scope
Seller Party
Applicable Invoice Types
Standard (B2B), Simplified (B2C), Credit Note, Debit Note
Catalog Version
v1.0.0 (2026-11-23)
Target XPath
/Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID

Typical Reason for Failure

Company VAT registration number is placed in PartyIdentification instead of PartyTaxScheme/CompanyID.

Invalid Synthetic Example

Before (Fails)xml
<cac:PartyTaxScheme><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme>

Corrected Synthetic Example

After (Fixed)xml
<cac:PartyTaxScheme><cbc:CompanyID>310122393500003</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme>

Explanation of the Fix

Populate cbc:CompanyID inside cac:PartyTaxScheme with the seller's 15-digit VAT number.

Official Source Reference

ZATCA Electronic Invoice XML Implementation Standard (Phase 2)

Open official specification

Related Rules

Test your invoice against BR-KSA-39 now

Browser quick check; raw XML is never stored.

Open Validator