# Query regarding PIH in XML

**URL:** <https://zatca1.discourse.group/t/query-regarding-pih-in-xml/9071>\
**Category:** General\
**Created:** [November 10, 2025, 8:52am UTC](https://zatca1.discourse.group/t/query-regarding-pih-in-xml/9071 "2025-11-10T08:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeetZambre](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@MeetZambre](https://zatca1.discourse.group/u/MeetZambre)\
**Post date:** [November 10, 2025, 8:52am UTC](https://zatca1.discourse.group/t/query-regarding-pih-in-xml/9071/1 "2025-11-10T08:52:27Z")

</div>

While submitting Standard invoice, which previous invoice hash(PIH) needs to be used in XML for next invoice? Do we need to use hash we get from zatca after submitting invoice or we need to generate our own hash each time before submitting invoice or is there anything else ?  
Also do we need to maintain order of hash incase previous invoice is rejected ?

---

<div class="post-metadata">

**Author:** ![mnuaimi](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mnuaimi](https://zatca1.discourse.group/u/mnuaimi)\
**Post date:** [November 11, 2025, 12:18pm UTC](https://zatca1.discourse.group/t/query-regarding-pih-in-xml/9071/2 "2025-11-11T12:18:49Z")

</div>

After successful clearance by Zatca, the invoice hash remains unchanged. However, you need a QR code. If you are developing on the .Net environment, let me know and I will give you the appropriate code.
