ZATCA COMPLIANCE CHECK ERROR

{
“validationResults”: {
“infoMessages”: ,
“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”
},
{
“type”: “ERROR”,
“code”: “XSD_ZATCA_INVALID”,
“category”: “XSD validation”,
“message”: “Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 117; cvc-complex-type.2.4.a: Invalid content was found starting with element ‘{"urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2":SignatureInformation}’. One of ‘{"urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2":SignatureInformation}’ is expected.”,
“status”: “ERROR”
}
],
“status”: “ERROR”
},
“reportingStatus”: null,
“clearanceStatus”: “NOT_CLEARED”,
“qrSellertStatus”: null,
“qrBuyertStatus”: null
}

this error i got with below xml

<ns0:Invoice xmlns:ns0=“urn:oasis:names:specification:ubl:schema:xsd:Invoice-2” xmlns:ns1=“urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2” xmlns:ns2=“urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2” xmlns:ns3=“urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2” xmlns:ns4=“urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2” xmlns:ns5=“XML-Signature Syntax and Processing”>
ns1:UBLExtensionsns1:UBLExtensionns1:ExtensionContentns2:UBLDocumentSignaturesns2:SignatureInformationns2:Signature025008ae9db46dca8f17df7a7f4a50d6bc1e16593b7117ffe114436efe6eef9796391d5bce3f17a3d2ef191f0643a50d322d16224eef266f71629f551707eee7</ns2:Signature>ns2:X509Certificate6PmOoj0IOCadBoMPwWjjI0fiBnpCAcCzclrE+9hIdqM=</ns2:X509Certificate>ns2:SignedPropertiesHashbdb292ac7e8f65caf649ca0828e3c97d2cebb54f312345dc04730b48ab3d317a</ns2:SignedPropertiesHash></ns2:SignatureInformation></ns2:UBLDocumentSignatures></ns1:ExtensionContent></ns1:UBLExtension></ns1:UBLExtensions>ns3:ProfileIDreporting:1.0</ns3:ProfileID>
ns3:IDSME00023</ns3:ID>
ns3:UUIDb9014df1-7267-49e2-8519-6a20e0697197</ns3:UUID>
ns3:IssueDate2024-10-10</ns3:IssueDate>
ns3:IssueTime15:28:55</ns3:IssueTime>
<ns3:InvoiceTypeCode name=“0100000”>388</ns3:InvoiceTypeCode>
ns3:DocumentCurrencyCodeSAR</ns3:DocumentCurrencyCode>
ns3:TaxCurrencyCodeSAR</ns3:TaxCurrencyCode>
ns4:AdditionalDocumentReference
ns3:IDICV</ns3:ID>
ns3:UUID23</ns3:UUID>
</ns4:AdditionalDocumentReference>
ns4:AdditionalDocumentReference
ns3:IDPIH</ns3:ID>
ns4:Attachment
<ns3:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</ns3:EmbeddedDocumentBinaryObject>
</ns4:Attachment>
</ns4:AdditionalDocumentReference>

<ns4:AccountingSupplierParty>
    <ns4:Party>
        <ns4:PartyIdentification>
            <ns3:ID schemeID="CRN">1010010000</ns3:ID>
        </ns4:PartyIdentification>
        <ns4:PostalAddress>
            <ns3:StreetName>الامير سلطان | Prince Sultan</ns3:StreetName>
            <ns3:BuildingNumber>2322</ns3:BuildingNumber>
            <ns3:CitySubdivisionName>المربع | Al-Murabba</ns3:CitySubdivisionName>
            <ns3:CityName>الرياض | Riyadh</ns3:CityName>
            <ns3:PostalZone>23333</ns3:PostalZone>
            <ns4:Country>
                <ns3:IdentificationCode>SA</ns3:IdentificationCode>
            </ns4:Country>
        </ns4:PostalAddress>
        <ns4:PartyTaxScheme>
            <ns3:CompanyID>310200338700003</ns3:CompanyID>
            <ns4:TaxScheme>
                <ns3:ID>VAT</ns3:ID>
            </ns4:TaxScheme>
        </ns4:PartyTaxScheme>
        <ns4:PartyLegalEntity>
            <ns3:RegistrationName>4030213532</ns3:RegistrationName>
        </ns4:PartyLegalEntity>
    </ns4:Party>
</ns4:AccountingSupplierParty>
 <ns4:AccountingCustomerParty>
    <ns4:Party>
        <ns4:PostalAddress>
            <ns3:StreetName>صلاح الدين | Salah Al-Din</ns3:StreetName>
            <ns3:BuildingNumber>1111</ns3:BuildingNumber>
            <ns3:CitySubdivisionName>المروج | Al-Murooj</ns3:CitySubdivisionName>
            <ns3:CityName>الرياض | Riyadh</ns3:CityName>
            <ns3:PostalZone>12222</ns3:PostalZone>
            <ns4:Country>
                <ns3:IdentificationCode>SA</ns3:IdentificationCode>
            </ns4:Country>
        </ns4:PostalAddress>
        <ns4:PartyTaxScheme>
            <ns3:CompanyID>399999999800003</ns3:CompanyID>
            <ns4:TaxScheme>
                <ns3:ID>VAT</ns3:ID>
            </ns4:TaxScheme>
        </ns4:PartyTaxScheme>
        <ns4:PartyLegalEntity>
            <ns3:RegistrationName>شركة نماذج فاتورة المحدودة | Fatoora Samples LTD</ns3:RegistrationName>
        </ns4:PartyLegalEntity>
    </ns4:Party>
