# Simplified Tax Signature Error

**URL:** <https://zatca1.discourse.group/t/simplified-tax-signature-error/6765>\
**Category:** Clearance and Reporting\
**Created:** [April 24, 2025, 5:02pm UTC](https://zatca1.discourse.group/t/simplified-tax-signature-error/6765 "2025-04-24T17:02:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushar](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tushar](https://zatca1.discourse.group/u/tushar)\
**Post date:** [April 24, 2025, 5:02pm UTC](https://zatca1.discourse.group/t/simplified-tax-signature-error/6765/1 "2025-04-24T17:02:16Z")

</div>

Hi,

when i try to validate my Standard Invoice from [Zatca](https://sandbox.zatca.gov.sa/TestXML)

my XML got validate 100% with no error or warning .

But with the same functionality when i try to generate XML for Simplified it shows some error like

```auto
Errors
category : SIGNATURE_ERROR
code :xadesSignedPropertiesDigestValue
message : wrong xadesSignedPropertiesDigestValue 
category : SIGNATURE_ERROR
code :X509IssuerName
message : wrong X509IssuerName 
category : SIGNATURE_ERROR
code :X509SerialNumber
message : wrong X509SerialNumber 
category : SIGNATURE_ERROR
code :signatureValue
message : wrong signature Value 

```

but signature functionality is same .

And also getting response like

```auto
{
    "status": true,
    "message": {
        "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": [],
            "status": "PASS"
        },
        "reportingStatus": "REPORTED",
        "clearanceStatus": null,
        "qrSellertStatus": null,
        "qrBuyertStatus": null
    },
    "code": 200,
    "errors": null
}

```

_Standard invoice XML (Which is ok)_

```auto
<?xml version="1.0" encoding="UTF-8"?><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"><ext:UBLExtensions>
                <ext:UBLExtension>
                    <ext:ExtensionURI>urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
                    <ext:ExtensionContent>
                        <sig:UBLDocumentSignatures
                                xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
                                xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
                                xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2">
                            <sac:SignatureInformation>
                                <cbc:ID>urn:oasis:names:specification:ubl:signature:1</cbc:ID>
                                <sbc:ReferencedSignatureID>urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
                                <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="signature">
                                    <ds:SignedInfo>
                                        <ds:CanonicalizationMethod
                                                Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
                                        <ds:SignatureMethod
                                                Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
                                        <ds:Reference Id="invoiceSignedData" URI="">
                                            <ds:Transforms>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                                    <ds:XPath>not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
                                                </ds:Transform>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                                    <ds:XPath>not(//ancestor-or-self::cac:Signature)</ds:XPath>
                                                </ds:Transform>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                                    <ds:XPath>not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR'])</ds:XPath>
                                                </ds:Transform>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
                                            </ds:Transforms>
                                            <ds:DigestMethod
                                                    Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                                            <ds:DigestValue>ePxdGoo11QWl83RQoSmglcm4K9nwu9sQJ3xGU56GKM0=</ds:DigestValue>
                                        </ds:Reference>
                                        <ds:Reference
                                                Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties"
                                                URI="#xadesSignedProperties">
                                            <ds:DigestMethod
                                                    Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                                            <ds:DigestValue>ZjBlYjZkZTI3YWI3NDVhOTU3NjYzZDc2MWYzYTc0OWQwN2U0YWUzNzVkMmI1ZmRkZWI0YWQxNGM2NDhkNTU5Yw==</ds:DigestValue>
                                        </ds:Reference>
                                    </ds:SignedInfo>
                                    <ds:SignatureValue>MEYCIQDXbZa7Ut4t6lophTs/mEl1Obt/TlQLoskpwQkcAq9gFQIhAP3NDU0QRysMPNrcrI8Egb/+H7/YWTVJIGMlC8KBC/2m</ds:SignatureValue>
                                    <ds:KeyInfo>
                                        <ds:X509Data>
                                            <ds:X509Certificate>MIICJjCCAc2gAwIBAgIGAZZosxcQMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjUwNDI0MTY0ODA0WhcNMzAwNDIzMjEwMDAwWjBJMRcwFQYDVQQDDA5FR1MxLTg4NjQxMTE4ODEUMBIGA1UECwwLVGVzdCBCcmFuY2gxCzAJBgNVBAoMAlFyMQswCQYDVQQGEwJTQTBWMBAGByqGSM49AgEGBSuBBAAKA0IABC3/6oX029EOyBlJMn4pVl0jxYkYbTbAB6+U27osBWuuQKqFAPfBHen4xg4PtK3TVL4sQfBOm9PGw5SZnMg06DajgdcwgdQwDAYDVR0TAQH/BAIwADCBwwYDVR0RBIG7MIG4pIG1MIGyMTswOQYDVQQEDDIxLUlPU3wyLUlPU3wzLWExMzNmMTIwLTE3NWEtNGYxZS05NGJkLWQyMjViNDYwNGM0MDEfMB0GCgmSJomT8ixkAQEMDzMwMTEyMTk5MTcwMDAzMzENMAsGA1UEDAwEMDEwMDEkMCIGA1UEGgwbMDAwMCBLaW5nIEZhaGFoZCBzdCwgTGFob3JlMR0wGwYDVQQPDBRUZXN0IEJyYW5jaCBJbmR1c3RyeTAKBggqhkjOPQQDAgNHADBEAiB57NhpsB+BXoesWJR3N1z0CxT+n9AYDJz/VhX5OlTL0AIgVPfn5ARzPewWT4uYC0qY7qG94hm9r6QfqVVOdyef+Ds=</ds:X509Certificate>
                                        </ds:X509Data>
                                    </ds:KeyInfo>
                                    <ds:Object>
                                        <xades:QualifyingProperties Target="signature"
                                                                    xmlns:xades="http://uri.etsi.org/01903/v1.3.2#">
                                            <xades:SignedProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Id="xadesSignedProperties">
                    <xades:SignedSignatureProperties>
                        <xades:SigningTime>2025-04-24T16:48:08</xades:SigningTime>
                        <xades:SigningCertificate>
                            <xades:Cert>
                                <xades:CertDigest>
                                    <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
                                    <ds:DigestValue>ZGNkNjY4MjdjYTViYTNiYjYxMzg1MjkxMjQyZTgyNzU1YmNkNDdkYjhhYjU1YzE5Y2M1N2Q5NDk3NDllMjc1Ng==</ds:DigestValue>
                                </xades:CertDigest>
                                <xades:IssuerSerial>
                                    <ds:X509IssuerName>CN=eInvoicing</ds:X509IssuerName>
                                    <ds:X509SerialNumber>1745513289488</ds:X509SerialNumber>
                                </xades:IssuerSerial>
                            </xades:Cert>
                        </xades:SigningCertificate>
                    </xades:SignedSignatureProperties>
                </xades:SignedProperties>
                                        </xades:QualifyingProperties>
                                    </ds:Object>
                                </ds:Signature>
                            </sac:SignatureInformation>
                        </sig:UBLDocumentSignatures>
                    </ext:ExtensionContent>
                </ext:UBLExtension>
            </ext:UBLExtensions><cbc:ProfileID>reporting:1.0</cbc:ProfileID>
                <cbc:ID>EGS1-886411188</cbc:ID>
                <cbc:UUID>a133f120-175a-4f1e-94bd-d225b4604c40</cbc:UUID>
                <cbc:IssueDate>2025-04-24</cbc:IssueDate>
                <cbc:IssueTime>16:48:08</cbc:IssueTime>
                <cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
                <cbc:Note languageID="ar">SAR</cbc:Note>
                <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
                <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode><cac:AdditionalDocumentReference>
                <cbc:ID>ICV</cbc:ID>
                <cbc:UUID>1</cbc:UUID>
            </cac:AdditionalDocumentReference><cac:AdditionalDocumentReference>
            <cbc:ID>PIH</cbc:ID>
            <cac:Attachment>
                <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
            </cac:Attachment>
        </cac:AdditionalDocumentReference><cac:AdditionalDocumentReference>
            <cbc:ID>QR</cbc:ID>
            <cac:Attachment>
                <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AQ8zNDY1NDM1NzM0NDU2MzMCDzMwMTEyMTk5MTcwMDAzMwMTMjAyNS0wNC0yNFQxNjo0ODowOAQGNjkwLjAwBQU5MC4wMAYsZVB4ZEdvbzExUVdsODNSUW9TbWdsY200Szlud3U5c1FKM3hHVTU2R0tNMD0HYE1FWUNJUURYYlphN1V0NHQ2bG9waFRzL21FbDFPYnQvVGxRTG9za3B3UWtjQXE5Z0ZRSWhBUDNORFUwUVJ5c01QTnJjckk4RWdiLytINy9ZV1RWSklHTWxDOEtCQy8ybQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAELf/qhfTb0Q7IGUkyfilWXSPFiRhtNsAHr5TbuiwFa65AqoUA98Ed6fjGDg+0rdNUvixB8E6b08bDlJmcyDToNglGMEQCIHns2GmwH4Feh6xYlHc3XPQLFP6f0BgMnP9WFfk6VMvQAiBU9+fkBHM97BZPi5gLSpjuob3iGb2vpB+pVU53J5/4OwoDMzg4</cbc:EmbeddedDocumentBinaryObject>
            </cac:Attachment>
        </cac:AdditionalDocumentReference><cac:Signature>
                  <cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
                  <cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
                </cac:Signature><cac:AccountingSupplierParty>
                    <cac:Party>
                        <cac:PartyIdentification>
                            <cbc:ID schemeID="CRN">301121971500023</cbc:ID>
                        </cac:PartyIdentification>
                        <cac:PostalAddress>
                            <cbc:StreetName>King Fahahd st</cbc:StreetName>
                            <cbc:BuildingNumber>0000</cbc:BuildingNumber>
                            <cbc:CitySubdivisionName>Est</cbc:CitySubdivisionName>
                            <cbc:CityName>Lahore</cbc:CityName>
                            <cbc:PostalZone>31952</cbc:PostalZone>
                            <cac:Country>
                                <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                            </cac:Country>
                        </cac:PostalAddress>
                        <cac:PartyTaxScheme>
                            <cbc:CompanyID>301121991700033</cbc:CompanyID>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:PartyTaxScheme>
                        <cac:PartyLegalEntity>
                            <cbc:RegistrationName>346543573445633</cbc:RegistrationName>
                        </cac:PartyLegalEntity>
                    </cac:Party>
                </cac:AccountingSupplierParty><cac:AccountingCustomerParty>
                <cac:Party>
                    <cac:PostalAddress>
                        <cbc:StreetName>King Fahahd st</cbc:StreetName>
                        <cbc:BuildingNumber>0000</cbc:BuildingNumber>
                        <cbc:CitySubdivisionName>Est</cbc:CitySubdivisionName>
                        <cbc:CityName>Lahore</cbc:CityName>
                        <cbc:PostalZone>31952</cbc:PostalZone>
                        <cac:Country>
                            <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                        </cac:Country>
                    </cac:PostalAddress>
                    <cac:PartyTaxScheme>
                        <cbc:CompanyID>399999999800003</cbc:CompanyID>
                        <cac:TaxScheme>
                            <cbc:ID>VAT</cbc:ID>
                        </cac:TaxScheme>
                    </cac:PartyTaxScheme>
                    <cac:PartyLegalEntity>
                        <cbc:RegistrationName>346543573445453</cbc:RegistrationName>
                    </cac:PartyLegalEntity>
                </cac:Party>
            </cac:AccountingCustomerParty><cac:Delivery>
                <cbc:ActualDeliveryDate>2025-04-24</cbc:ActualDeliveryDate>
            </cac:Delivery><cac:TaxTotal>
                    <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                </cac:TaxTotal><cac:TaxTotal>
                    <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                    <cac:TaxSubtotal>
                        <cbc:TaxableAmount currencyID="SAR">600.00</cbc:TaxableAmount>
                        <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                         <cac:TaxCategory>
                    <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6" >S</cbc:ID>
                    <cbc:Percent>15</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">600.00</cbc:LineExtensionAmount>
                <cbc:TaxExclusiveAmount currencyID="SAR">600.00</cbc:TaxExclusiveAmount>
                <cbc:TaxInclusiveAmount currencyID="SAR">690.00</cbc:TaxInclusiveAmount>
                <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
                <cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
                <cbc:PayableAmount currencyID="SAR">690.00</cbc:PayableAmount>
            </cac:LegalMonetaryTotal><cac:InvoiceLine>
                        <cbc:ID>1</cbc:ID>
                        <cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
                        <cbc:LineExtensionAmount currencyID="SAR">600.00</cbc:LineExtensionAmount><cac:TaxTotal>
                     <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                     <cbc:RoundingAmount currencyID="SAR">690.00</cbc:RoundingAmount>
                </cac:TaxTotal><cac:Item>
                    <cbc:Name>Test name</cbc:Name>
                    <cac:ClassifiedTaxCategory>
                        <cbc:ID>S</cbc:ID>
                        <cbc:Percent>15.00</cbc:Percent>
                        <cac:TaxScheme>
                            <cbc:ID>VAT</cbc:ID>
                        </cac:TaxScheme>
                    </cac:ClassifiedTaxCategory>
                </cac:Item><cac:Price>
                    <cbc:PriceAmount currencyID="SAR">600.00</cbc:PriceAmount>
                    <cac:AllowanceCharge>
                       <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
                       <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
                       <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
                    </cac:AllowanceCharge>
                </cac:Price></cac:InvoiceLine></Invoice>

```

_And Simplified (Shows Error)_

```auto
<?xml version="1.0" encoding="UTF-8"?><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"><ext:UBLExtensions>
                <ext:UBLExtension>
                    <ext:ExtensionURI>urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
                    <ext:ExtensionContent>
                        <sig:UBLDocumentSignatures
                                xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
                                xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
                                xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2">
                            <sac:SignatureInformation>
                                <cbc:ID>urn:oasis:names:specification:ubl:signature:1</cbc:ID>
                                <sbc:ReferencedSignatureID>urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
                                <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="signature">
                                    <ds:SignedInfo>
                                        <ds:CanonicalizationMethod
                                                Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
                                        <ds:SignatureMethod
                                                Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
                                        <ds:Reference Id="invoiceSignedData" URI="">
                                            <ds:Transforms>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                                    <ds:XPath>not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
                                                </ds:Transform>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                                    <ds:XPath>not(//ancestor-or-self::cac:Signature)</ds:XPath>
                                                </ds:Transform>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                                                    <ds:XPath>not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR'])</ds:XPath>
                                                </ds:Transform>
                                                <ds:Transform
                                                        Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
                                            </ds:Transforms>
                                            <ds:DigestMethod
                                                    Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                                            <ds:DigestValue>sO0xIoTahdcI4vykvvG9vp8HKcMYNbNKzRWMFDc7xww=</ds:DigestValue>
                                        </ds:Reference>
                                        <ds:Reference
                                                Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties"
                                                URI="#xadesSignedProperties">
                                            <ds:DigestMethod
                                                    Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
                                            <ds:DigestValue>YjNhMzJjNzdhN2YxZjE1MTAyZmVjZjlhMTE2MzRlZDYyZjRkZDhlY2JiYzFkYWExOWViNWZkZWY0NjFkMTVlOQ==</ds:DigestValue>
                                        </ds:Reference>
                                    </ds:SignedInfo>
                                    <ds:SignatureValue>MEUCIFr0C0OdqWAMOZ4Qo0jcjTc7torUgACE90xF0WczqXGQAiEAktBVzt1IdeYKa7Yj3WhIkU/u4n9eQl8IOh8AE38Dk9U=</ds:SignatureValue>
                                    <ds:KeyInfo>
                                        <ds:X509Data>
                                            <ds:X509Certificate>MIICJzCCAc2gAwIBAgIGAZZotSD6MAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjUwNDI0MTY1MDE4WhcNMzAwNDIzMjEwMDAwWjBJMRcwFQYDVQQDDA5FR1MxLTg4NjQxMTE4ODEUMBIGA1UECwwLVGVzdCBCcmFuY2gxCzAJBgNVBAoMAlFyMQswCQYDVQQGEwJTQTBWMBAGByqGSM49AgEGBSuBBAAKA0IABEUbWPAvCzmSAr/V1vBIfbVSR+QynZ3UA514j2ilEwUHE/T+yxyxdLrsy1rECciCGc05+tq6frLyyOVV2ANtPlSjgdcwgdQwDAYDVR0TAQH/BAIwADCBwwYDVR0RBIG7MIG4pIG1MIGyMTswOQYDVQQEDDIxLUlPU3wyLUlPU3wzLTM5NDBjZWY2LTljMmItNGQwNy04ZGNlLTcwOGU3ODE1ZWE3ODEfMB0GCgmSJomT8ixkAQEMDzMwMTEyMTk5MTcwMDAzMzENMAsGA1UEDAwEMDEwMDEkMCIGA1UEGgwbMDAwMCBLaW5nIEZhaGFoZCBzdCwgTGFob3JlMR0wGwYDVQQPDBRUZXN0IEJyYW5jaCBJbmR1c3RyeTAKBggqhkjOPQQDAgNIADBFAiEA890gsxKOSFQGU5edmbKkQIywgWAJeRdWaH1+nEORSrwCIDuATX9qdFg5rXR4AWBU51y+DL5/ciQ0xdD1yMU5Webe</ds:X509Certificate>
                                        </ds:X509Data>
                                    </ds:KeyInfo>
                                    <ds:Object>
                                        <xades:QualifyingProperties Target="signature"
                                                                    xmlns:xades="http://uri.etsi.org/01903/v1.3.2#">
                                            <xades:SignedProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Id="xadesSignedProperties">
                    <xades:SignedSignatureProperties>
                        <xades:SigningTime>2025-04-24T16:50:21</xades:SigningTime>
                        <xades:SigningCertificate>
                            <xades:Cert>
                                <xades:CertDigest>
                                    <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
                                    <ds:DigestValue>ZDEyYjFiZTk0MDVhM2VhMTJhNDdiYjc1ZTZmZDAyY2Y4NTg2MDIzNzA5YjI2M2ZmMWQ1NzJlY2JmNzgxY2MxNg==</ds:DigestValue>
                                </xades:CertDigest>
                                <xades:IssuerSerial>
                                    <ds:X509IssuerName>CN=eInvoicing</ds:X509IssuerName>
                                    <ds:X509SerialNumber>1745513423098</ds:X509SerialNumber>
                                </xades:IssuerSerial>
                            </xades:Cert>
                        </xades:SigningCertificate>
                    </xades:SignedSignatureProperties>
                </xades:SignedProperties>
                                        </xades:QualifyingProperties>
                                    </ds:Object>
                                </ds:Signature>
                            </sac:SignatureInformation>
                        </sig:UBLDocumentSignatures>
                    </ext:ExtensionContent>
                </ext:UBLExtension>
            </ext:UBLExtensions><cbc:ProfileID>reporting:1.0</cbc:ProfileID>
                <cbc:ID>EGS1-886411188</cbc:ID>
                <cbc:UUID>3940cef6-9c2b-4d07-8dce-708e7815ea78</cbc:UUID>
                <cbc:IssueDate>2025-04-24</cbc:IssueDate>
                <cbc:IssueTime>16:50:21</cbc:IssueTime>
                <cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
                <cbc:Note languageID="ar">SAR</cbc:Note>
                <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
                <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode><cac:AdditionalDocumentReference>
                <cbc:ID>ICV</cbc:ID>
                <cbc:UUID>1</cbc:UUID>
            </cac:AdditionalDocumentReference><cac:AdditionalDocumentReference>
            <cbc:ID>PIH</cbc:ID>
            <cac:Attachment>
                <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
            </cac:Attachment>
        </cac:AdditionalDocumentReference><cac:AdditionalDocumentReference>
            <cbc:ID>QR</cbc:ID>
            <cac:Attachment>
                <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AQ8zNDY1NDM1NzM0NDU2MzMCDzMwMTEyMTk5MTcwMDAzMwMTMjAyNS0wNC0yNFQxNjo1MDoyMQQGNjkwLjAwBQU5MC4wMAYsc08weElvVGFoZGNJNHZ5a3Z2Rzl2cDhIS2NNWU5iTkt6UldNRkRjN3h3dz0HYE1FVUNJRnIwQzBPZHFXQU1PWjRRbzBqY2pUYzd0b3JVZ0FDRTkweEYwV2N6cVhHUUFpRUFrdEJWenQxSWRlWUthN1lqM1doSWtVL3U0bjllUWw4SU9oOEFFMzhEazlVPQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAERRtY8C8LOZICv9XW8Eh9tVJH5DKdndQDnXiPaKUTBQcT9P7LHLF0uuzLWsQJyIIZzTn62rp+svLI5VXYA20+VAlHMEUCIQDz3SCzEo5IVAZTl52ZsqRAjLCBYAl5F1ZofX6cQ5FKvAIgO4BNf2p0WDmtdHgBYFTnXL4Mvn9yJDTF0PXIxTlZ5t4KAzM4OA==</cbc:EmbeddedDocumentBinaryObject>
            </cac:Attachment>
        </cac:AdditionalDocumentReference><cac:Signature>
                  <cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
                  <cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
                </cac:Signature><cac:AccountingSupplierParty>
                    <cac:Party>
                        <cac:PartyIdentification>
                            <cbc:ID schemeID="CRN">301121971500023</cbc:ID>
                        </cac:PartyIdentification>
                        <cac:PostalAddress>
                            <cbc:StreetName>King Fahahd st</cbc:StreetName>
                            <cbc:BuildingNumber>0000</cbc:BuildingNumber>
                            <cbc:CitySubdivisionName>Est</cbc:CitySubdivisionName>
                            <cbc:CityName>Lahore</cbc:CityName>
                            <cbc:PostalZone>31952</cbc:PostalZone>
                            <cac:Country>
                                <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                            </cac:Country>
                        </cac:PostalAddress>
                        <cac:PartyTaxScheme>
                            <cbc:CompanyID>301121991700033</cbc:CompanyID>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:PartyTaxScheme>
                        <cac:PartyLegalEntity>
                            <cbc:RegistrationName>346543573445633</cbc:RegistrationName>
                        </cac:PartyLegalEntity>
                    </cac:Party>
                </cac:AccountingSupplierParty><cac:AccountingCustomerParty>
                <cac:Party>
                    <cac:PostalAddress>
                        <cbc:StreetName>King Fahahd st</cbc:StreetName>
                        <cbc:BuildingNumber>0000</cbc:BuildingNumber>
                        <cbc:CitySubdivisionName>Est</cbc:CitySubdivisionName>
                        <cbc:CityName>Lahore</cbc:CityName>
                        <cbc:PostalZone>31952</cbc:PostalZone>
                        <cac:Country>
                            <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                        </cac:Country>
                    </cac:PostalAddress>
                    <cac:PartyTaxScheme>
                        <cbc:CompanyID>399999999800003</cbc:CompanyID>
                        <cac:TaxScheme>
                            <cbc:ID>VAT</cbc:ID>
                        </cac:TaxScheme>
                    </cac:PartyTaxScheme>
                    <cac:PartyLegalEntity>
                        <cbc:RegistrationName>346543573445453</cbc:RegistrationName>
                    </cac:PartyLegalEntity>
                </cac:Party>
            </cac:AccountingCustomerParty><cac:TaxTotal>
                    <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                </cac:TaxTotal><cac:TaxTotal>
                    <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                    <cac:TaxSubtotal>
                        <cbc:TaxableAmount currencyID="SAR">600.00</cbc:TaxableAmount>
                        <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                         <cac:TaxCategory>
                    <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6" >S</cbc:ID>
                    <cbc:Percent>15</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">600.00</cbc:LineExtensionAmount>
                <cbc:TaxExclusiveAmount currencyID="SAR">600.00</cbc:TaxExclusiveAmount>
                <cbc:TaxInclusiveAmount currencyID="SAR">690.00</cbc:TaxInclusiveAmount>
                <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
                <cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
                <cbc:PayableAmount currencyID="SAR">690.00</cbc:PayableAmount>
            </cac:LegalMonetaryTotal><cac:InvoiceLine>
                        <cbc:ID>1</cbc:ID>
                        <cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
                        <cbc:LineExtensionAmount currencyID="SAR">600.00</cbc:LineExtensionAmount><cac:TaxTotal>
                     <cbc:TaxAmount currencyID="SAR">90.00</cbc:TaxAmount>
                     <cbc:RoundingAmount currencyID="SAR">690.00</cbc:RoundingAmount>
                </cac:TaxTotal><cac:Item>
                    <cbc:Name>Test name</cbc:Name>
                    <cac:ClassifiedTaxCategory>
                        <cbc:ID>S</cbc:ID>
                        <cbc:Percent>15.00</cbc:Percent>
                        <cac:TaxScheme>
                            <cbc:ID>VAT</cbc:ID>
                        </cac:TaxScheme>
                    </cac:ClassifiedTaxCategory>
                </cac:Item><cac:Price>
                    <cbc:PriceAmount currencyID="SAR">600.00</cbc:PriceAmount>
                    <cac:AllowanceCharge>
                       <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
                       <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
                       <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
                    </cac:AllowanceCharge>
                </cac:Price></cac:InvoiceLine></Invoice>

```

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [April 27, 2025, 4:37am UTC](https://zatca1.discourse.group/t/simplified-tax-signature-error/6765/2 "2025-04-27T04:37:37Z")

</div>

Morning @tushar

Thanks for reaching out,

To provide comprehensive support as usual, Kindly mention all the steps that you followed after generating your PCSID, Additionally, What is the SDK version that you are using?

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![tushar](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tushar](https://zatca1.discourse.group/u/tushar)\
**Post date:** [April 27, 2025, 2:57pm UTC](https://zatca1.discourse.group/t/simplified-tax-signature-error/6765/3 "2025-04-27T14:57:48Z")

</div>

Actually i an not using any SDK . i am writing on my own with PHP language.

my invoice has generate process is

```
         invoiceData ->
         additionalDocumentICV ->
        additionalDocumentPIH ->
        supplierInformation ->
        customerInformation ->
        supplyDate ->
        allowanceCharge ->
        taxInformation ->
        legalMonetary ->
        invoiceLine ->

```

after this i am adding ublData .

this process works fine on Standard invoice . and i am getting 100% valid XML result , but having problem on Simplified .

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [April 28, 2025, 5:45am UTC](https://zatca1.discourse.group/t/simplified-tax-signature-error/6765/4 "2025-04-28T05:45:05Z")

</div>

Morning @tushar

Kindly note that you must use the privateKey that generated along with your CSR when sign your invoices.

Please, share your full concerns via below mail to schedule one to one meeting with our technical team.

SP mail: [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa)

Thanks,  
Ibrahem Daoud.
