E-invoicing in Saudi Arabia (ZATCA)
How OmniBooks issues ZATCA Phase 2 e-invoices: onboarding with a one-time code, standard and simplified invoices, credit and debit notes, other currencies, till receipts, clearance and reporting, the QR code, rejections, and what is not built yet.
Saudi Arabia's e-invoicing (ZATCA Phase 2, "integration") applies to almost every VAT-registered business: the latest group must be connected to ZATCA's Fatoora platform by 1 February 2027. OmniBooks connects to Fatoora directly: no service provider is needed.
What happens to an invoice
When you post a sales invoice, credit note or debit note, OmniBooks builds the e-invoice in ZATCA's format, signs it with your company's own key, gives it the next number in its chain (the invoice counter and the previous invoice's hash), and sends it in the background:
- Standard tax invoices go to customers with a Saudi VAT number. ZATCA must clear them first: the invoice panel says Waiting for clearance until it is Cleared, and OmniBooks will not email it to the customer before that. The printed invoice then carries the QR code from the cleared copy.
- Simplified invoices go to everyone else (individuals and customers without a VAT number). They are valid when issued, print their QR code straight away, and are reported to ZATCA (within minutes; the rule is 24 hours).
Which kind an invoice is follows from the customer: a valid Saudi VAT number (15 digits, starting and ending with 3) makes it standard.
Credit notes (type 381) and debit notes (type 383) name the original invoice and carry the reason you chose; they are standard or simplified like the invoice they belong to. See Credit notes and debit notes.
The Download XML button, the email attachment and the customer's view link give the copy that was actually sent (or, for standard invoices, the copy ZATCA cleared).
Before you start
- Settings → Company: the VAT number, the CR number and the national address: street, building number (4 digits), district, city and postal code (5 digits).
- Customers with a VAT number need their national address too (Contacts → edit: building number and district appear for Saudi companies).
- Settings → Tax codes: exempt and zero-rated codes need a Saudi reason (VATEX-SA-…).
- Invoices may be in SAR or another currency (see below).
Invoices in other currencies
You can invoice a Saudi customer in another currency, for example USD. The e-invoice is in that currency, and also states the VAT total in SAR as ZATCA requires: it is the VAT booked in your books, at the invoice's exchange rate (shown under Accounting on the invoice and on the printed copy). The QR code shows the totals in the invoice currency. Your company's books must be in SAR.
Onboarding
You need the tax.manage permission.
- Get a one-time code (OTP) from the Fatoora portal: on fatoora.zatca.gov.sa for production, or the simulation portal for testing. It is valid for one hour.
- Open Settings → Tax connections, choose the Fatoora portal (Simulation, Production, or the public Developer sandbox, whose code is 123345), type the code and select Onboard with ZATCA.
- OmniBooks makes a new key and certificate request, gets a compliance certificate, runs ZATCA's compliance checks on six documents (standard and simplified invoices, credit notes and debit notes), then receives the production certificate. The results are listed; it takes about half a minute.
From then on every posted sales invoice, credit note and debit note is signed and sent. The card shows the unit's serial, how many invoices it has signed and when its certificate expires. Pause sending stops new submissions; Onboard again starts a new unit and a new chain (for example when the certificate is about to expire).
Till receipts
In a Saudi company every till sale is a simplified invoice. Once the back office is onboarded, OmniBooks signs each sale when it completes, prints the QR code on the receipt and reports the sale to ZATCA in the background, like a simplified invoice from the back office.
- Exchanges: ZATCA accepts only positive amounts, so a sale that both sells and takes goods back becomes two documents: a simplified invoice for what was sold (the receipt number) and a simplified credit note for what came back (the receipt number with
-R), which names the receipt the goods were sold on. The receipt prints both QR codes, labelled Sale and Return. - Returns on their own are a credit note under the receipt's number. A return without a receipt cannot name the original sale; ZATCA accepts it with a warning.
- Gift vouchers and tips are reported as outside the scope of VAT; zero-rated and exempt items carry their tax code's Saudi reason.
- Charge to account sales are not signed at the till: their sales invoice is, when it posts.
- Offline sales are signed when the till uploads them. The receipt printed offline says the QR code is added later; print it again from the till's receipts once the till is back online.
A unit per register
ZATCA expects each device that issues invoices to be its own unit. Under Settings → Tax connections, the ZATCA card lists your till registers: until a register is onboarded, its receipts are signed by the back-office unit. Onboard register takes a new one-time code from the same Fatoora portal as the back office and runs the compliance checks on the three simplified document types. From then on the register signs with its own certificate and its own invoice chain, and its receipts are sent with that certificate. Onboarding a register again starts a new chain for it.
Rejections
ZATCA's rules run on every invoice. A rejected invoice shows ZATCA's reasons (for example BR-KSA-37) in the panel and in Settings → Tax connections. It stays in your books as posted: fix the cause (usually an address or a VAT number), then issue a credit note for it and a corrected invoice. If ZATCA could not be reached, OmniBooks tries again for about four hours; after that, Retry it from the list.
Strict mode
Settings → Company → Strict e-invoicing (ZATCA) refuses to post an invoice that is missing something a ZATCA e-invoice needs, instead of letting ZATCA reject it later.
The VAT return itself is prepared from your books: see Saudi VAT return.
Not built yet
- Supplier-side debit notes (debit notes are for sales; for a supplier, record a supplier credit or a new bill).
- The SFDA's RSD pack reporting and Wasfaty e-prescriptions for Saudi pharmacies.
- Filing the VAT return with ZATCA: OmniBooks works out the Saudi VAT return; you file it on the ZATCA portal and record it here.