Subject: Invalid Invoice Hash error in Invoice Clearance
Dear Sir,
While attempting to clear an invoice I’m getting below error:
{“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”}
Our hash retrieving process:
- Finding most recent successful invoice hash from our database.
If there is no previous hash, we use a default value (base64_encode(hash(‘sha256’, ‘0’, true))).
Can you please check why the calculated hash is not agreeing with what is being sent in XML?
Please check & help us with this issue
Thank you