# 401 Unauthorized Error : Reporting API

**URL:** <https://zatca1.discourse.group/t/401-unauthorized-error-reporting-api/8362>\
**Category:** General\
**Created:** [September 8, 2025, 8:05am UTC](https://zatca1.discourse.group/t/401-unauthorized-error-reporting-api/8362 "2025-09-08T08:05:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://zatca1.discourse.group/u/Abhishek)\
**Post date:** [September 8, 2025, 8:05am UTC](https://zatca1.discourse.group/t/401-unauthorized-error-reporting-api/8362/1 "2025-09-08T08:05:57Z")

</div>

Hi Everyone,

Yesterday, I received an _Unauthorized (401)_ error on some random API calls. However, when I resynced the same invoice, it was accepted successfully. I would like to confirm: if I encounter a 401 error, should I re-use the same ICV or generate a new one?

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [September 8, 2025, 8:08am UTC](https://zatca1.discourse.group/t/401-unauthorized-error-reporting-api/8362/2 "2025-09-08T08:08:54Z")

</div>

whenever you resubmit an invoice, you should keep all the content exactly same including ICV, PIH, UUID and hash.

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://zatca1.discourse.group/u/Abhishek)\
**Post date:** [September 8, 2025, 10:00am UTC](https://zatca1.discourse.group/t/401-unauthorized-error-reporting-api/8362/3 "2025-09-08T10:00:49Z")

</div>

Thank you @Ankit.K.Tiwari

I have one more case to clarify. If I receive a 400 error, should I use a new ICV along with a new PIH (last synced bill hash), or a new ICV with the same PIH?

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [September 8, 2025, 10:02am UTC](https://zatca1.discourse.group/t/401-unauthorized-error-reporting-api/8362/4 "2025-09-08T10:02:32Z")

</div>

@Abhishek when you receive a 400 error, you will have to fix the issue(s) which results in 400 error(s) and corrected invoice should have a new ICV, UUID, PIH and hash.
