In order to support 600K invoices reporting per day, ClearTax designed a solution for bulk reporting of invoices. XML files are transferred from Customer’s central server to ClearTax cloud based E-invoicing platform through Secure File Transfer protocol (SFTP). We designed an architecture with 10+ concurrent connections to ZATCA to report invoices.
In order to decrease the TAT for reporting, we developed asynchronous reporting connectivity with SFTP based integration. 600K invoices can get reported on a continuous basis without waiting for the ZATCA acknowledgement. ClearTax platform also provided bulk status check APIs to get status of ZATCA acknowledgement in case of asynchronous reporting.
ClearTax cloud infrastructure was scaled to handle 100 TPS (transactions per second) to ensure 24 hours reporting SLA. The cloud platform is designed to autoscale during the peak seasons.
For 200M invoices per year, ~10TB storage is required on primary and DR sites. In Year 2, the archival will happen for the current year and past year invoices increasing the storage capacity to ~20 TB. ClearTax cloud platform provided 6 years of historical archival to the customer. The archival is optimized with hot/ cold storage based retrieval.
In very rare scenarios when the requests on ZATCA servers timeout or ZATCA servers are unavailable, ClearTax cloud platform developed auto retry logics to report invoices ZATCA. This helped customers get comfortable that the invoices are getting reported to ZATCA within 24 hours, with multiple retries in case of connectivity issues.
ClearTax cloud platform provided dashboards and reports to view success/failure reporting status of each invoice. The platform also provided features to modify failed XML files and resubmit to ZATCA - without going back to original POS system
ClearTax cloud platform is hosted inside the Kingdom of Saudi Arabia and complies with the data residency requirements by the government. The platform provides enterprise grade security and is compliant as per ISO and SOC2 certifications.