Submitted Invoice details

Hi Zatca Team,

Most of our customers are asking how to retrieve the data submitted to ZATCA, and they also want to verify whether all compliance requirements—such as iCV, PIH single chain, correct hashing, etc.—have been properly followed.

Currently, we save the ZATCA responses in our database. However, if a system error occurs between the API call and the database save operation, the response may not be recorded.

As a software vendor, we regularly review the logs on a weekly or biweekly basis to ensure system integrity. However, from a taxpayer’s perspective, they are generally unaware of technical aspects such as hashing, iCV, and PIH, which makes it difficult for them to verify compliance on their own.

Could you please suggest a reliable approach to retrieve the submitted data from ZATCA in such cases, so that both technical and non-technical stakeholders can ensure all compliance validations are in place?
Thank you

1 Like

Dear @mohan_manakkal,

Currently, no direct way available to retrieve the XML data submitted to ZATCA, therefore, as you have mentioned, your solution should store such data and all of the generated XML invoices, even that the invoice submission was not sucessfull with “400” errors, it should be stored as it will affect the chain of the ICV & PIH.

For the non technical users, you can prevent them from editing any technical identifier as this should be generated automatically from your solution, they should only be able to amend the business details and the content of the invoice itself, not the technical identifiers as they should be generated dynamically. however, if a user has generated an invoice it should be stored in thier solution, and then you can track that invoice from the invoiceHash in example to see wheter it’s sucesfully submitted to ZATCA or not.

I hope this clarifies your concerns, if you have any other questions, please don’t hesitate to reach out.

1 Like