There are multiple invoices that have failed with the error ‘The invoice hash API body does not match the (calculated) Hash of the XML’.
We have verified the hash of all the invoices and they all are correct. Retried submitting the same invoice 12 times and they are still in rejected state.
Please suggest how to resolve this error and how many retries ideally are required for resolving this error.
There are other error codes which are resolved upon retrying but the number if retries is not always consistent i.e. sometime they get resolved with 3 retries while sometimes they get resolved with 5-6 or more retries.
“The invoice hash API body does not match the (calculated) Hash of the XML” - This is the error message. I have verified and the calculated hash matches with the invoice hash in the API body.
Hi. I have the same issue previously and I got this problem when submitting invoice with arabic text. make sure that your xml is properly converted into UTF8 before hashing it and the same xml in UTF8 is submitted. you can try using postman to check and use this link (https://www.base64encode.org/) to convert your xml to UTF8. Please let me know if you got it fix
Dear @rcamartin
please note that hashing is working fine with invoices containing arabice or english text,
please share with us the invoice to investigate it more.
Like I’ve said, we manage to fix the issue after we got a meeting with our RM and we found out that the xml were submitting were not in UTF8 format which clears our issue. It might be the same problem they are facing.