ZATCA QR Code Invoices in WooCommerce: A Free Step-by-Step Guide

Right-to-left Arabic invoice with ZATCA QR

To add a ZATCA QR code to WooCommerce invoices, install a PDF invoice plugin that generates ZATCA’s Phase 1 QR code, enter your shop name and VAT registration number, and switch the QR code on for your invoices. With the free Invoice Payment plugin that takes about five minutes. The QR code covers ZATCA’s Phase 1 (Generation) rules for simplified tax invoices. Phase 2 (Integration) is a separate obligation that needs a connection to ZATCA’s Fatoora platform, and we explain below how to tell whether it applies to you.

This guide is for WooCommerce store owners who sell in Saudi Arabia, or to Saudi customers, and want invoices that meet the e-invoicing rules without paying for an add-on. It covers what the QR code contains, how to set it up, how to test it, and where the plugin’s job ends.

Not tax advice. E-invoicing rules depend on your business and change over time. Use this guide to understand the moving parts, then confirm your own obligations with your accountant or on ZATCA’s e-invoicing pages.

What is the ZATCA QR code?

ZATCA, the Zakat, Tax and Customs Authority, runs Saudi Arabia’s e-invoicing programme (known as Fatoora). Its first phase, the Generation phase, started on 4 December 2021. From that date, VAT-registered businesses had to issue invoices from an electronic system instead of writing them by hand or typing them in a word processor.

Under Phase 1, every simplified tax invoice (the business-to-consumer kind most online shops issue) must carry a QR code generated by the seller’s e-invoicing solution. On a standard tax invoice for a business buyer, the QR code is optional in Phase 1. When a customer or an inspector scans the code, they can read the key details of the invoice straight away.

What does the Phase 1 QR code contain?

The Phase 1 QR code holds five fields:

  1. Seller name, as registered with ZATCA.
  2. Seller VAT registration number.
  3. Invoice date and time (the timestamp).
  4. Invoice total, including VAT.
  5. VAT total.

These fields are packed in a Tag-Length-Value (TLV) structure and encoded in Base64 before being drawn as a QR code. That’s why a generic QR generator that just encodes a link or plain text doesn’t meet the requirement. A ZATCA-aware app reads the TLV data and shows the five values. A normal phone camera may only show a string of letters, which is expected.

How do I add a ZATCA QR code to WooCommerce invoices?

WooCommerce on its own doesn’t create invoices, so you need an invoice plugin. We’ll use Invoice Payment, our free plugin for WooCommerce PDF invoices, packing slips and pay by invoice. The ZATCA QR code is part of the free version.

WooCommerce invoice with ZATCA QR code in Arabic right-to-left layout

Step 1: Install Invoice Payment

In your dashboard, go to Plugins → Add New, search for “Invoice Payment”, then install and activate it. The setup wizard walks you through your logo, documents, template and colour. If you’re new to invoices in WooCommerce, our guide to adding PDF invoices and packing slips to WooCommerce covers the basics in more detail.

Step 2: Enter your shop name and VAT number

Go to Settings → Shop details in Invoice Payment. Enter your shop name exactly as it appears in your ZATCA registration, and your 15-digit VAT registration number. The QR code takes the seller name and VAT number from here, so a typo here means a wrong QR code on every invoice.

Step 3: Turn on the ZATCA QR code

Go to Settings → Invoice payment → Invoice contents and switch on ZATCA QR. From now on, every invoice includes the QR code with your seller details, the invoice time, the total and the VAT amount.

While you’re there, two related details are worth checking for Saudi invoices:

  • Tax summary (turn it on here) prints a table of VAT grouped by rate: rate, taxable amount and tax.
  • Customer VAT number. For business buyers, the plugin prints the buyer’s VAT number when one is available, taken from its own checkout field or from common VAT plugins.

Step 4: Make the invoice Arabic or bilingual

Many Saudi businesses print invoices in Arabic, or with Arabic and English labels side by side. Invoice Payment handles right-to-left layout, Arabic letter shaping, Eastern Arabic digits, Hijri dates and two-language labels in the free version. Our step-by-step guide on creating Arabic and RTL invoices in WooCommerce shows each setting.

Step 5: Test before you go live

Turn on Settings → Advanced → Test mode so documents get a TEST watermark and no invoice numbers are used. Then open a real order and click View PDF in the Documents box. Check that:

  • The QR code is printed and is large enough to scan.
  • A ZATCA-compatible QR reader app shows your seller name, VAT number, date and time, total and VAT.
  • The total and VAT in the QR code match the totals printed on the invoice.
  • The document is titled as a simplified tax invoice or tax invoice, as your accountant advises.

