BR-KSA-EN16931-02: VAT accounting currency (TaxCurrencyCode) must be SAR

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

Error: the invoice is rejectedAll invoicesFields: BT-6

cbc:TaxCurrencyCode (BT-6) must be SAR, compared after trimming and upper-casing. Its presence is required separately by BR-KSA-68.

How to fix it

Use <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>.

ZATCA's official text

[BR-KSA-EN16931-02]-VAT accounting currency code (BT-6) must be "SAR".
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

not((normalize-space(upper-case(.))) = 'SAR')

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