# Multi Q. PIH and Print

**URL:** <https://zatca1.discourse.group/t/multi-q-pih-and-print/1734>\
**Category:** Clearance and Reporting\
**Created:** [June 2, 2024, 1:44pm UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734 "2024-06-02T13:44:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)\
**Post date:** [June 2, 2024, 1:44pm UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/1 "2024-06-02T13:44:40Z")

</div>

بسم الله الرحمن الرحيم  
السلام عليكم ورحمة الله وبركاته

Dear Zatca Support Dev. Team  
This first topic  
Please advise me regarding the following questions:

Is PIH used for verify only ?

Can we set PIH each invoice signed or each invoice sent for Zatca Portal ?

## =simple invoice:=

Can print invoice to customer without PIH ?

Is QR (that gererator by [sdk.net](http://sdk.net)) is final form ?

## =standard invoice:=

Can print invoice to customer without Clearance ?

Is QR (that gererator by [sdk.net](http://sdk.net)) is final form ?

Is “clearedInvoice” (that return from API Clearance) is different ?

---

<div class="post-metadata">

**Author:** ![jepperly](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jepperly](https://zatca1.discourse.group/u/jepperly)\
**Post date:** [June 3, 2024, 10:59am UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/2 "2024-06-03T10:59:23Z")

</div>

Hi @Mohammad.Baker, as per my knowledge,

## =standard invoice:=

A. Can print invoice to customer without Clearance ? No, all B2B invoices must be cleared before sharing it to customers.

B. Is QR (that gererator by [sdk.net](http://sdk.net)) is final form ? you get the QR from the cleared invoice.

C.. Is “clearedInvoice” (that return from API Clearance) is different ? the clearedinvoice contains the Signed Stamp and QR code.

---

<div class="post-metadata">

**Author:** ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)\
**Post date:** [June 3, 2024, 11:33am UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/3 "2024-06-03T11:33:02Z")

</div>

**Thanks** ,  
Q.) When used API Clearance ,is must be call one by one because hash to be PIH used the next !! , so( not mutlicall api in same time) , Is Correct ?

---

<div class="post-metadata">

**Author:** ![jepperly](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jepperly](https://zatca1.discourse.group/u/jepperly)\
**Post date:** [June 3, 2024, 2:27pm UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/4 "2024-06-03T14:27:32Z")

</div>

Hi Mohammad,

Yes, API Clearance support single document only, and PIH is based on the last submitted document of that device.

![Outlook-AEP.png](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/1X/dc4972e697a6a48e37535ca222a645c9c0195477.png)

---

<div class="post-metadata">

**Author:** ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)\
**Post date:** [June 3, 2024, 3:02pm UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/5 "2024-06-03T15:02:23Z")

</div>

Many Thanks,

I have proplem for Compliance Invoice  
status connection is 400 , by use Gate Developer [https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices](https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices)

One Error Return  
invalid-invoice-hash (“The invoice hash API body does not match the (calculated) Hash of the XML”)

**body**  
{“invoiceHash”:“7IAm+Hn4nLdLfC6VyuxgH17DLLxEG7ZsUOhTkCNVNig=”,“uuid”:“E4744928-43F9-4DE1-A360-9B2C898BF1FD”,“invoice”:“PD94…”}

i read more for slove like use manule  
Fatoora -invoicerequest -invoice file1.xml

result same that we used

also use TestXml([Zatca](https://sandbox.zatca.gov.sa/TestXML)) ,It is ok without error

what can i do .?

---

<div class="post-metadata">

**Author:** ![jepperly](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jepperly](https://zatca1.discourse.group/u/jepperly)\
**Post date:** [June 4, 2024, 4:41am UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/6 "2024-06-04T04:41:12Z")

</div>

Hi Mohammad,

I did experience that also using the fatoora cli command, what I did I use the SDK .NET API provided by ZATCA, the hash returned by the NET API is what I am using and it solved my problem.

---

<div class="post-metadata">

**Author:** ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)\
**Post date:** [June 4, 2024, 5:20am UTC](https://zatca1.discourse.group/t/multi-q-pih-and-print/1734/7 "2024-06-04T05:20:13Z")

</div>

> [@jepperly](#):
>
> I did experience that also using the fatoora cli command, what I did I use the SDK .NET API provided by ZATCA, the hash returned by the NET API is what I am using and it solved my problem.

i used .net for sign , but when send to zatca return error "invalid-invoice-hash "(“The invoice hash API body does not match the (calculated) Hash of the XML”)
