# No Invoice hash in Clearance simulation API response

**URL:** https://zatca1.discourse.group/t/no-invoice-hash-in-clearance-simulation-api-response/2365
**Category:** Clearance and Reporting
**Created:** [August 11, 2024, 10:04am UTC](https://zatca1.discourse.group/t/no-invoice-hash-in-clearance-simulation-api-response/2365 "2024-08-11T10:04:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![itujar\_it](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@itujar\_it](https://zatca1.discourse.group/u/itujar_it)
#### Post date: [August 11, 2024, 10:04am UTC](https://zatca1.discourse.group/t/no-invoice-hash-in-clearance-simulation-api-response/2365/1 "2024-08-11T10:04:20Z")

</div>

When I am clearing a invoice using simulation API, the invoice gets cleared, but the response do not have invoiceHash in it.  
The response is:  
{  
“clearanceStatus”: “CLEARED”,  
“clearedInvoice”: “PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPEludm9pY2UgeG1sbnM9InVybjpvYXNpczpuYW1lczpzcGVjaWZpY2F0aW9uOnVibDpzY2hlbWE6eHNkOkludm9pY2UtMiIgeG1sbnM6Y2FjPSJ1cm46b2FzaXM6bmFtZXM6c3BlY2lmaWNhdGlvbjp1Ymw6c2NoZW1hOnhzZDpDb21tb25BZ2dyZWdhdGVDb21wb25lbnRzLTIiIHhtbG5zOmNiYz0idXJuOm9hc2lzOm5hbWVzOnNwZWNpZmljYXRpb246dWJsOnNjaGVtYTp4c2Q6Q29tbW9uQmFzaWNDb21wb25lbnRzLTIiIHhtbG5zOmV4dD0idXJuOm9hc2lzOm5hbWVzOnNwZWNpZmljYXRpb246dWJsOnNjaGVtYTp4c2Q6Q29tbW9uRXh0ZW5zaW9uQ29tcG9uZW50cy0y…”,  
“validationResults”: {  
“warningMessages”: ,  
“errorMessages”: ,  
“infoMessages”: [  
{  
“code”: “XSD\_ZATCA\_VALID”,  
“type”: “INFO”,  
“category”: “XSD validation”,  
“message”: “Complied with UBL 2.1 standards in line with ZATCA specifications”,  
“status”: “PASS”  
}  
],  
“status”: “PASS”  
}  
}

---

<div class="post-metadata">

### Author: ![eCloud](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/ecloud/32/629_2.png) [@eCloud](https://zatca1.discourse.group/u/eCloud)
#### Post date: [August 11, 2024, 10:10am UTC](https://zatca1.discourse.group/t/no-invoice-hash-in-clearance-simulation-api-response/2365/2 "2024-08-11T10:10:51Z")

</div>

@itujar_it ,  
InvoiceHash should still be the same as InvoiceHash in the payload you sent to server.

Or you can try opening it from cleared Invoice Content from the response you received from the server.

---

<div class="post-metadata">

### Author: ![Malik](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/malik/32/708_2.png) [@Malik](https://zatca1.discourse.group/u/Malik)
#### Post date: [August 12, 2024, 5:10am UTC](https://zatca1.discourse.group/t/no-invoice-hash-in-clearance-simulation-api-response/2365/3 "2024-08-12T05:10:36Z")

</div>

Hi, You have not shared full “clearedInvoice”: as if you will decode it you will have full signed XML and hash will be same you sent as if there was any difference in hash invoice was going to be rejected and not cleared… thanks

> [@itujar\_it](#):
>
> “PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPEludm9pY2UgeG1sbnM9InVybjpvYXNpczpuYW1lczpzcGVjaWZpY2F0aW9uOnVibDpzY2hlbWE6eHNkOkludm9pY2UtMiIgeG1sbnM6Y2FjPSJ1cm46b2FzaXM6bmFtZXM6c3BlY2lmaWNhdGlvbjp1Ymw6c2NoZW1hOnhzZDpDb21tb25BZ2dyZWdhdGVDb21wb25lbnRzLTIiIHhtbG5zOmNiYz0idXJuOm9hc2lzOm5hbWVzOnNwZWNpZmljYXRpb246dWJsOnNjaGVtYTp4c2Q6Q29tbW9uQmFzaWNDb21wb25lbnRzLTIiIHhtbG5zOmV4dD0idXJuOm9hc2lzOm5hbWVzOnNwZWNpZmljYXRpb246dWJsOnNjaGVtYTp4c2Q6Q29tbW9uRXh0ZW5zaW9uQ29tcG9uZW50cy0y…”,
