Hello ZATCA Developer Community,
We are integrating our system with ZATCA Phase 2 e‑Invoicing API for more than 50 customers.
Sometimes, when submitting invoices, we get 502 / 504 timeout errors. The issue is that if we retry the submission after a timeout, we sometimes get a duplicate invoice error, which suggests that the invoice may have already been processed even though our system did not receive the response.
We would like guidance on:
-
How to check if an invoice has already been received and processed by ZATCA after a timeout.
-
If there is an official API to get the last status or response of a submitted invoice.
-
The recommended procedure for safely resubmitting invoices to avoid duplicates.
Since we manage e‑invoicing for 50+ customers, it’s critical for us to handle timeouts and retries correctly. Any tips, examples, or references from official documentation would be very helpful.
Thank you!
CC: @Ankit.K.Tiwari @idaoud