Sir
I am Getting Invoice INVOICE_HASHING_ERRORS Of The invoice hash API body does not match the (calculated) Hash of the XML When Post B2B Bill using ZATCA SDK dll in Simulation Stage. we are .NET 4.8 Version in EGS
Dear @Raseem
Kindly install the last version of the SDk.
Also, the hash should be calculated on the final version of the XML document after it has been signed. If you’re generating the hash before signing, the XML will change when signed, leading to a mismatch.
Kindly ensure you are correctly using the hash from the signed XML, not the unsigned version, The order should be:
- Generate the XML document.
- Sign the XML.
- Calculate the hash from the signed XML.
- Send the signed XML and the corresponding hash to the API.
If the issue still occurs, reach out with our support team via below emails:
E-invoicing@zatca.gov.sa
sp_support@zatca.gov.sa
Thank you.