When a cashier closes a sale at an iVendNext POS terminal, several things happen in the background without any action from store staff. The invoice is digitally signed using a cryptographic key. It is formatted in ZATCA-mandated UBL 2.1 XML. A QR code is generated and attached. The document is submitted to the ZATCA FATOORAH platform in real time. And the hash of that invoice is recorded so the next invoice can be correctly chained to it.

This is what ZATCA Phase 2 e-invoicing compliance looks like in practice — and iVendNext handles all of it automatically, for every transaction, across every store. This article explains each element of that compliance process: what it does, why it exists, and what it means for your finance and operations teams.
ZATCA distinguishes between two invoice types with meaningfully different compliance flows — not just different labels.

B2C invoices — Simplified Tax Invoices — work differently. The customer receives their receipt at the point of sale, as normal. There is no blocking clearance step. Instead, ZATCA requires the invoice to be reported — submitted to the platform — within 24 hours of issuance. The invoice is valid and the transaction complete before reporting happens; reporting is a post-issuance obligation, not a pre-delivery gate. iVendNext handles this automatically, submitting the invoice to ZATCA immediately upon creation and confirming a REPORTED status without any action from store staff.
The practical distinction matters for operations teams: B2B transactions involve a short wait for clearance before the invoice can be dispatched to the buyer, while B2C transactions proceed without interruption and reporting happens in the background.

Every invoice submitted to ZATCA must carry a valid digital signature — generated using an Elliptic Curve (EC) private key issued during ZATCA device registration. The signature is embedded directly in the UBL 2.1 XML document.

iVendNext generates each invoice as a UBL 2.1 XML document — the format mandated by ZATCA's technical specifications — including all required fields: seller and buyer details, line items, VAT amounts, totals, timestamps, and the cryptographic signature.

Every ZATCA-compliant invoice must include a QR code encoding key invoice details in ZATCA's TLV (Tag-Length-Value) format. The QR code contains the seller's name, VAT registration number, invoice timestamp, total amount (including VAT), and VAT amount.

iVendNext renders submitted invoices as PDF/A-3 documents — the archive-grade format recommended by ZATCA for long-term invoice storage. PDF/A-3 supports inline file attachments, meaning the signed XML is embedded within the PDF itself. The result is a single document that is both human-readable as a formatted invoice and machine-readable as a standards-compliant XML record — fully self-contained for compliance and archiving purposes.
Each invoice submitted to ZATCA must include a hash of the previous invoice — the Previous Invoice Hash (PIH) — creating a cryptographic chain that makes it impossible to delete, insert, or alter an invoice in the sequence without detection.

Once an invoice reaches REPORTED or CLEARED status, iVendNext locks it against editing, cancellation, or re-saving, displaying a clear error message if such an action is attempted. This is iVendNext's enforcement of a ZATCA principle: submitted invoices should not be silently altered after the fact. Where a correction is needed, the appropriate mechanism is a Credit Note or Debit Note issued against the original — both of which iVendNext supports as first-class ZATCA documents with their own signed XML, QR code, and PIH integration.
iVendNext handles the full e-invoicing compliance lifecycle automatically for every transaction. Cashiers close sales as normal. Behind the scenes, iVendNext generates signed UBL 2.1 XML, produces TLV QR codes, routes invoices through the correct B2B or B2C compliance path, maintains the PIH hash chain, attaches signed XML and PDF/A-3 documents to every record, and locks submitted invoices against modification — creating a continuous, auditable compliance record for every invoice your business issues under ZATCA.