ZATCA Unauthorized Error After CCSID Generation – CCSID Expiry

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

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?

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.

thank you Ibrahem, this was very help full