BR-KSA-EN16931-02Tax currency code is not SAR

Mutabiq checks Saudi ZATCA Phase 2 e-invoice XML before you submit it: pre-validation against published ZATCA requirements, not an approval by the authority. This page explains one rule, BR-KSA-EN16931-02.

Validate 5 invoices free

Five checks a month on the Free plan. The file is checked in memory and is never stored.

The message ZATCA prints

[BR-KSA-EN16931-02]-VAT accounting currency code (BT-6) must be "SAR".

What Mutabiq reports

One entry for each way this rule can be reported.

Reported as
What kind of value was found — empty, not_15_digits and the like — never the value itself.

Tax currency code is not SAR

Reported astax_currency_not_sarthe tax currency is not SAR

What is wrong

cbc:TaxCurrencyCode (BT-6), the currency VAT is accounted for in, is not SAR. ZATCA rejects the document under BR-KSA-EN16931-02: VAT is accounted for in Saudi riyals whatever currency the invoice is issued in. The comparison ignores letter case and surrounding spaces.

What to check in your ERP

Write SAR into cbc:TaxCurrencyCode on every invoice. A system that copies the document currency into both fields produces this on every invoice in a foreign currency.

The clause that runs

Quoted from the validation-rule stylesheet ZATCA publishes, at the file and line named below. The executed guard is what the check runs; the reported test is what it prints when it fails, and the two are not always the same.

Executed guard

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

Reported test

(normalize-space(upper-case(.))) = 'SAR'
Evaluated against
cbc:TaxCurrencyCode
Source
vendor/zatca/schematron/20210819_ZATCA_E-invoice_Validation_Rules.xsl:2997

As shipped in ZATCA SDK 3.4.8: the copy quoted here is, byte for byte, the file that release ships. The date in the file name is the name ZATCA gives the file; the rules in it are those of SDK 3.4.8.

A worked example

A synthetic document from the measured test corpus that trips this rule, shown where it differs from one that passed. Mutabiq's report names the class of the value, never the value itself.

Where it differs from a document that passed

  • This example
  • A document that passed
<cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode><cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>This example: <cbc:TaxCurrencyCode>USD</cbc:TaxCurrencyCode>A document that passed: <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode><cac:AdditionalDocumentReference>  <cbc:ID>ICV</cbc:ID>⋯</cac:TaxTotal><cac:TaxTotal>This example:   <cbc:TaxAmount currencyID="USD">15.000</cbc:TaxAmount>A document that passed:   <cbc:TaxAmount currencyID="SAR">15.00</cbc:TaxAmount></cac:TaxTotal><cac:LegalMonetaryTotal>
Document
bad-101-total-vat-accounting-currency-decimals.xml
Mutabiq's verdict
Not passed
Reported as
tax_currency_not_sarthe tax currency is not SAR

Download this example (.xml)Check it in Mutabiq

This page's example, checked by the same rules your own upload goes through. No upload and no sign-in.

Rules evaluated against the same part of the document. One wrong value often reports several of them at once.

Check an invoice

Check your own invoice

© 2026 Hayatiq AI Solutions F.Z.E. All rights reserved.