Invoices & payments

Saudi Arabia: ZATCA e-invoicing (Fatoora), in testing

Print the ZATCA QR code on tax invoices and try the Fatoora connection in ZATCA's test environments.

This is in testing

The ZATCA connection is new and in testing. It works with ZATCA's two test environments, the sandbox and the simulation platform. Sending to ZATCA's production platform is switched off for now, so do not rely on DingVoice yet for invoices that must be cleared or reported for real. ZATCA does not certify e-invoicing software, and DingVoice does not claim any ZATCA approval. You stay responsible for meeting your own obligations.

Who must do what

ZATCA's e-invoicing has two phases. In Phase 1 (generation) every VAT-registered business in Saudi Arabia issues tax invoices electronically and prints a QR code on them. In Phase 2 (integration) the businesses ZATCA has notified also send each document to its Fatoora platform. A tax invoice to another business is sent for clearance and is valid only once ZATCA has cleared it. A simplified tax invoice to a consumer is handed over at once and must reach ZATCA no later than 24 hours after it is issued. Credit notes follow the invoice they correct.

Phase 1: the QR code

Open Settings → E-invoicing. The section "Saudi Arabia: ZATCA e-invoicing (Fatoora)" appears when your company country is Saudi Arabia. Enter your 15-digit VAT registration number and turn on "Print the ZATCA QR code on tax invoices". The code holds your name, your VAT number, the invoice time, the total with VAT and the VAT amount. It prints on invoices and credit notes in the built-in layout. Custom invoice templates do not carry it yet. Arabic is required on Saudi tax invoices: set your invoice language to Arabic so the labels print in Arabic.

  1. Open Settings → E-invoicing → Saudi Arabia: ZATCA e-invoicing (Fatoora).
  2. Enter your VAT registration number.
  3. Turn on "Print the ZATCA QR code on tax invoices" and save.

Phase 2: before you start

You need access to your Fatoora portal (or the Fatoora simulation portal for testing) with your ZATCA taxpayer login. Have your commercial registration number and your Saudi national address at hand: street, 4-digit building number, district, city and 5-digit postal code. ZATCA requires them on every e-invoice. Zero-rated, exempt and out-of-scope sales also need ZATCA's reason code, for example VATEX-SA-32 for exported goods: add it as the exemption reason code on the tax rule.

Phase 2: onboard DingVoice as a unit

ZATCA calls each connected system an e-invoice generation unit. You onboard DingVoice with a one-time password from your own portal. DingVoice then creates the unit's signing key, asks ZATCA for a certificate, runs ZATCA's compliance checks with made-up sample documents and stores the key and certificate encrypted. Nobody can read them back, not even you.

  1. Choose the environment: Sandbox for a first look, Simulation to test with ZATCA's real checks.
  2. Fill in your company details, the unit name, branch, location and industry.
  3. In your Fatoora portal choose "Onboard new solution unit/device" and generate an OTP. It is valid for one hour.
  4. Enter the OTP and choose Onboard this unit. This can take a minute.
  5. When the unit shows Onboarded, turn on "Send issued invoices and credit notes to ZATCA" and save.

What happens to each document

With Phase 2 on, each invoice or credit note you issue is sent in the background. Issuing never waits for ZATCA. The invoice page shows a ZATCA card with the status. A tax invoice to a business shows "Waiting to send" until ZATCA clears it, and until then its PDF is marked "NOT A TAX INVOICE" and carries no QR code: do not send it to your customer yet. Once cleared, the PDF prints ZATCA's own QR code and you can download ZATCA's stamped XML. A simplified tax invoice prints its QR code at once and is reported in the background.

Warnings, rejections and retries

ZATCA may accept a document with warnings; the card lists them so you can fix the cause for next time. If ZATCA rejects a document, the card lists ZATCA's errors. Fix them, then choose "Send to ZATCA as a new document": ZATCA requires a rejected document to be sent again as a new one, so it gets a new identifier and counter. If ZATCA cannot be reached, DingVoice tries again by itself for most of a day and then waits for you. A document is never sent twice as two different documents.

Renewing the certificate

The certificate has an end date, shown in the settings. DingVoice warns you 30 days before. To renew, generate a renewal OTP in your Fatoora portal, enter it and choose Renew certificate. After the end date nothing is sent until you renew.

Not done yet

Production sending is switched off while this is in testing. Debit notes, prepayment invoices, self-billed, third-party, nominal and summary invoices are not supported. Custom invoice templates do not print the QR code. Invoices in another currency need Saudi riyal as your company currency so the VAT can be stated in riyals. The mobile apps do not show the ZATCA status.

Ready to try it?

Open in DingVoice

Still stuck?

Send us a message and we'll reply by email.

Contact support