A step‑by‑step technical roadmap: from ASP integration, vendor invoice matching, immutable logs, to VAT auto‑filing. Design once, comply for years.
Key actors: FTA (regulator), ASP (Accredited Service Provider – the gateway), ERP/your software, and the business user. Your ERP never talks directly to FTA; it connects to an ASP, which validates, signs, transmits, and returns clearance.
pending_einvoiceclearance_id or rejection with errorcleared, store ASP reference, lock editing| Field | Purpose | Example |
|---|---|---|
einvoice_uuid | Globally unique ID (v4) generated by ERP | 550e8400-e29b-41d4-a716-446655440000 |
asp_status | pending / accepted / rejected / cancelled | accepted |
asp_reference_id | ID returned by ASP after clearance | INV-ASP-2026-12345 |
asp_submission_time | ISO timestamp of transmission | 2026-03-15T09:24:17+04:00 |
xml_hash | SHA-256 of sent XML for integrity | a665a45920422f9d417e4867efdc4fb8... |
last_asp_response | full JSON/XML response payload | { "clearanceId": ... } |
Never allow editing after clearance. Use credit note flow.
Recommended design: Receive XML from ASP → store in “E‑Invoice Inbox” table. Then step‑wise:
For services (no inventory), map directly to expense GL.
Define an interface (e.g., IEInvoiceProvider) with methods: sendInvoice(), checkStatus(), cancelInvoice(). Implement separate classes for each ASP.
Switching ASP? Only change the active provider class + reconfigure credentials – no core ERP changes.
Create an immutable log table: einvoice_transactions_log
id, document_id, direction (OUT/IN), request_payload, response_payload, timestamp, status, retry_count, error_codeEvery invoice unique ID
VAT codes per line (standard/zero/exempt)
If required by ASP
Based on company config
For PDF if needed
Since e‑invoices contain line‑level VAT codes, your VAT report can source directly from cleared invoices only. Build a VAT control table:
Technical & functional guidance
Market-ready solutions
Gap analysis & roadmap
ASP selection, architecture
Compliance check & SRS
100+ Expert Q&A
Expert tax guidance
We help developers with regulatory interpretation, ASP onboarding, VAT mapping, and certification preparation. Build once, comply for years.
This guide is updated for UAE PINT AE & FTA 2026 roadmap. Always refer to latest MoF/FTA specs.