Skip to content
Nizam team5 min readRegional business

Preparing your business systems for e-invoicing in the region

An invoice sheet with item rows, a small code-like grid, a total bar and a yellow stamp.
In this article

Tax authorities across the region are moving from accepting invoices as documents to receiving them as structured data. Saudi Arabia has the most developed program so far, run by the Zakat, Tax and Customs Authority (ZATCA). Other countries, including Egypt, already operate e-invoicing systems, and the UAE has announced its own program built on a different technical model. The details differ, but the direction is the same: invoices become machine-readable records that the authority can validate or receive close to real time.

This article describes publicly known requirements in general terms to help you plan system work. It is not legal or tax advice. Authorities update their requirements, technical specifications and timelines, so always check the current official guidance and confirm your obligations with a qualified tax adviser.

What e-invoicing changes

In most businesses an invoice is something the ERP or the point-of-sale system prints or emails. Under an e-invoicing regime it becomes a regulated data object. Typically that means:

  • Invoices must be generated by a compliant electronic system, not typed in a word processor or written by hand.
  • They follow a defined structured format, in which every field has a fixed meaning and validation rules.
  • They carry security features that make tampering detectable, such as cryptographic stamps, hashes and QR codes.
  • Some invoices must be sent to the authority, either for approval before they reach the buyer or as a report shortly after they are issued.
  • Records must be kept, unaltered, for the required retention period.

Saudi Arabia's two phases

ZATCA introduced e-invoicing, known as FATOORA, in two phases.

Phase one, generation, took effect on 4 December 2021. VAT-registered taxpayers must issue and store invoices and related notes through an electronic solution. Simplified tax invoices, usually business-to-consumer sales, must carry a QR code. The rules also prohibit certain functions, such as allowing issued invoices to be altered or deleted, or allowing uncontrolled access to the solution.

Phase two, integration, began on 1 January 2023 and is being rolled out in waves. ZATCA selects the taxpayers in each wave, mainly by revenue thresholds, and notifies them of their integration date in advance. In this phase:

  • Invoices are produced in a structured XML format based on the UBL 2.1 standard.
  • Each invoice-generating unit is onboarded with ZATCA and receives a cryptographic stamp identifier, used to stamp the invoices it issues.
  • Each invoice carries a unique identifier, a counter value and the hash of the previous invoice, which chains invoices together so gaps or alterations can be detected.
  • Standard tax invoices, usually business-to-business, go through clearance: they are sent to ZATCA, validated and stamped before being shared with the buyer.
  • Simplified tax invoices go through reporting: they are shared with the customer at the point of sale and submitted to ZATCA within a set period after issue, currently 24 hours under the published rules.

Credit and debit notes follow the same path as the type of invoice they relate to.

What it means for your systems

The compliance logic is the visible part. The larger impact is usually on architecture and operations.

  • Invoicing becomes a service. If invoices are created in several places, such as the ERP, the POS, an online store and a field sales app, each source either has to become compliant or route through a single invoicing service.
  • Sequencing matters. Hash chaining and counters mean invoice creation in each unit must be strictly ordered. Concurrent creation, retries and offline modes need careful design so the chain is never broken.
  • The network becomes part of invoicing. Clearance means a business-to-business invoice cannot be issued until the authority responds. Plan for timeouts, retries, queues and clear status messages for staff.
  • Certificates have a lifecycle. Cryptographic material must be stored securely, renewed and revoked when a device is retired.
  • Archiving is a requirement. The submitted XML, stamps and responses must be stored and retrievable for audit. A PDF sent to a customer is a presentation of the invoice; the structured record is what you must keep.

Get the data right first

Many integration problems turn out to be data problems. A structured invoice exposes every gap in master data that a printed invoice could hide. Before touching the integration, check:

  • Customer records: VAT registration numbers, legal names and structured national addresses for business customers.
  • Product and service records: the correct VAT category, plus exemption or zero-rating reasons where they apply.
  • Your own seller and branch details, consistent across every system that issues invoices.
  • Credit note practice: every credit note linked to its original invoice, with a valid reason.
  • Rounding: line-level and invoice-level totals that follow the calculation rules in the specification.

Cleaning this data is unglamorous work and can take longer than the integration itself.

A practical preparation plan

  1. Map every invoice source. List every system and process that issues invoices, credit notes or debit notes, including manual ones.
  2. Check your vendors. Ask your ERP and POS providers whether their current version supports phase two and how it handles onboarding and clearance. Get the answer in writing.
  3. Decide the architecture. Upgrade each source separately, or route all of them through one invoicing service. For custom systems the second option is usually easier to maintain.
  4. Use the official test environments. ZATCA publishes technical specifications, a software development kit and simulation environments. Validate your XML and complete flows against them before production onboarding.
  5. Prepare operations. Define what staff do when clearance fails or the connection is down, who monitors rejected invoices and how certificates are renewed.
  6. Plan for change. Specifications are revised over time. Keep invoicing logic isolated so updates do not ripple through the whole system.

Businesses operating in more than one country should design for several regimes from the start. The common elements carry over even when formats and workflows differ: structured data, strict sequencing, secure storage and integration with an authority or a network. Treat each country's rules as a configuration of one invoicing capability rather than a separate project, and check each authority's current guidance before you build.