Issue with ZATCA API (401 Unauthorized Response)

Dear Team,

We are currently receiving a 401 Unauthorized response when calling the following endpoint, please your support to check this..

POST https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/invoices/clearance/single

ResponseCode:Authentication-Errors

Also please i have this question

Hello,

We have successfully submitted an invoice to ZATCA, and it has been accepted (valid status). However, we later noticed that the customer address information needs to be corrected.

Could you please advise on the correct approach in this case?

  • Is it allowed to issue a new invoice without line items (for correction purposes only) with the updated customer information?

  • Or is it mandatory to issue a credit note for the original invoice and then create a new corrected invoice?

We would appreciate your guidance on the proper procedure according to ZATCA regulations.

Thank you in advance.

If a simplified invoice doesn’t do anything, simply correct the address in future invoices.

If it’s a standard invoice, it depends on whether the buyer rejected the invoice due to an error in the information.

In this case, you need to issue a credit note with the same information as before, and then issue a standard invoice with the correct information.

When was the PCSID obtained?

It may require renewal if you obtained it two years ago.

Dear @Mohammad-Shurrab

Please Ensure that you Put the BinarinarySecurityToken and the secret generated from the PCSID steps inside the Authorization

I already passed it, but it seems it has expired, how can I create a new one or access it again ? in STG Env because It was working fine before @halrashidy