# Saudi Arabia ZATCA Phase 2 (Fatoora) Clearance & Cryptographic QR Hub (Saudi Arabia (KSA))

> **Direct Answer (AEO Summary):** Complete ZATCA Phase 2 Fatoora compliance platform. Generate and validate UBL 2.1 XML, SHA-256 invoice hashes, ECDSA cryptographic signatures, and 9-Tag TLV Base64 QR codes. *Zakat, Tax and Customs Authority (ZATCA) E-Invoicing Regulation Resolution No. 01-12-20 & Phase 2 Integration Waves.*. Mandatory for all taxpayers within designated revenue waves for B2B (Clearance) and B2C (Reporting).

## Wettelijke & Technische Vereisten (Saudi Arabia (KSA))
| Property | Specification |
| :--- | :--- |
| **Jurisdiction** | 🇸🇦 Saudi Arabia (KSA) |
| **Wetgeving** | Zakat, Tax and Customs Authority (ZATCA) E-Invoicing Regulation Resolution No. 01-12-20 & Phase 2 Integration Waves. |
| **Wettelijke Deadlines** | Mandatory for all taxpayers within designated revenue waves for B2B (Clearance) and B2C (Reporting). |
| **Technische Syntax** | OASIS UBL 2.1 XML with ZATCA XML Extension (SecurityDefinition, UBL Extensions, Cryptographic Stamp). |
| **Normatief Profiel-ID** | `reporting:1.0 / clearance:1.0` |
| **Studio** | https://einvoice.eightyfive.cloud/nl/saudi-zatca-phase-2 |

## Belangrijkste gecontroleerde regels voor Saudi Arabia (KSA):
- **BR-KSA-03 (UUID v4 Identifier):** Every invoice must carry a globally unique RFC 4122 Version 4 UUID in cbc:UUID.
- **BR-KSA-08 (15-Digit Saudi VAT TIN):** Seller tax identification number must be exactly 15 numeric digits starting and ending with 3.
- **BR-KSA-27 (9-Tag TLV Base64 QR):** Must embed Base64-encoded TLV QR with Tags 1 to 9 (including XML hash, ECDSA signature, public key).
- **BR-KSA-09 (Saudi National Address):** Seller address must include 4-digit Building Number, Street, City, Postal Code, and Country Code SA.

## Veelgestelde vragen: E-facturatie in Saudi Arabia (KSA)
### What is the difference between ZATCA Phase 1 and Phase 2?
Phase 1 required simple generation of a QR code containing 5 basic tags. Phase 2 requires strict UBL 2.1 XML integration, cryptographic stamps, SHA-256 hashes, ECDSA signatures, and live clearance/reporting with the Fatoora platform.

### How does EightyFive decode and verify ZATCA Phase 2 QR codes?
Our engine extracts the Base64 TLV payload, validates tag lengths, inspects Tags 1–9, and verifies the 15-digit Saudi VAT TIN checksum.
