Ir al contenido

ZATCA E-Invoicing (FATOORA) Phase 1 and Phase 2 in LithosPOS

Set up ZATCA e-invoicing for your stores in Saudi Arabia. Turn on Phase 1 (QR code invoices) or Phase 2 (signed invoices reported to ZATCA), onboard each till with a FATOORA OTP and check what ZATCA accepted from the Back Office.

LTLithosPOS TeamActualizado

ZATCA (the Zakat, Tax and Customs Authority) requires businesses in Saudi Arabia to issue electronic invoices through the FATOORA platform. LithosPOS supports both phases:

  • ZATCA (Phase 1, generation phase) — the POS creates every invoice electronically and prints a ZATCA QR code on the receipt. Nothing is sent to ZATCA.
  • ZATCA Phase 2 (integration phase) — each till is registered with ZATCA. The till signs every invoice with its own certificate, and LithosPOS reports simplified (B2C) invoices to ZATCA.

The Phase 2 setup has three parts:

Enter the store details in the Back Office → Generate OTPs in FATOORA → Onboard each till with its OTP

Before you start

  • ZATCA is available to businesses whose country is Saudi Arabia. The ZATCA tiles appear only for these businesses. It is included in every plan.
  • Set up the 15% VAT for your items under Settings → Tax (see Tax settings).
  • Enter each store's VAT number in the TRN / Tax ID field of the store (see Store settings), so it prints on receipts.
  • For Phase 2, keep these details at hand for every store: the VAT number, the name registered for VAT, the Commercial Registration (CR) number and the store's national address.
  • For Phase 2, you also need access to the FATOORA portal (fatoora.zatca.gov.sa) with your ZATCA (ERAD) login.

Find ZATCA in the Back Office

  1. Log in to the Back Office at my.lithospos.com.
  2. Go to Integrations and click E-invoice. You see two tiles: ZATCA (Phase 1) and ZATCA Phase 2.The ZATCA and ZATCA Phase 2 tiles under E-invoice on the Integrations page
  3. Click the tile for your phase. If it is not installed yet, click + Install. The tile then shows Installed and the panel opens with Add new configuration.

Set up ZATCA Phase 1

Phase 1 needs no extra details. You only choose the stores that issue ZATCA invoices.

  1. Open the ZATCA tile.
  2. Under Add new configuration, choose the Store.
  3. Click Save configuration. The store moves to Configured stores.The ZATCA panel with a store selected and the configured stores list
  4. Repeat for every store that must issue ZATCA invoices.

The POS now prints the ZATCA QR code on the receipts of these stores. The QR code holds the seller name, the VAT number, the invoice date and time, the invoice total and the VAT amount.

Set up ZATCA Phase 2

Step 1: Enter the store details

The details you enter here go into the certificate request for each till and onto every invoice. They must match what ZATCA has on record for your business.

  1. Open the ZATCA Phase 2 tile.
  2. Under Add new configuration, choose the Store and fill in the seller details:ZATCA Phase 2: the store and seller details
  3. Scroll down and fill in the store's national address. Then click Save configuration.ZATCA Phase 2: the store address and the configured stores list
  4. Repeat for every store that moves to Phase 2.

All fields are required:

  • Customer ID — A name you choose for this store's POS unit, for example EGS1-RIYADH-01. ZATCA shows it on the till's certificate.
  • Device Model — The POS solution or device model, for example LithosPOS.
  • CRN Number — The store's Commercial Registration number.
  • VAT Registered Name — The business name exactly as registered for VAT.
  • VAT Number — The 15-digit VAT registration number. It starts and ends with 3.
  • Branch — The branch name, for example the store name.
  • Industry — The business category, for example Restaurant or Retail.
  • City — The city of the national address.
  • City Subdivision — The district.
  • Street — The street name.
  • Plot Identification — The additional number of the national address.
  • Building Number — The 4-digit building number.
  • Postal Code — The 5-digit postal code.

