Compliance · Saudi Arabia
ZATCA e-invoicing explained: Phase 1, Phase 2 and your wave deadline
A practical guide to Saudi Arabia's FATOORA e-invoicing programme: how the waves work, which invoices are cleared and which are reported, what the QR code contains, and which steps RaqamBooks covers versus which you complete with ZATCA. Last verified 3 December 2026.
Last updated:
Published:
Phase 1 vs Phase 2: generation and integration
In shortZATCA's FATOORA programme has two phases. Phase 1 (Generation) has applied since 4 December 2021: invoices must be structured electronic documents, handwritten or manual invoices are not allowed, and simplified (B2C) invoices carry a QR code. Phase 2 (Integration) adds clearance or reporting to ZATCA and applies to taxpayers in waves.
Phase 1 is about how an invoice is produced and stored. Phase 2 is about connecting your invoicing system to ZATCA. A business can be fully Phase 1 compliant and still not have reached its Phase 2 wave. ZATCA notifies each wave in advance, at least about six months before the integration deadline, so use that period to test.
| Aspect | Phase 1 (Generation) | Phase 2 (Integration) |
|---|---|---|
| Status | In force since 4 December 2021 | Rolled out in waves by taxable turnover |
| Invoice requirement | Structured electronic invoice; no handwritten or manual invoices | UBL 2.1 XML with a cryptographic stamp, hash chain, UUID and counter |
| Contact with ZATCA | Not part of Phase 1, which covers generation | Clearance for standard invoices, reporting within 24 hours for simplified invoices |
| QR code | On simplified (B2C) invoices, tags 1 to 5 | Tags 6 to 9 are added |
| Arabic content | Required on invoices | Required on invoices |
Waves and deadlines: Wave 24 and Wave 25
In shortZATCA moves taxpayers into Phase 2 in waves based on taxable turnover. The Wave 24 integration deadline was 30 June 2026. Wave 25 was announced on 24 July 2026 with an integration deadline of 1 February 2027, for taxpayers whose taxable turnover exceeded SAR 187,500 in any year from 2022 to 2025. Check your wave in the ZATCA portal.
Check the status ZATCA shows for your VAT number in the ZATCA portal; do not rely on a vendor's or consultant's reading of the threshold. A single year above or below SAR 187,500 within 2022 to 2025 can change the answer.
Treat the deadline as the date your integration must already be live, not the date to start. Onboarding, test invoices and staff training all need time before it.
| Wave | Integration deadline | Selection criterion | Position on 3 December 2026 |
|---|---|---|---|
| Wave 24 | 30 June 2026 | As notified to you by ZATCA; confirm the criterion on zatca.gov.sa | Deadline has passed |
| Wave 25 (announced 24 July 2026) | 1 February 2027 | Taxable turnover above SAR 187,500 in any year from 2022 to 2025 | Deadline upcoming, about two months away |
Clearance for B2B and B2G, reporting for B2C
In shortUnder Phase 2, standard tax invoices issued to businesses or government (B2B and B2G) are cleared by ZATCA in real time before being issued to the buyer. Simplified tax invoices issued to consumers (B2C) are reported to ZATCA within 24 hours of issuance. The invoice type decides whether you wait for ZATCA or report afterwards.
| Aspect | Standard tax invoice | Simplified tax invoice |
|---|---|---|
| Typical customer | Business or government (B2B, B2G) | Consumer (B2C) |
| ZATCA step | Clearance | Reporting |
| Timing | In real time, before the invoice is issued to the buyer | Within 24 hours of issuance |
| Typical sales channel | Sales invoices to account customers | Counter sales and POS receipts |
| Effect of a lost connection | Needs a connection to ZATCA at the moment of issue | The 24-hour window allows reporting after a short outage |
Invoice format: UBL 2.1 XML, PDF/A-3 and the cryptographic stamp
In shortA Phase 2 invoice is a UBL 2.1 XML document; the human-readable PDF/A-3 version embeds that XML. Each invoice also carries a cryptographic stamp from ZATCA onboarding (the CSID), the hash of the previous invoice, a UUID and an invoice counter. Arabic content is required, and bilingual Arabic and English invoices are common.
Arabic is required on invoices. Seller and buyer names, addresses and item descriptions are stored as UTF-8 text, so Arabic names are handled normally, and bilingual layouts are common practice. Onboarding steps and certificate details are defined in ZATCA's technical documentation; confirm the current version on zatca.gov.sa before you build or buy an integration.
RaqamBooks bilingual Arabic and English tax invoice with a QR code
Add file: /screenshots/invoice-ar-screen.webp · Size 1600 × 900
| Element | What it is | Purpose |
|---|---|---|
| UBL 2.1 XML | The structured, machine-readable invoice | The record that ZATCA's systems read |
| PDF/A-3 | An archival PDF format that can embed the XML file | The human-readable invoice with the data inside it |
| Cryptographic stamp (CSID) | A certificate obtained through ZATCA onboarding and used to sign each invoice | Lets ZATCA check who issued the invoice and that it was not altered |
| Invoice hash and previous invoice hash (PIH) | A fingerprint of the invoice, plus the fingerprint of the one before it | Chains invoices so a missing or edited one can be detected |
| UUID | A unique identifier for each invoice | Prevents duplicates |
| Invoice counter (ICV) | An incrementing sequence number | Shows the order in which invoices were issued |
The ZATCA QR code: TLV tags 1 to 9
In shortThe ZATCA QR code is a Base64 string made of TLV records (tag, length, value). Tags 1 to 5 hold seller name, VAT registration number, timestamp, invoice total including VAT and VAT amount. Phase 2 adds tags 6 to 9: invoice hash, ECDSA digital signature, public key and certificate signature. Text values are UTF-8.
Tags 6 to 9 depend on the cryptographic stamp, so a QR generator alone cannot produce them; a code with tags 1 to 5 only is the Phase 1 format. To see how tags 1 to 5 are encoded, try the ZATCA QR generator. RaqamBooks generates ZATCA-format TLV Base64 QR codes on invoices and receipts.
| Tag | Content | Introduced in | Notes |
|---|---|---|---|
| 1 | Seller name | Phase 1 | UTF-8 text; Arabic names are normal |
| 2 | VAT registration number | Phase 1 | 15 digits |
| 3 | Timestamp | Phase 1 | Date and time of the invoice |
| 4 | Invoice total including VAT | Phase 1 | Exact to the halala (2 decimals) |
| 5 | VAT amount | Phase 1 | Same precision as the total |
| 6 | Invoice hash | Phase 2 | Ties the QR code to the signed invoice |
| 7 | ECDSA digital signature | Phase 2 | Produced with the stamping key |
| 8 | Public key | Phase 2 | Used to verify the signature |
| 9 | Certificate signature | Phase 2 | Included in the Phase 2 QR code |
Common rejection causes and a readiness checklist
In shortTypical clearance or reporting rejections come from invoice data that breaks the rules: totals that do not add up, missing or invalid VAT numbers, a broken hash, counter or UUID sequence, or a bad certificate. A short checklist completed before your wave deadline helps prevent most of them. Confirm exact error codes in ZATCA's technical documentation.
Common causes of rejection (conceptual)
| Cause | What goes wrong | How to reduce the risk |
|---|---|---|
| Totals do not reconcile | Line amounts, VAT and the invoice total differ by a halala because rounding is inconsistent | Use exact 2-decimal arithmetic and one rounding rule |
| VAT numbers | Seller or buyer VAT number missing, mistyped or the wrong length (VAT numbers are 15 digits) | Check customer VAT numbers when you create the customer record |
| Sequence problems | A repeated UUID or counter, or a previous-invoice hash that does not match | Issue from one onboarded device per sequence, and take care before restoring an older backup on it and issuing again |
| Certificate | An expired, revoked or wrong-environment stamping certificate | Track the expiry date and renew before it lapses |
| Computer clock | An invoice timestamp that is wrong because the clock is off | Keep the computer's date and time set automatically |
| Missing Arabic content | Arabic seller details or invoice text are blank | Complete the Arabic company name and address and use a bilingual template |
| Credit and debit notes | A note that is not linked to the original invoice | Create each note from the original invoice so the reference carries over |
Readiness checklist before your wave deadline
Confirm your wave and deadline in the ZATCA portal.
Enter your 15-digit VAT number and your Arabic and English company name and address in Settings → Company and Settings → Tax / VAT.
Check that Settings → Currency & Decimals is SAR with 2 decimals, and agree one rounding rule with your accountant.
Choose a bilingual Arabic and English invoice template in Settings → Templates and print a test invoice.
Collect the VAT numbers of every B2B and B2G customer.
Choose your integration route, onboard each issuing device with ZATCA and keep a record of certificate expiry dates.
Test with sample invoices before the first live day: a standard invoice, a simplified invoice and a credit note.
Set up a routine in Settings → Backup & Restore, and agree who may restore data on an onboarded device.
Train staff to issue credit notes from the original invoice.
What RaqamBooks does and what you do
In shortRaqamBooks generates bilingual PDF invoices, UBL 2.1 XML, ZATCA-format TLV Base64 QR codes and linked credit or debit notes, and archives issued documents locally. Onboarding in ZATCA's Fatoora portal, clearance, reporting and confirming your wave are separate steps you complete with ZATCA or an integration provider. This site makes no claim of ZATCA approval.
| Area | Built into RaqamBooks | Your step or a third party's |
|---|---|---|
| Invoice document | Bilingual English and Arabic PDF invoices and structured UBL 2.1 XML output | Check your Arabic company details and template before issuing |
| QR code | ZATCA-format TLV Base64 QR code on invoices and receipts | Phase 2 tags 6 to 9 depend on the cryptographic stamp from onboarding |
| Credit and debit notes | Notes linked to the original invoice | Issue them in line with ZATCA's rules for your invoice type |
| Amounts and VAT | Exact SAR 2-decimal amounts and VAT return reports | Agree a rounding rule with your accountant and file the VAT return with ZATCA |
| Archive and backup | Local archive of issued documents; local backup and restore | Decide how long to keep records and confirm ZATCA's rules |
| Onboarding and certificate (CSID) | Not claimed as built in | You complete onboarding in ZATCA's Fatoora portal and manage the certificate |
| Clearance and reporting | Not claimed as built in; check the changelog or ask support for the current Phase 2 status | You, or an integration provider, send standard invoices for clearance and report simplified invoices within 24 hours |
| Wave and deadline | — | You confirm your wave and deadline in the ZATCA portal |
Sources to check
In shortCheck every date and rule on this page against ZATCA's own publications, because deadlines and technical specifications change. The authoritative source is zatca.gov.sa, including its FATOORA e-invoicing pages, wave announcements and technical documentation. This page was last verified on 3 December 2026 and is general information, not legal or tax advice.
ZATCA website
https://zatca.gov.sa: FATOORA e-invoicing pages, wave announcements, technical specifications and QR code guidelines.
ZATCA portal
Your taxpayer account shows which wave applies to your VAT number and the notice period for it.
Related guides on this site
See GCC VAT accounting for rates and rounding, and the Saudi Arabia country page for the wider picture.
Frequently asked questions
What is the difference between ZATCA Phase 1 and Phase 2?
Phase 1 (Generation), in force since 4 December 2021, requires structured electronic invoices, bans handwritten or manual invoices and requires a QR code on simplified invoices. Phase 2 (Integration) adds clearance of standard invoices and reporting of simplified invoices to ZATCA, with a cryptographic stamp, hash chain, UUID and counter, in waves.
Which taxpayers are in Wave 25?
Wave 25 was announced on 24 July 2026 with an integration deadline of 1 February 2027. It covers taxpayers whose taxable turnover exceeded SAR 187,500 in any year from 2022 to 2025. Your own status is shown in the ZATCA portal, so check it there rather than relying on this summary.
Do I have to send every invoice to ZATCA in real time?
No. Under Phase 2, standard tax invoices (B2B and B2G) are cleared by ZATCA in real time before they are issued to the buyer, while simplified tax invoices (B2C) are reported within 24 hours of issuance. Which rule applies depends on the invoice type and on whether your wave deadline has been reached.
What does RaqamBooks do for ZATCA e-invoicing, and what does it leave to me?
RaqamBooks generates bilingual PDF invoices, UBL 2.1 XML, ZATCA-format TLV Base64 QR codes and linked credit and debit notes, and archives issued documents locally. Onboarding with ZATCA, clearance, reporting and your wave deadline are separate steps. ZATCA does not issue a certified-software badge, and RaqamBooks claims none.
Can the POS keep selling offline once Phase 2 applies?
Billing runs on the local computer, so a lost connection does not stop the till. Simplified invoices have a 24-hour reporting window, which allows reporting after a short outage. Standard invoices must be cleared before issue, so they need a connection to ZATCA at that moment. Confirm how your integration route handles queued reports.
Related pages
- Invoicing & E-InvoicingIssue bilingual English/Arabic PDF invoices with UBL 2.1 XML, ZATCA-format QR codes and linked credit notes. Works offline on Windows and macOS.
- Saudi ArabiaOffline desktop ERP for Saudi Arabia: Arabic-first SAR invoices, 15% VAT, UBL 2.1 XML, ZATCA TLV QR codes and a Phase 2 clearance and reporting workflow.
- ZATCA QR generatorFree ZATCA QR code generator and decoder: build the TLV Base64 string for tags 1 to 5, download the QR as PNG, or decode tags 1 to 9. Runs in your browser.
- GCC VAT accountingGCC VAT accounting guide: rates for Saudi Arabia, Bahrain, UAE and Oman, zero-rated vs exempt, 2 and 3 decimal rounding, reverse charge and VAT returns.
- Point of Sale (POS)Offline-ready POS for Windows and macOS: barcode scanning, ESC/POS thermal receipts, cash drawer, bilingual EN/AR receipts and shift closing.
No install needed
Download RaqamBooks and run your business offline
Install it on your own computer, keep your data local and avoid per-user monthly cloud fees. Early version for Windows 10/11 and macOS 13 or later (Apple chip and Intel chip).
All downloads, checksums and install guideSee pricingTalk to us