Dears ,
I’m facing a weird problem , when signing the invoice i’m getting sucessful message and the invoice hash . but the invoice hash is incorrect and it’s rejected when submitting to ZATCA API (invoice hash not matching the calculated hash) , however , when generating the hash for the same signed invoice , the hash genereated is correct . any explaination ?
below screenshot for the same . the correct hash is 6VUJWVzs/9rWUzGhw4VgEQIhRbec3IqItw1ekTk53sU=
and not ZF9UXdC7GSif4fsIhKeuxSyYD/A2YxPx3BFDZr7clbg=
.....\zatca-einvoicing-sdk-238-R3.3.5\zatca-einvoicing-sdk-238-R3.3.5\Lib\Dot-Net8\Test>fatooraNet sign -invoice Invoice_849_20241015142842.xml -signedInvoice hadi.xml
********************* Welcome to ZATCA E-Invoice .Net SDK 3.3.5 *********************
This App uses .Net to call the SDK passing it an invoice XML file.
It can take a Standard or Simplified XML, Credit Note, or Debit Note.
It returns if the validation is successful or shows errors where the XML validation fails.
It checks for syntax and content as well.
You can use the command (fatooraNet -help) for more information.
You can use the command (fatooraNet {Command} -help) for instructions on how to use the command and expected arguments.
*************************************************************************************
Invoice has been signed successfully
*** Invoice Hash = ZF9UXdC7GSif4fsIhKeuxSyYD/A2YxPx3BFDZr7clbg=
.....zatca-einvoicing-sdk-238-R3.3.5\zatca-einvoicing-sdk-238-R3.3.5\Lib\Dot-Net8\Test>fatooraNet generateHash -invoice hadi.xml
********************* Welcome to ZATCA E-Invoice .Net SDK 3.3.5 *********************
This App uses .Net to call the SDK passing it an invoice XML file.
It can take a Standard or Simplified XML, Credit Note, or Debit Note.
It returns if the validation is successful or shows errors where the XML validation fails.
It checks for syntax and content as well.
You can use the command (fatooraNet -help) for more information.
You can use the command (fatooraNet {Command} -help) for instructions on how to use the command and expected arguments.
*************************************************************************************
Invoice has been signed successfully
*** Invoice Hash = 6VUJWVzs/9rWUzGhw4VgEQIhRbec3IqItw1ekTk53sU=
Thanks .



