# invalid invoice hash

**URL:** <https://zatca1.discourse.group/t/invalid-invoice-hash/5538>\
**Category:** Onboarding, renewal and revocation\
**Created:** [January 30, 2025, 9:23am UTC](https://zatca1.discourse.group/t/invalid-invoice-hash/5538 "2025-01-30T09:23:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohrabus](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sohrabus](https://zatca1.discourse.group/u/sohrabus)\
**Post date:** [January 30, 2025, 9:23am UTC](https://zatca1.discourse.group/t/invalid-invoice-hash/5538/1 "2025-01-30T09:23:43Z")

</div>

I m getting this error , request to pls suggest.

---

<div class="post-metadata">

**Author:** ![halrashidy](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@halrashidy](https://zatca1.discourse.group/u/halrashidy)\
**Post date:** [January 30, 2025, 10:31am UTC](https://zatca1.discourse.group/t/invalid-invoice-hash/5538/2 "2025-01-30T10:31:03Z")

</div>

Dear @sohrabus

Thanks for reaching out.

if you are sending a standard invoice make sure to generate the hash by using this command:- fatoora -generateHash -invoice [invoice path] , then you must replace it with the first Digestvalue tag in the XML file.  
Otherwise, if you are sending simplified invoice you have to signing the invoice by using this command:- fatoora -sign -invoice [invoice path], in this step the hash value will be generated automatically.

Then after that you must change the invoice xml file to a JSON file by using this command :- fatoora -invoiceRequest -invoice [invoice path] , The Json file will be cerated with the invoiceHash,uuid and the invoice encoded.  
Then send this invoice through the endpoint.

For any Further support please don’t hesitate to reach out.

Thanks
