Businesses invoicing in Saudi Arabia must issue ZATCA-compliant e-invoices, and for an online store that means generating them correctly at the point of sale rather than reconciling afterwards. Building it into the order flow during development is substantially cheaper than retrofitting it once the store is live.
What ZATCA e-invoicing actually is
ZATCA is the Zakat, Tax and Customs Authority, and its e-invoicing programme, known as Fatoora, requires businesses in Saudi Arabia to issue invoices electronically in a specified structured format rather than as free-form documents or PDFs.
The programme has been rolled out in phases, with requirements tightening over time toward integration with ZATCA's own systems. The practical consequence for a business is that invoices need to be generated by a system that produces the required structure and data, not typed by hand.
Requirements and phase timelines change. Confirm your current obligations with ZATCA or your accountant. This article covers what it means for your website build, not your tax position.
Why this is a website problem, not just an accounting one
For a traditional business, invoicing happens in accounting software and the website is irrelevant. For an online store, the sale completes on your website, which means that is where the invoice needs to originate.
That has direct consequences for the build. The store needs to capture the right customer and tax data at checkout, generate a compliant invoice at the point the order is placed, store it, and make it available to both the customer and your accounting stack.
Where it touches the order flow
- Checkout, which must collect the fields a compliant invoice requires, including buyer tax details for B2B sales.
- Order confirmation, which is the point the invoice is generated.
- Customer account and order history, where the customer can retrieve the invoice.
- Refunds and partial refunds, which require credit notes rather than deleted invoices.
- The handoff to your accounting or ERP system, so numbers reconcile without manual work.
Integration options
There are broadly three routes, and the right one depends on what you already run.
- Through your existing accounting or ERP system, if it already has certified e-invoicing support. Usually the cleanest option, since compliance stays where your accountants already work.
- Through a certified e-invoicing service provider, which the store calls at the point of sale. Good middle ground for stores without a heavy ERP.
- Direct integration, which gives the most control and carries the most ongoing responsibility for keeping up with specification changes.
Why retrofitting costs more
Adding e-invoicing to a live store is more expensive than building it in, for three reasons. The checkout usually needs to change to capture additional fields, which touches the most conversion-sensitive part of the site. Historical orders need a decision about how they are handled. And there is normally a period of manual invoicing in between, which costs staff time and introduces errors.
If you are building or rebuilding a store and you invoice in Saudi Arabia, put this in the original scope. It is a known, boundable piece of work at that stage.
What to ask an agency
- Have you integrated ZATCA e-invoicing before, and with which provider or system?
- Where in the order flow is the invoice generated, and what happens if generation fails?
- How are refunds and credit notes handled?
- How do invoices reach our accounting system?
- Who is responsible for updates when the specification changes?




