# getting error on clearance api

**URL:** <https://zatca1.discourse.group/t/getting-error-on-clearance-api/5540>\
**Category:** General\
**Created:** [January 30, 2025, 9:25am UTC](https://zatca1.discourse.group/t/getting-error-on-clearance-api/5540 "2025-01-30T09:25:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niloy](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@Niloy](https://zatca1.discourse.group/u/Niloy)\
**Post date:** [January 30, 2025, 9:25am UTC](https://zatca1.discourse.group/t/getting-error-on-clearance-api/5540/1 "2025-01-30T09:25:35Z")

</div>

{“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD\_ZATCA\_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:,“errorMessages”:[{“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”}],“status”:“ERROR”},“reportingStatus”:null,“clearanceStatus”:“NOT\_CLEARED”,“qrSellertStatus”:null,“qrBuyertStatus”:null}

---

<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:39am UTC](https://zatca1.discourse.group/t/getting-error-on-clearance-api/5540/2 "2025-01-30T10:39:44Z")

</div>

Dear @Niloy ,

Thank you for reaching out.

It appears that you are currently undergoing compliance checks to complete the onboarding.

- 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.

- Generate the JSON file for the invoice using fatoora -invoiceRequest -invoice [invoice path]

- After you prepared your invoices, you need to send the encoded invoices (JSON file) to one of the following APIs:

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

Thanks
