# ZATCA Unauthorized Error After CCSID Generation – CCSID Expiry

**URL:** <https://zatca1.discourse.group/t/zatca-unauthorized-error-after-ccsid-generation-ccsid-expiry/9360>\
**Category:** Onboarding, renewal and revocation\
**Created:** [December 17, 2025, 8:05am UTC](https://zatca1.discourse.group/t/zatca-unauthorized-error-after-ccsid-generation-ccsid-expiry/9360 "2025-12-17T08:05:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![odaij85](https://avatars.discourse-cdn.com/v4/letter/o/7ea924/32.png) [@odaij85](https://zatca1.discourse.group/u/odaij85)\
**Post date:** [December 17, 2025, 8:05am UTC](https://zatca1.discourse.group/t/zatca-unauthorized-error-after-ccsid-generation-ccsid-expiry/9360/1 "2025-12-17T08:05:43Z")

</div>

We generated the **CCSID** file and attempted to submit the first invoice. The communication with the server was successful; however, the invoice was not created due to missing mandatory information in the invoice data.

After leaving the system for two days, we returned to submit six invoices. At that point, we consistently started receiving the following error:

**Service communication error**  
**StatusCode:** Unauthorized  
**WebServiceUrl:** [https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation](https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation)

Is there an expiration period for the **CCSID** file? In other words, if the process is not completed and the **PCSID** is not generated within a certain timeframe, do we need to regenerate the **CCSID** again?

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [December 17, 2025, 8:13am UTC](https://zatca1.discourse.group/t/zatca-unauthorized-error-after-ccsid-generation-ccsid-expiry/9360/2 "2025-12-17T08:13:59Z")

</div>

Morning @odaij85

Thanks for reaching out. Kindly note that the CCSID will be valid for 24 hr from its creation; after that, it will be revoked.  
So you need to complete the onboarding process and obtain your PCSID on the same day of CCSID generation, or you will need to generate a new one.

I hope it’s clear enough now, please do not hesitate to reach out for any further clarification.

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![odaij85](https://avatars.discourse-cdn.com/v4/letter/o/7ea924/32.png) [@odaij85](https://zatca1.discourse.group/u/odaij85)\
**Post date:** [December 21, 2025, 1:53pm UTC](https://zatca1.discourse.group/t/zatca-unauthorized-error-after-ccsid-generation-ccsid-expiry/9360/3 "2025-12-21T13:53:06Z")

</div>

thank you Ibrahem, this was very help full
