Problem in QR in Ingration with Zatca

 {\"validationResults\":{\"infoMessages\":[{\"type\":\"INFO\",\"code\":\"XSD_ZATCA_VALID\",\"category\":\"XSD validation\",\"message\":\"Complied with UBL 2.1 standards in line with ZATCA specifications\",\"status\":\"PASS\"}],\"warningMessages\":[],\"errorMessages\":[{\"type\":\"ERROR\",\"code\":\"invalid-invoice-hash\",\"category\":\"INVOICE_HASHING_ERRORS\",\"message\":\"The invoice hash API body does not match the (calculated) Hash of the XML\",\"status\":\"ERROR\"}],\"status\":\"ERROR\"},\"reportingStatus\":\"NOT_REPORTED\",\"clearanceStatus\":null,\"qrSellertStatus\":null,\"qrBuyertStatus\":null}",

I am Receiving this Response
Based On this XML
@"
<Invoice
xmlns=““urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"”
xmlns:cac=”“urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"”
xmlns:cbc=““urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"”
xmlns:ext=”“urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"”>
cbc:ProfileIDreporting:1.0</cbc:ProfileID>
cbc:IDSME00010</cbc:ID>
cbc:UUID8e6000cf-1a98-4174-b3e7-b5d5954bc10d</cbc:UUID>
cbc:IssueDate2025-07-22</cbc:IssueDate>
cbc:IssueTime17:41:08Z</cbc:IssueTime>
<cbc:InvoiceTypeCode name=““0200000"”>388</cbc:InvoiceTypeCode>
<cbc:Note languageID=”“ar”“>ABC</cbc:Note>
cbc:DocumentCurrencyCodeSAR</cbc:DocumentCurrencyCode>
cbc:TaxCurrencyCodeSAR</cbc:TaxCurrencyCode>
cac:AdditionalDocumentReference
cbc:IDICV</cbc:ID>
cbc:UUID10</cbc:UUID>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference
cbc:IDPIH</cbc:ID>
cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode=”“text/plain”“>NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
cac:AccountingSupplierParty
cac:Party
cac:PartyIdentification
<cbc:ID schemeID=”“CRN”“>1010010000</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetNameالامير سلطان | Prince Sultan</cbc:StreetName>
cbc:BuildingNumber2322</cbc:BuildingNumber>
cbc:CitySubdivisionNameالمربع | Al-Murabba</cbc:CitySubdivisionName>
cbc:CityNameالرياض | Riyadh</cbc:CityName>
cbc:PostalZone23333</cbc:PostalZone>
cac:Country
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID300537588500003</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameشركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
cac:AccountingCustomerParty
cac:Party
cac:PostalAddress
cbc:StreetNameصلاح الدين | Salah Al-Din</cbc:StreetName>
cbc:BuildingNumber1111</cbc:BuildingNumber>
cbc:CitySubdivisionNameالمروج | Al-Murooj</cbc:CitySubdivisionName>
cbc:CityNameالرياض | Riyadh</cbc:CityName>
cbc:PostalZone12222</cbc:PostalZone>
cac:Country
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID399999999800003</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameشركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
cac:PaymentMeans
cbc:PaymentMeansCode10</cbc:PaymentMeansCode>
</cac:PaymentMeans>
cac:AllowanceCharge
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:AllowanceChargeReasondiscount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=”“SAR”“>0.00</cbc:Amount>
cac:TaxCategory
<cbc:ID schemeID=”“UN/ECE 5305"” schemeAgencyID=““6"”>S</cbc:ID>
cbc:Percent15</cbc:Percent>
cac:TaxScheme
<cbc:ID schemeID=”“UN/ECE 5153"” schemeAgencyID=““6"”>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
cac:TaxCategory
<cbc:ID schemeID=”“UN/ECE 5305"” schemeAgencyID=““6"”>S</cbc:ID>
cbc:Percent15</cbc:Percent>
cac:TaxScheme
<cbc:ID schemeID=”“UN/ECE 5153"” schemeAgencyID=““6"”>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
cac:TaxTotal
<cbc:TaxAmount currencyID=”“SAR”“>30.15</cbc:TaxAmount>
</cac:TaxTotal>
cac:TaxTotal
<cbc:TaxAmount currencyID=”“SAR”“>30.15</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID=”“SAR”“>201.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=”“SAR”“>30.15</cbc:TaxAmount>
cac:TaxCategory
<cbc:ID schemeID=”“UN/ECE 5305"” schemeAgencyID=““6"”>S</cbc:ID>
cbc:Percent15.00</cbc:Percent>
cac:TaxScheme
<cbc:ID schemeID=”“UN/ECE 5153"” schemeAgencyID=““6"”>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:LegalMonetaryTotal
<cbc:LineExtensionAmount currencyID=”“SAR”“>201.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=”“SAR”“>201.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=”“SAR”“>231.15</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID=”“SAR”“>0.00</cbc:AllowanceTotalAmount>
<cbc:PrepaidAmount currencyID=”“SAR”“>0.00</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID=”“SAR”“>231.15</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cac:InvoiceLine
cbc:ID1</cbc:ID>
<cbc:InvoicedQuantity unitCode=”“PCE”“>33.000000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=”“SAR”“>99.00</cbc:LineExtensionAmount>
cac:TaxTotal
<cbc:TaxAmount currencyID=”“SAR”“>14.85</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=”“SAR”“>113.85</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:Nameكتاب</cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent15.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=”“SAR”“>3.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
cac:InvoiceLine
cbc:ID2</cbc:ID>
<cbc:InvoicedQuantity unitCode=”“PCE”“>3.000000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=”“SAR”“>102.00</cbc:LineExtensionAmount>
cac:TaxTotal
<cbc:TaxAmount currencyID=”“SAR”“>15.30</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=”“SAR”“>117.30</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:Nameقلم</cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDS</cbc:ID>
cbc:Percent15.00</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=”“SAR”“>34.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
”;
my steps is to sign this xml
and sento to coplience check

Dear @ahmedabolata,

Would you please mention the exact steps you followed to generate the Hash for this XML?

Regards,

Add the line at the top of the xml file.

<?xml version="1.0" encoding="UTF-8"?>

Many Thanks Anas
We just finished meeting with you
we will try again and check