Invoice Hash doesn't equal calculated invoice hash

Hello, I am trying to pass clearance, and right now I’m trying to generate the invoice hash
I followed the technical guideline

  1. I removed the tags mentioned
  2. I removed the xml version
  3. I canonicalized the xml using an online tool
  4. I generated the hash with sha256sum
  5. encoded it in base64
  6. Inserted in invoicehash in api

also is there a way to do this in the SDK? to cross reference my values with that one

You can use FatooraNet to Generate the Invoice Hash.
You can find it in SDK\Lib.Net\Test
You may need to Update the PIH, Certificate and Private Key as well Located in
SDK\Data\Certificates
SDK\Data\PIH

Dear @Ather ,

1- if it’s simplifed invoice, please sign the invoice using SDK with this command: fatoora -sign -invoice [name.xml] . this command will automatically generate invoice hash & replace it in the XML.

2- if it’s standard invoice, please generate hash using the command fatoora -generatehash -invoice [name.xml], then replace the generated invoice hash manually wiith the first digestvalue in your standard invoice XML.body.

Thanks

Sign E-Invoice using fatooraNet

Description
Signing E-Invoice contains the next steps: - Generating Hashing - Generating Signature - Populating Data - Generating and populating QR

Usage

fatooraNet sign -invoice [REQUIRED E-Invoice file path] -signedInvoice [Signed E-Invoice file path - OUTPUT] -certificate [Certificate File Path] -privateKey [Private Key file path]