Invalid-invoice-hash

@idaoud

We have been attempting to resolve the signing issue and have tried every possible solution, but simulation API continues to return the same error:

“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”
}
]

We are using the official ZATCA SDK for signing and request generation, which should eliminate the possibility of errors in the signing logic.

We would greatly appreciate your assistance in identifying what might be causing this persistent invoice hash mismatch.

Hi @Alm_Info

Regarding the error with the invoice hash, please ensure that the XML being sent includes the same invoiceHash value as the one in the request body.