We are trying to integrate Zatca with our Logistic application for e-invoicing. Now we are completed our development process. and we checked that in developer portel. it is working. But it is not working in simulation. how to get a support to overcome this issue?
Our error messages are shown below,
- The invoice hash API body does not match the (calculated) Hash of the XML
- Invalid signed properties hashing, SignedProperties with id=‘xadesSignedProperties’
Detailed error response is,
“errorMessages”:
[
{
“code”: “invalid-invoice-hash”,
“type”: “ERROR”,
“status”: “ERROR”,
“message”: “The invoice hash API body does not match the (calculated) Hash of the XML”,
“category”: “INVOICE_HASHING_ERRORS”
},
{
“code”: “signed-properties-hashing”,
“type”: “ERROR”,
“status”: “ERROR”,
“message”: “Invalid signed properties hashing, SignedProperties with id=‘xadesSignedProperties’”,
“category”: “CERTIFICATE_ERRORS”
}
],
Generated XML is:
<?xml version="1.0" encoding="UTF-8"?> urn:oasis:names:specification:ubl:dsig:enveloped:xades urn:oasis:names:specification:ubl:signature:1 urn:oasis:names:specification:ubl:signature:Invoice not(//ancestor-or-self::ext:UBLExtensions) not(//ancestor-or-self::cac:Signature) not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR']) Ekz92Q7wtcufZUhPn6FisNHBIGfsCZ4ebPppFCFl5XA= MmFkNTRhOTQyMmY5ZDI2MDMyYzc1OGJkZmYwMzFjYzhiM2E5NjJiZTNkOGQ4NWUxMzIyYmQzNmVmODdmYzU5OA== MEUCID0denr2r+BfgN5xHa3q7izh5+XLQsGFaGglbktQwdNZAiEA+cBXLqdeE73Pf+d3ucqZrAjpjGpnsX4q4/87U5C7ZjU= MIICYDCCAgagAwIBAgIGAY4X0wugMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjQwMzA3MDczMTI1WhcNMjkwMzA2MjEwMDAwWjBoMRcwFQYDVQQDDA5FR1MxLTg4NjQzMTE0NTETMBEGA1UECwwKMTIzNDU2Nzg5MDErMCkGA1UECgwiZ2xhdWJldGVjaCBjb21wYW55IHByaXZhdGUgbGltaXRlZDELMAkGA1UEBhMCU0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FpRUErY0JYTHFkZUU3M1BmK2QzdWNxWnJBanBqR3Buc1g0cTQvODdVNUM3WmpVPQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEymERE38MpNpTHNvGx2LZ5X9dOqc7HuaHPy5+55X1Caw4Rr5ganhJyZ06CzT5aI5UtRCKnNKNrm/hXJBIu+iGHAlHMEUCIQCwCAMyKevXf3bygrXV9e7NUnkhh+ESCWdydHEhTnzAGQIgY5WffLt1uwoS/JYNz8lNWF7kgeu6lR7WQewucRobDRo= urn:oasis:names:specification:ubl:signature:Invoice urn:oasis:names:specification:ubl:dsig:enveloped:xades 400004645645654 Falastin, Mishrifah, Jeddah 23331, Saudi Arabia,12 0000 0000 Jeddah Jeddah 31952 SA 300000000000003 VAT glaubetech company private limited 91.34 4567.00 91.34 S 2.00 VAT 91.34 4567.00 4567.00 4658.34 0 0 4658.34 1531 1 4567.00 91.34 4658.34 A Sub Test S 2.00 VAT 4567Please help me to fix this issue.