# QR Code error for Simplified Tax Invoices

**URL:** <https://zatca1.discourse.group/t/qr-code-error-for-simplified-tax-invoices/632>\
**Category:** QR code\
**Created:** [August 27, 2023, 8:49am UTC](https://zatca1.discourse.group/t/qr-code-error-for-simplified-tax-invoices/632 "2023-08-27T08:49:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harishkumar](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@harishkumar](https://zatca1.discourse.group/u/harishkumar)\
**Post date:** [August 27, 2023, 8:49am UTC](https://zatca1.discourse.group/t/qr-code-error-for-simplified-tax-invoices/632/1 "2023-08-27T08:49:41Z")

</div>

As per BR-KSA-25, Buyer name is not mandatory for Simplified tax Invoices except for VATEX-SA-EDU or VATEX-SA-HEA.  
As per BR-KSA-49, other buyer ID (BT-46) as national ID is not mandatory for Simplified tax Invoices except for VATEX-SA-EDU or VATEX-SA-HEA.  
and as per BR-KSA-81, other buyer ID (BT-46) must be provided for Standard Tax Invoices.  
When issuing B2C Invoice I do not have VAT number of Customer and so will not be able to include VAT number in the XML  
As per BR-10, Buyer Postal address BG-8 is not required for Simplified tax Invoices. except for VATEX-SA-EDU or VATEX-SA-HEA

however, when i do not pass buyer information in the XML as cac:AccountingCustomerParty  
cac:Party/  
\</cac:AccountingCustomerParty\>  
the QR Code is returned with following error  
KSA Response: Errors: invalid-invoice-hash-INVOICE\_HASHING\_ERRORS-The invoice hash API body does not match the (calculated) Hash of the XML

---

<div class="post-metadata">

**Author:** ![harishkumar](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@harishkumar](https://zatca1.discourse.group/u/harishkumar)\
**Post date:** [August 29, 2023, 7:24am UTC](https://zatca1.discourse.group/t/qr-code-error-for-simplified-tax-invoices/632/2 "2023-08-29T07:24:58Z")

</div>

As per BR-KSA-25, Buyer name is not mandatory for Simplified tax Invoices except for VATEX-SA-EDU or VATEX-SA-HEA.  
As per BR-KSA-49, other buyer ID (BT-46) as national ID is mandatory for Simplified tax Invoices except for VATEX-SA-EDU or VATEX-SA-HEA.  
and as per BR-KSA-81, other buyer ID (BT-46) must be provided for Standard Tax Invoices.  
When issuing B2C Invoice I do not have VAT number of Customer and so will not be able to include VAT number in the XML  
As per BR-10, Buyer Postal address BG-8 is not required for Simplified tax Invoices. except for VATEX-SA-EDU or VATEX-SA-HEA

however, when i do not pass buyer information in the XML as cac:AccountingCustomerParty  
cac:Party/  
\</cac:AccountingCustomerParty\>  
the QR Code is returned with following error  
KSA Response: Errors: invalid-invoice-hash-INVOICE\_HASHING\_ERRORS-The invoice hash API body does not match the (calculated) Hash of the XML

---

<div class="post-metadata">

**Author:** ![kiaziz](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kiaziz](https://zatca1.discourse.group/u/kiaziz)\
**Post date:** [August 31, 2023, 8:26am UTC](https://zatca1.discourse.group/t/qr-code-error-for-simplified-tax-invoices/632/3 "2023-08-31T08:26:13Z")

</div>

even if you don’t have data for the AccountingCustomerParty tag you still need to provide it as an empty tag,

If your invoice is standard invoice:  
also for the hash you can generate it using command:  
**fatoora -generateHash -invoice [_invoice.xml_]**

then replace the first “digestvalue” tag value in the invoice itself with the new generated hash.

in order to generate the json request:  
**fatoora -invoiceRequest -invoice [_invoice.xml_]**

and this will generate the json request having (hash, uuid, invoicehash)
