ZATCA Phase 2 E-Invoicing
YousrERP integrates with ZATCA (Zakat, Tax and Customs Authority) for Phase 2 e-invoicing compliance using the LavaLoon KSA Compliance app. This means your sales invoices are automatically submitted to ZATCA's Fatoora portal for clearance β with QR codes, cryptographic stamps, and XML generation handled automatically.
What ZATCA Phase 2 Means
Phase 2 requires businesses to:
- Submit invoices to ZATCA in real-time (or near real-time) for clearance
- Include QR codes on every invoice for verification
- Generate XML in ZATCA's required format (UBL 2.1)
- Cryptographically sign each invoice
- Receive clearance responses from ZATCA (accepted/rejected)
- Handle rejected invoices through correction and resubmission
YousrERP handles all of this automatically once you complete the onboarding.
Integration Modes
| Mode | Description |
|---|---|
| Live (Real-time) | Invoice is submitted to ZATCA immediately upon submission in YousrERP. You get an instant response (accepted/rejected). |
| Batch | Invoices are queued and submitted in groups at scheduled intervals. Used when real-time is not required or during onboarding. |
YousrERP supports both modes, configurable per company.
Invoice Types
| Type | Description |
|---|---|
| Standard Invoice (B2B) | For business-to-business transactions. Requires buyer VAT registration number. |
| Simplified Invoice (B2C) | For business-to-consumer transactions. No buyer VAT needed, uses a different format. |
| Credit Note | For returns and adjustments β submitted as a related document. |
| Debit Note | For purchase returns affecting your books. |
What Happens When You Submit an Invoice
You submit Sales Invoice in YousrERP
β
System checks ZATCA compliance rules
β
XML is generated (UBL 2.1 format)
β
XML is cryptographically signed
β
Invoice is sent to ZATCA Fatoora portal
β
ZATCA responds: Accepted / Rejected / Pending
β
Status updates on the invoice in YousrERP
β
QR code and XML are embedded in the invoice
Document Sections
| Section | Description |
|---|---|
| Onboarding Setup | Initial ZATCA registration, CSID generation, device setup |
| ZATCA Dashboard | Understanding the integration dashboard and KPIs |
| Invoice Status & Response | How to check ZATCA status, read clearance responses |
| Integration Logs | Viewing and understanding ZATCA API logs |
| Handling Rejections | What to do when ZATCA rejects an invoice |
| ZATCA Business Settings | Company-level ZATCA configuration reference |
| Troubleshooting | Common issues and how to resolve them |
Start with Onboarding Setup to get your company registered with ZATCA.