Turn test mode off when everything looks right.

What is ZATCA Phase 2, and does it apply to my store?

Phase 2, the Integration phase, goes further than a QR code. Businesses in scope must connect their invoicing system to ZATCA’s Fatoora platform and issue invoices in a set electronic format with extra fields and cryptographic security. Broadly, invoices to business buyers are cleared by ZATCA before they reach the buyer, and simplified invoices are reported to ZATCA shortly after they’re issued. The Phase 2 QR code also carries more data than the five Phase 1 fields.

ZATCA brings businesses into Phase 2 in waves, based on VAT-subject revenue, and notifies each group in advance. According to ZATCA’s announcement of the 25th wave, that wave covers taxpayers whose VAT-subject revenue exceeded SAR 187,500 in 2022, 2023, 2024 or 2025, with an integration deadline of 1 February 2027. So by early 2027, most VAT-registered online sellers in Saudi Arabia will be in Phase 2.

Invoice Payment does not connect to Fatoora. It produces the Phase 1 QR code and well-formed PDF invoices, but it isn’t a ZATCA-certified Phase 2 solution. If you’ve been notified for a wave, or your revenue puts you in one, you’ll need a Phase 2 solution from a ZATCA-listed provider and should plan the switch with your accountant well before your deadline.

Phase 1 vs Phase 2 at a glance

Phase 1 (Generation)Phase 2 (Integration)
Started4 December 2021In waves, by revenue
What it requiresElectronic invoices, no handwritten or word-processor invoicesConnection to the Fatoora platform, set format and security
QR codeMandatory on simplified invoices, five fieldsMandatory, with extra security data
Sent to ZATCA?NoYes, cleared or reported
Covered by Invoice PaymentYes, freeNo

What are the common mistakes with ZATCA QR codes?

  • Using a plain QR code. A QR code that links to the order page or holds plain text isn’t the ZATCA format. It must be the TLV-encoded data described above.
  • A seller name that doesn’t match the registration. Use the registered name, not a shortened brand name.
  • Editing invoices after they’re issued. ZATCA’s rules forbid tampering with issued e-invoices. Invoice Payment keeps an issued invoice’s number, dates and look unless you deliberately turn on rebuilding, and it never reuses an invoice number.
  • Several invoice sequences. ZATCA lists multiple invoice sequences as a prohibited function. Stick to one sequential numbering scheme for tax invoices.
  • Assuming Phase 1 is enough forever. Check which Phase 2 wave you fall into, and when.

Frequently asked questions

Is there a free ZATCA QR code plugin for WooCommerce?

Yes. Invoice Payment is a free WooCommerce invoice plugin that adds the ZATCA Phase 1 QR code to PDF invoices. You enter your shop name and VAT number, switch on ZATCA QR under Invoice contents, and every invoice carries the code. Arabic and right-to-left layouts are free too.

Is the ZATCA QR code required on B2B invoices?

In Phase 1, the QR code is mandatory on simplified (business-to-consumer) tax invoices and optional on standard tax invoices to business buyers. In Phase 2, the rules change, so businesses in a Phase 2 wave should follow the requirements of their certified solution.

Why does my phone show random text when I scan the QR code?

That’s normal. The data is TLV-encoded and Base64-encoded, so a standard camera app shows the raw string. Use a ZATCA-compatible QR reader app to see the seller name, VAT number, timestamp, total and VAT.

Does Invoice Payment support ZATCA Phase 2?

No. Invoice Payment generates the Phase 1 QR code and PDF invoices, but it does not integrate with the Fatoora platform for clearance or reporting. If your business is in a Phase 2 wave, use a ZATCA-certified solution and confirm the details with your accountant.

Can I print ZATCA invoices in Arabic and English?

Yes. Turn on Second language for labels in Invoice Payment’s template settings to print every label in two languages, such as English and Arabic. The plugin also supports a full right-to-left layout, Eastern Arabic digits and Hijri dates.

Wrapping up

For Phase 1, a ZATCA QR code on WooCommerce invoices takes three settings: your registered shop name, your VAT number and the ZATCA QR switch. Add a tax summary and Arabic labels, test with a real order, and your simplified tax invoices carry the code they need. Then check your Phase 2 wave and deadline, because that step needs a certified Fatoora integration.

Download Invoice Payment free, see the Invoice Payment plugin page, or read the E-Invoicing & Compliance docs.

Leave a Comment

Shopping Cart
  • Your cart is empty.