ERPNext

ERPNext in Saudi Arabia: ZATCA e-invoicing (FATOORA) explained

What ZATCA's two e-invoicing phases require, how clearance and reporting work, and how to make ERPNext compliant in Saudi Arabia.

Every VAT-registered business in Saudi Arabia must issue invoices electronically under ZATCA's e-invoicing programme, known as FATOORA. If you run ERPNext, or plan to, the good news is that it can meet these rules. Here is what the two phases require and how ERPNext handles them.

This article explains how the software works. It is not tax advice. Check your obligations and your wave with ZATCA and your tax advisor.

Phase 1: generation

Phase 1 has applied since 4 December 2021. Businesses must generate and store tax invoices and notes through a compliant electronic solution. Handwritten invoices, and solutions that do not meet the requirements, are not allowed. Simplified (B2C) invoices carry a QR code that the buyer can scan with ZATCA's VAT app.

Phase 2: integration

Phase 2 started on 1 January 2023 and is rolled out in waves. ZATCA tells each group of taxpayers which wave they are in at least six months in advance. In Phase 2 your invoicing system must connect to ZATCA's FATOORA platform and produce invoices in the required structured format, XML or PDF/A-3 with the XML embedded.

The process depends on the invoice type:

  • Tax invoices (usually B2B) go through clearance. Your system sends the invoice to ZATCA, ZATCA validates and clears it, and only then is it shared with the buyer.
  • Simplified tax invoices (usually B2C) go through reporting. You give the invoice to the customer straight away and report it to ZATCA within 24 hours.

ZATCA also lists things you must not do, such as deleting e-invoices after generating them or using a non-compliant solution.

How ERPNext handles ZATCA

Standard ERPNext already holds the data an e-invoice needs: VAT numbers, addresses, items, tax lines and totals. Phase 2 compliance is added with a ZATCA integration app. There are open-source ZATCA apps for ERPNext, and we set them up or build what a business needs on top. A compliant setup covers:

  1. Onboarding each invoicing unit or point of sale with ZATCA.
  2. Generating the structured invoice with the required fields, the QR code and the cryptographic details ZATCA asks for.
  3. Clearing B2B invoices before they reach the customer, and reporting B2C invoices within 24 hours.
  4. Storing ZATCA's response on each invoice, so you can see what was cleared, reported or rejected.
  5. Retrying automatically when the connection fails, so nothing is missed.
  6. Arabic and English print formats that show everything the invoice must show.

Before you go live

  • Check your Phase 2 wave on ZATCA's site and plan back from the date.
  • Clean customer data: VAT numbers, legal names and national addresses for B2B buyers.
  • Test every invoice type you use: standard and simplified invoices, credit and debit notes, and exports.
  • Train staff on what to do when an invoice is rejected.

Need help?

We build and set up e-invoicing integrations for ERPNext, and have taken e-invoicing live in other countries, such as Turkey through Nilvera. See our integrations service, read about ERPNext in the UAE, or book a free 30-minute ERP check.

Planning an ERPNext project?

Talk to an ERPNext consultant. We will review your requirements and send a fixed-price proposal.

Book a discovery call

Ready to run your business on one connected ERP?

Book a free 30-minute discovery call. We will map your processes, answer your questions and send a fixed-price proposal, with no obligation.