409/208 Responses without any duplicates

Hi ZATCA Team,

Since the last month we have receiving periodic 208/409 responses for B2B and B2C documents. Based on the documentation and notices from ZATCA, this indicates that the same hash has been sent to the clearance/reporting portal in the last 24 hours.

I have however never found duplicates in our database where 2 documents share the same hash number, To help with the debugging I have added several logs and audit trails but to no avail. All my investigation has come to is that, the clearance and reporting API from ZATCA returns 208/409 reponses even though no such hash is ever present in the system before the time it was generated.

There is no pattern to this issue, sometimes it does not happen for a whole week, whereas other times it happens once or even twice in day. Requesting some help from the ZATCA team to provide some additional details on this in order close the issue. I am more than happy to share some of the information I have found during the debugging over email if you would like. Please let me know the next steps that can be done in order to proceed with fixing the problem.