Multi Q. PIH and Print

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

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) is final form ?

=standard invoice:=

Can print invoice to customer without Clearance ?

Is QR (that gererator by sdk.net) is final form ?

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

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

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 ?

Hi Mohammad,

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

Outlook-AEP.png

1 Like

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

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) ,It is ok without error

what can i do .?

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.

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”)