Step 2: Generate OTPs in the FATOORA portal

  1. Log in to the FATOORA portal at fatoora.zatca.gov.sa.
  2. Choose Onboard new solution unit/device.
  3. Enter how many OTP codes you need — one for every till you onboard — and generate them.
  4. Keep the OTPs ready. Each OTP can be used once and expires after a short time, so generate them just before you onboard the tills.

Step 3: Onboard each till

Do this on every till (POS terminal) of a Phase 2 store.

  1. Open LithosPOS on the till and sign in to the Phase 2 store.
  2. When the POS asks for the ZATCA OTP, enter one of the OTPs from FATOORA and confirm.
  3. Wait while the till registers with ZATCA. It creates its own key, requests a certificate with the OTP, sends ZATCA test invoices and receives its production certificate.

When onboarding succeeds, the till signs every sale. If ZATCA rejects one of the test invoices, onboarding stops with an error that starts with ZATCA compliance check failed and gives ZATCA's reason. Correct the store details in the Back Office (Step 1), generate a new OTP and onboard the till again.

How Phase 2 invoices work

  • Every sale on an onboarded till is signed with the till's certificate. The receipt carries the ZATCA QR code with the signature.
  • A sale without a customer VAT number is a simplified (B2C) invoice. LithosPOS reports it to ZATCA after the sale.
  • A sale to a customer that has a VAT number is a standard (B2B) invoice.
  • Refunds are issued as credit notes against the original invoice.

Check the reporting status

Go to Reports and open ZATCA Reporting Status under Operations. The report is available when ZATCA Phase 2 is installed.

The ZATCA Reporting Status and E-Invoices reports under Operations

Simplified Invoices Reporting Status lists every simplified invoice sent to ZATCA. By default it shows the last 30 days. Use Filter to change the dates, choose a store or search for an invoice or order number.

Simplified Invoices Reporting Status with the Submitted, Passed, Warning and Failed totals and the invoice list
  • Passed — ZATCA accepted the invoice.
  • Warning — ZATCA accepted the invoice with warnings. Read the ZATCA Message and fix the cause for future invoices.
  • Failed — ZATCA did not accept the invoice, or it has not been reported yet. The ZATCA Message column shows ZATCA's own reason.

To send a failed invoice again, click Retry on its row. You see Invoice reported to ZATCA. when it is accepted. Each failed invoice can be retried once from the Back Office. After that the row shows Retry used.

For every e-invoice, signed or not, and for the legal exports, open Reports → E-Invoices.

Change or remove a store

  • Change the details — open ZATCA Phase 2, choose the same store under Add new configuration, enter the details again and click Save configuration. Tills that are already onboarded keep working with their certificate.
  • Remove a store — click the delete icon on the store's row under Configured stores. The store stops issuing ZATCA invoices.
  • Move a store from Phase 1 to Phase 2 — set the store up under ZATCA Phase 2 and onboard its tills, then remove it from ZATCA (Phase 1), so each store is set up under one phase only.

Disconnect ZATCA

Open the tile, click ⋮ and choose Disconnect. Stores stop issuing ZATCA e-invoices. Invoices already signed and reported stay in the reports.

Troubleshooting

  • The ZATCA tiles are not shown — the business country is not Saudi Arabia. Contact LithosPOS support to correct it.
  • Onboarding fails as soon as you enter the OTP — check that the till's store is set up under ZATCA Phase 2 (Step 1), then onboard the till again with a new OTP.
  • The OTP is not accepted — the OTP has expired or was already used. Generate a new one in FATOORA.
  • ZATCA compliance check failed — a store detail does not match ZATCA's records. Check the VAT number, the VAT registered name and the address, save them, and onboard with a new OTP.

Connect with us to know more

To learn more, book a meeting with our team.

BOOK A DEMO

¿Te resultó útil este artículo?