</ns4:AccountingCustomerParty>
<ns4:Delivery>
    <ns3:ActualDeliveryDate>2024-10-10</ns3:ActualDeliveryDate>
</ns4:Delivery>
<ns4:PaymentMeans>
    <ns3:PaymentMeansCode>10</ns3:PaymentMeansCode>
</ns4:PaymentMeans>
<ns4:AllowanceCharge>
    <ns3:ChargeIndicator>false</ns3:ChargeIndicator>
    <ns3:AllowanceChargeReason>discount</ns3:AllowanceChargeReason>
    <ns3:Amount currencyID="SAR">0.00</ns3:Amount>
    <ns4:TaxCategory>
        <ns3:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</ns3:ID>
        <ns3:Percent>15</ns3:Percent>
        <ns4:TaxScheme>
            <ns3:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</ns3:ID>
        </ns4:TaxScheme>
    </ns4:TaxCategory>
</ns4:AllowanceCharge>
<ns4:TaxTotal>
    <ns3:TaxAmount currencyID="SAR">0.6</ns3:TaxAmount>
</ns4:TaxTotal>
<ns4:TaxTotal>
    <ns3:TaxAmount currencyID="SAR">0.6</ns3:TaxAmount>
    <ns4:TaxSubtotal>
        <ns3:TaxableAmount currencyID="SAR">4.00</ns3:TaxableAmount>
        <ns3:TaxAmount currencyID="SAR">0.60</ns3:TaxAmount>
         <ns4:TaxCategory>
             <ns3:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</ns3:ID>
             <ns3:Percent>15.00</ns3:Percent>
            <ns4:TaxScheme>
               <ns3:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</ns3:ID>
            </ns4:TaxScheme>
         </ns4:TaxCategory>
    </ns4:TaxSubtotal>
</ns4:TaxTotal>
<ns4:LegalMonetaryTotal>
    <ns3:LineExtensionAmount currencyID="SAR">4.00</ns3:LineExtensionAmount>
    <ns3:TaxExclusiveAmount currencyID="SAR">4.00</ns3:TaxExclusiveAmount>
    <ns3:TaxInclusiveAmount currencyID="SAR">4.60</ns3:TaxInclusiveAmount>
    <ns3:AllowanceTotalAmount currencyID="SAR">0.00</ns3:AllowanceTotalAmount>
    <ns3:PrepaidAmount currencyID="SAR">0.00</ns3:PrepaidAmount>
    <ns3:PayableAmount currencyID="SAR">4.60</ns3:PayableAmount>
</ns4:LegalMonetaryTotal>
<ns4:InvoiceLine>
    <ns3:ID>1</ns3:ID>
    <ns3:InvoicedQuantity unitCode="PCE">2.000000</ns3:InvoicedQuantity>
    <ns3:LineExtensionAmount currencyID="SAR">4.00</ns3:LineExtensionAmount>
    <ns4:TaxTotal>
         <ns3:TaxAmount currencyID="SAR">0.60</ns3:TaxAmount>
         <ns3:RoundingAmount currencyID="SAR">4.60</ns3:RoundingAmount>
    </ns4:TaxTotal>
    <ns4:Item>
        <ns3:Name>قلم رصاص</ns3:Name>
        <ns4:ClassifiedTaxCategory>
            <ns3:ID>S</ns3:ID>
            <ns3:Percent>15.00</ns3:Percent>
            <ns4:TaxScheme>
                <ns3:ID>VAT</ns3:ID>
            </ns4:TaxScheme>
        </ns4:ClassifiedTaxCategory>
    </ns4:Item>
    <ns4:Price>
        <ns3:PriceAmount currencyID="SAR">2.00</ns3:PriceAmount>
        <ns4:AllowanceCharge>
           <ns3:ChargeIndicator>true</ns3:ChargeIndicator>
           <ns3:AllowanceChargeReason>discount</ns3:AllowanceChargeReason>
           <ns3:Amount currencyID="SAR">0.00</ns3:Amount>
        </ns4:AllowanceCharge>
    </ns4:Price>
</ns4:InvoiceLine>

ns4:Signaturens5:SignatureValue025008ae9db46dca8f17df7a7f4a50d6bc1e16593b7117ffe114436efe6eef9796391d5bce3f17a3d2ef191f0643a50d322d16224eef266f71629f551707eee7</ns5:SignatureValue></ns4:Signature></ns0:Invoice>

Morning @tek1966

Thanks for reaching out,

Can I kindly ask you to answer the below questions to ensure comprehensive support as usual:

1- On which environment you are? and what are the steps you followed exactly?
2- What are the end points (APIs) that you are using?
3- Did you successfully generate your CCSID?
4- Can you share the body content from the compliance check API?

Thanks,
Ibrahem Daoud.