← All work
Portfolio project · Open source · Live demo

PINT-AE Preflight: UAE e-invoice validation before you send

On the demo dataset, 83 of 84 invoices were flagged across 10 root causes; four approved fixes cleared 39 invoices.

TypeOpen-source portfolio project
Demo companyRaml Home (fictional)
RoleDesigned and built end to end
Tests41 automated tests

Portfolio project on fictional demo data. Preflight is a pre-submission check; the ASP’s full PINT AE schematron remains the final word.

Preflight report view: real screenshot of the demo
Preflight report view: real screenshot of the demo

Overview

The UAE is introducing mandatory e-invoicing in phases: invoices are issued as structured PINT AE XML through an Accredited Service Provider (ASP), which checks them against the rules. Under the Ministry of Finance schedule, businesses with annual revenue of AED 50 million or more go live on 1 January 2027, businesses below that threshold on 1 July 2027, and government entities on 1 October 2027. Most failures come from master data, not the invoice itself.

Source: UAE Ministry of Finance, eInvoicing. Regulatory dates last checked 29 November 2026.

Problem

One bad customer or item record breaks every invoice that uses it, and finance teams can find out only after the ASP rejects them.

Role & ownership

I designed and built it alone, working from the Ministry of Finance mandatory-fields list and the Peppol PINT AE rule set.

Workflow

  1. Import an ERP export as CSV, including Arabic Windows-1256 files and Arabic digits.
  2. Enter company details once.
  3. Review failures grouped by root cause, ranked by how many invoices each blocks, with the rule ID and the exact XML line.
  4. Approve certain fixes; nothing changes without a person, and every approval is logged and reversible.
  5. Export ready invoices as PINT AE UBL 2.1 XML, a readiness report and the corrected CSV.

Implementation

  • Over 20 UAE rules, including TRN and TIN formats, emirate codes, VAT categories and line arithmetic with decimal-safe maths.
  • Fixes are proposed only where they are certain; a mistyped tax number is left to finance.
  • Runs entirely in the browser under a Content Security Policy that blocks all network access.

Tech stack

JavaScript, Node.js (no dependencies), PINT AE UBL 2.1, node:test.

Results

On the demo dataset: 83 of 84 invoices flagged across 10 root causes; 4 approved fixes cleared 39 invoices. These are demo results, not real ASP rejections. 41 automated tests cover rules, import edge cases and security.