# Arabic-first SAR invoices and the ZATCA Phase 2 workflow, on your own computer

> RaqamBooks issues Arabic-first invoices exact to the halala, builds the ZATCA TLV QR code and exports UBL 2.1 XML, then archives every issued document locally. Onboarding, clearance and reporting stay with ZATCA — this page separates what the software does from what you do.

- Web page: https://raqambooks.com/gcc/saudi-arabia/
- Last updated: 2026-12-05
- Published: 2026-12-01
- Other languages: [ar](https://raqambooks.com/ar/gcc/saudi-arabia.md), [ur](https://raqambooks.com/ur/gcc/saudi-arabia.md)

## Key facts: Saudi Arabia

- Currency: Saudi riyal (SAR)
- Decimals: 2 decimals
- VAT rate: 15%. Standard rate 15% since 1 July 2020.
- Tax authority: Zakat, Tax and Customs Authority (ZATCA), https://zatca.gov.sa
- E-invoicing status: In force, phased by waves. FATOORA e-invoicing is in force: Phase 1 (generation) since 4 Dec 2021 and Phase 2 (integration) in waves — B2B clearance, B2C reporting within 24 hours.
- Last verified: 2026-12-03

## Download the Saudi Arabia edition

The Saudi Arabia edition of RaqamBooks is not published yet, so there is no Saudi installer to download. Write to info@taqnix.com to be told when it is available. The UAE, Oman, Kuwait, Qatar and Bahrain editions are available now as early versions.

## Clearance or reporting: where each Saudi invoice goes

**Summary:** Under ZATCA Phase 2, standard tax invoices (B2B and B2G) are cleared by ZATCA in real time before they are issued to the buyer, while simplified invoices (B2C) are issued first and reported within 24 hours. RaqamBooks prepares both document types; the clearance and reporting calls themselves run through ZATCA's Fatoora integration.

The split matters for a desktop workflow. A simplified invoice can be issued at the counter and reported afterwards, so a short outage does not stop sales. A standard invoice must be cleared before it goes to the buyer, so that step needs a connection at the moment of issue.

**The two Phase 2 invoice routes**

| Invoice type | Typical buyer | ZATCA step and timing | What RaqamBooks produces |
| --- | --- | --- | --- |
| Standard tax invoice | VAT-registered business (B2B) or government entity (B2G) | Clearance: ZATCA validates and clears it in real time before it is issued to the buyer | Bilingual PDF and UBL 2.1 XML, with credit and debit notes linked to the original invoice |
| Simplified tax invoice | Consumer sale (B2C), often at the till | Reporting: issued first, then reported to ZATCA within 24 hours | Receipt or PDF with the TLV Base64 QR code, plus UBL 2.1 XML |

_Which route applies to a particular sale depends on the buyer and on ZATCA's rules; confirm edge cases with ZATCA._

## A 15% VAT invoice in SAR, to the halala

**Summary:** SAR has two decimals: 1 riyal equals 100 halala. At the 15% standard VAT rate, RaqamBooks keeps every amount exact to the halala and rounds tax to the nearest halala. In the worked invoice below, SAR 490.75 of taxable value carries SAR 73.61 VAT, for a payable total of SAR 564.36.

Each line is quantity × unit price, less any discount, which gives the taxable amount. VAT at 15% is then worked out and rounded to the halala.

**Worked invoice (SAR, 15% VAT)**

| Line | Calculation | Taxable amount (SAR) | VAT at 15% (SAR) |
| --- | --- | --- | --- |
| Line 1 | 12 × 8.50 | 102.00 | 15.30 |
| Line 2 | 3 × 47.25 | 141.75 | 21.26 (from 21.2625) |
| Line 3 | 1 × 260.00 less 5% discount | 247.00 | 37.05 |
| Invoice total |  | 490.75 | 73.61 |

### Check the arithmetic

Taxable total: 102.00 + 141.75 + 247.00 = 490.75. VAT on the whole invoice: 490.75 × 15% = 73.6125, which rounds to 73.61. Adding the three line VAT figures (15.30 + 21.26 + 37.05) also gives 73.61, so there is no one-halala gap on this invoice. Total payable: 490.75 + 73.61 = 564.36. The totals 564.36 and 73.61 are exactly what go into QR tags 4 and 5 in the next section.

On invoices where line-level and invoice-level rounding can differ by one unit, the [Oman page](https://raqambooks.com/gcc/oman/) works through a three-decimal proof of why consistency matters.

## Who does what: Fatoora portal, RaqamBooks and you

**Summary:** Phase 2 splits the work three ways. You register and onboard in ZATCA's Fatoora portal to obtain the cryptographic stamp credential (CSID). RaqamBooks writes the UBL 2.1 XML invoice, with its UUID, invoice counter and previous-invoice hash fields, plus the QR code, and archives every issued document. ZATCA clears or receives the result.

**Phase 2 elements and who provides each**

| Element | What it is | Who provides it |
| --- | --- | --- |
| Fatoora onboarding and CSID | Your solution is registered and ZATCA issues the credential used to stamp invoices | You, in the ZATCA Fatoora portal; ZATCA issues the credential |
| UBL 2.1 XML invoice | The structured document ZATCA reads | RaqamBooks generates it |
| UUID | A unique identifier for each invoice | RaqamBooks, written into the XML |
| Invoice counter (ICV) | A running count of invoices issued | RaqamBooks |
| Previous-invoice hash (PIH) | The hash of the prior invoice, which chains the sequence so gaps and edits show | RaqamBooks, carried in each XML |
| Cryptographic stamp | A digital signature made with the credential from your onboarding | Needs your Fatoora onboarding credential; without onboarding there is nothing to sign with |
| TLV Base64 QR code | Encodes the invoice summary for scanning | RaqamBooks generates it |
| Clearance or reporting call | Sends a standard invoice for clearance, or reports a simplified invoice within 24 hours | A separate step through ZATCA's Fatoora integration, using your onboarded credentials |

> **ZATCA does not hand out a software badge** ZATCA does not issue a certified-software badge, so treat any vendor claiming one with caution. RaqamBooks makes no such claim. What you can check yourself: onboarding results appear in your own Fatoora portal account, and the XML and QR codes you export can be tested with ZATCA's own testing tools.

## The ZATCA QR code: TLV tags with a worked example

**Summary:** The ZATCA QR code is a Base64 string of TLV records: a tag byte, a length byte and the value in UTF-8. Phase 1 uses tags 1–5 (seller name, VAT number, timestamp, total with VAT, VAT amount). Phase 2 simplified invoices add tags 6–9: invoice hash, digital signature, public key and certificate signature.

Length counts bytes, not letters. An Arabic seller name of four letters takes 8 bytes in UTF-8, so its length byte is 08, a common cause of invalid QR strings when they are built by hand. RaqamBooks builds the string from the invoice data, and the [ZATCA QR generator](https://raqambooks.com/tools/zatca-qr-generator/) lets you build and decode one yourself.

**Tags for the invoice worked out above**

| Tag | Field | Example value | Length (bytes) |
| --- | --- | --- | --- |
| 1 | Seller name | Sample Co | 9 |
| 2 | VAT registration number | 300000000000003 | 15 |
| 3 | Timestamp | 2026-12-03T10:30:00Z | 20 |
| 4 | Invoice total including VAT | 564.36 | 6 |
| 5 | VAT amount | 73.61 | 5 |
| 6–9 | Phase 2: invoice hash, digital signature, public key, certificate signature | Produced when the invoice is stamped | — |

_The seller name and VAT number above are placeholders for illustration only._

```
01 09 53 61 6D 70 6C 65 20 43 6F
AQlTYW1wbGUgQ28CDzMwMDAwMDAwMDAwMDAwMwMUMjAyNi0xMi0wM1QxMDozMDowMFoEBjU2NC4zNgUFNzMuNjE=
```

## The Arabic-first invoice

**Summary:** Arabic is required on Saudi invoices, and bilingual Arabic and English is the common format. RaqamBooks offers Arabic-first templates with correct right-to-left layout, Arabic and English names stored per item and customer, SAR amounts exact to the halala and the ZATCA QR code on simplified invoices. Fill in the Arabic fields once, in Settings.

Want to preview a layout first? Try the [bilingual invoice maker](https://raqambooks.com/tools/bilingual-invoice-maker/).

- **Seller identity**: Enter the legal name in Arabic and English, the address and the 15-digit VAT number in Settings → Company.
- **Item names**: Give each item an Arabic and an English description; the invoice prints whichever the template calls for.
- **Customer records**: Store the customer's Arabic name, address and VAT number so standard (B2B) invoices carry the buyer's details.
- **Template**: Pick an Arabic-first or bilingual layout in Settings → Templates and preview the PDF before the first live invoice.
- **Currency**: Check that Settings → Currency & Decimals shows SAR with 2 decimals.
- **QR code and XML**: Simplified invoices print the TLV QR code, and every invoice can be exported as UBL 2.1 XML.

## Phase 2 waves and the Wave 25 deadline

**Summary:** Phase 2 reaches businesses in waves by taxable turnover, and ZATCA notifies each wave about six months before its deadline. Wave 25, announced on 24 July 2026, requires integration by 1 February 2027 for businesses above SAR 187,500 taxable turnover in any year from 2022 to 2025. Check your wave in the ZATCA portal.

**Saudi e-invoicing dates (reviewed 3 December 2026)**

| Item | Fact |
| --- | --- |
| Phase 1 (generation) | In force since 4 December 2021: structured e-invoices only, no handwritten invoices, QR code on simplified invoices |
| Wave 24 | Integration deadline 30 June 2026 |
| Wave 25 | Announced 24 July 2026; integration deadline 1 February 2027 |
| Wave 25 threshold | Taxable turnover above SAR 187,500 in any of 2022, 2023, 2024 or 2025 |
| Notice period | ZATCA notifies each wave at least about six months before its deadline |

_Dates change. Confirm your wave and deadline on the ZATCA portal and zatca.gov.sa._

### Worked example: reading the threshold

A shop had taxable turnover of SAR 90,000 in 2022, SAR 140,000 in 2023, SAR 190,000 in 2024 and SAR 150,000 in 2025. Only 2024 is above SAR 187,500, but "any of the years" is enough, so the shop falls inside the Wave 25 test. The notice in the ZATCA portal is what settles it.

### Your plan before the deadline

1. **Check your wave**: Look for your wave notice in the ZATCA portal. The portal notice, not this page, decides.
2. **Onboard in Fatoora**: Complete onboarding before the deadline to obtain your stamp credential. This step is yours, not the software's.
3. **Test with real documents**: Export UBL 2.1 XML and the QR code from RaqamBooks for sample standard and simplified invoices, and test them with ZATCA's own tools.
4. **Complete the Arabic data**: Fill the company, item and customer Arabic fields described in the invoice section above.
5. **Back up before going live**: Back up the RaqamBooks data folder on your computer; see the [local backup and restore guide](https://raqambooks.com/docs/local-backup-restore/).

## GCC countries

- [Saudi Arabia](https://raqambooks.com/gcc/saudi-arabia/): SAR, 15% VAT
- [United Arab Emirates](https://raqambooks.com/gcc/uae/): AED, 5% VAT
- [Oman](https://raqambooks.com/gcc/oman/): OMR, 5% VAT
- [Bahrain](https://raqambooks.com/gcc/bahrain/): BHD, 10% VAT
- [Qatar](https://raqambooks.com/gcc/qatar/): QAR, no VAT
- [Kuwait](https://raqambooks.com/gcc/kuwait/): KWD, no VAT

## Frequently asked questions

**Does RaqamBooks send my invoices to ZATCA?**

RaqamBooks generates the UBL 2.1 XML and the TLV Base64 QR code and archives every issued document locally. Clearance and reporting are separate steps that depend on your Fatoora onboarding. See the [ZATCA guide](https://raqambooks.com/compliance/zatca-saudi-arabia/) for the current workflow.

**Does ZATCA give software a certification badge?**

No. ZATCA does not issue a certified-software badge. What counts is that your onboarded solution produces valid invoices that are cleared or reported on time. Be cautious of any vendor claiming a badge; RaqamBooks does not, and you can test its XML and QR output with ZATCA's own tools.

**Do invoices in Saudi Arabia have to be in Arabic?**

Arabic is required on invoices, and bilingual Arabic and English is the common format. RaqamBooks templates print Arabic-first, English-first or bilingual with correct right-to-left layout, and SAR amounts always show two decimals.

**Can I keep invoicing when the internet is down?**

For simplified (B2C) invoices, yes: they are issued first and reported within 24 hours, and RaqamBooks keeps working offline. Standard (B2B and B2G) invoices must be cleared before they reach the buyer, so that step needs a connection when you issue.

**How do I know if Wave 25 applies to my business?**

Wave 25 covers businesses with taxable turnover above SAR 187,500 in any year from 2022 to 2025, with integration due by 1 February 2027. The notice in your ZATCA portal account decides, so check it there rather than relying on the threshold alone.

**What does the QR code on a Saudi invoice contain?**

Phase 1 puts five TLV tags into a Base64 string: seller name, VAT number, timestamp, total with VAT and VAT amount. Phase 2 simplified invoices add the invoice hash, digital signature, public key and certificate signature as tags 6–9. The [QR generator tool](https://raqambooks.com/tools/zatca-qr-generator/) shows the layout.

## Related pages

- [ZATCA e-invoicing](https://raqambooks.com/compliance/zatca-saudi-arabia/): Guide to ZATCA FATOORA e-invoicing in Saudi Arabia: Phase 1 vs 2, Wave 25, clearance vs reporting, UBL 2.1 XML, TLV QR tags and a readiness checklist.
- [Invoicing & E-Invoicing](https://raqambooks.com/features/invoicing/): Issue bilingual English/Arabic PDF invoices with UBL 2.1 XML, ZATCA-format QR codes and linked credit notes. Works offline on Windows and macOS.
- [ZATCA QR generator](https://raqambooks.com/tools/zatca-qr-generator/): Free 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 calculator](https://raqambooks.com/tools/gcc-vat-calculator/): Free GCC VAT calculator: add or extract VAT for Saudi Arabia (15%), Bahrain (10%), UAE (5%) and Oman (5%) with exact 2- and 3-decimal rounding.
- [GCC VAT setup guide](https://raqambooks.com/docs/gcc-vat-setup/): Set up VAT in RaqamBooks by country: 15% Saudi Arabia, 10% Bahrain, 5% UAE and Oman, 0% Qatar and Kuwait, 2 or 3 decimals, item types and VAT returns.

## 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 guide](https://raqambooks.com/download/)
