When ZATCA announced the integration phase of e-invoicing, many Saudi businesses assumed it was a small extension of phase one. Their systems already produced invoices with a QR code; surely phase two meant a few more fields. Then their wave notification arrived, and they discovered that "integration" meant something very specific: every invoice must be generated in a defined electronic format, stamped cryptographically, and either cleared by or reported to ZATCA's Fatoora platform through a live connection. A PDF with a QR code, however nicely formatted, isn't that.
Two flows: clearance and reporting
Phase two distinguishes between two types of invoices, and each follows a different path:
- Standard tax invoices (B2B): issued to VAT-registered businesses. These go through clearance — the invoice is sent to ZATCA, validated, and stamped before it's shared with the buyer. If clearance fails, the invoice isn't valid.
- Simplified tax invoices (B2C): issued to consumers, typically at retail points of sale. These follow reporting — the invoice is issued to the customer immediately and reported to ZATCA within 24 hours.
Credit and debit notes follow the same logic as the invoices they relate to. This distinction matters for system design: B2B invoicing depends on the connection being available at the moment of issue, while B2C reporting can tolerate short delays.
What's inside a compliant invoice
A phase two invoice is an XML document in the UBL 2.1 standard, carrying the data ZATCA requires. Beyond the visible content — seller, buyer, lines, VAT — it includes elements most users never see:
A unique identifier (UUID) for each invoice. A hash of the invoice content, and the hash of the previous invoice, forming a chain that makes tampering detectable. A cryptographic stamp generated using a certificate issued to your solution during onboarding. And a QR code containing key fields and the stamp, which buyers and inspectors can verify. The PDF the customer sees is a human-readable rendering; the XML is the legal invoice.
Onboarding is a technical process
Before issuing phase two invoices, each invoicing solution or device must be onboarded with ZATCA. This involves generating a one-time password from the Fatoora portal, creating a certificate signing request from the ERP, and receiving a cryptographic stamp identifier (CSID) for production use after compliance checks. Businesses with multiple branches or points of sale may need to onboard several units. Certificates have validity periods and must be renewed.
This is one reason "we'll just turn it on" rarely works. Onboarding should be planned and tested well before the wave deadline.
Waves and deadlines
ZATCA has rolled out phase two in waves, selecting taxpayers based on revenue thresholds and notifying them several months before their integration date. The notification gives a window to prepare, but it's shorter than it sounds once testing, master data cleanup, and staff training are included. Companies that start preparing only after notification often find themselves rushing.
Data quality is half the work
Integration exposes data problems that phase one tolerated. Buyer VAT numbers must be valid and correctly formatted. Customer addresses need the required structured fields, including building number and postal code for B2B invoices. Products need correct tax categories, and exemptions or zero-rating must use the right reason codes. Invoices rejected for data reasons stop business until they're fixed, so cleaning master data before go-live is essential.
What to look for in your ERP
A phase two-ready ERP should generate UBL XML natively, handle clearance and reporting automatically from the invoice workflow, manage certificates and onboarding, store the cleared XML alongside each invoice, show clear error messages when ZATCA rejects something, and support retries without creating duplicates. It should also handle POS invoices in reporting mode and keep working during brief connectivity issues.
Odoo includes Saudi localization with ZATCA e-invoicing support for both clearance and reporting, onboarding through the settings, XML generation, and status tracking on each invoice. As an Odoo partner working with Saudi businesses, we've seen that the technical connection is usually the easy part; the data, testing, and process changes are where projects succeed or slip.
If your wave notification has arrived — or you expect it soon — request a quote and we'll help you plan an integration that's genuinely compliant.
No comments yet — be the first to share your thoughts.