1. Home
  2. UAE E-Invoicing Hub
  3. Custom ERP & Integration

Custom ERP & Integration

Validate First, Submit Second: Local PINT AE Validation Step by Step

Your provider will reject invalid documents. Finding out on your own machine, in milliseconds, is better than finding out in production.

SZ
Sahil ZainiCRM & ERP Development
·2026-11-24·3 min read
Updated 24 Nov 2026 · checked against MoF Guidelines v2.0

Local validation of a UAE e-invoice means checking the XML against the UBL 2.1 schema and then against the published PINT AE schematron rules, exactly as an Accredited Service Provider does. The schemas and rule sets are public. You can run them with command-line tools, embed them in your application, automate them in continuous integration against a corpus of scenario documents, or use a browser-based validator for ad-hoc checks. Validating locally reduces rejections to near zero and keeps your issuance within the 14-business-day window.

Key facts at a glance

  • Two layers: XSD (UBL 2.1) then schematron (PINT AE).
  • Rule sets are public on docs.peppol.eu under the AE profile.
  • Results list rule IDs (e.g. IBR-103-AE) with severity and message.
  • Automate in CI against a scenario corpus; run at release on every real document.
  • Browser validators keep your data on your machine; useful for finance users.

Step 1: Get the artefacts

Download the UBL 2.1 XSD package from OASIS and the current PINT AE schematron from the Peppol documentation site. Note the release identifiers; you will pin them. If your provider publishes its own copy or additional rules, obtain those too and record the version.

Step 2: Run schema validation

# Command line with xmllint
xmllint --noout --schema UBL-Invoice-2.1.xsd invoice.xml

Schema errors are about structure: unknown elements, wrong order, missing required elements. Fix these before looking at business rules, because a schema-invalid document produces misleading schematron output.

Step 3: Run schematron validation

# Compile schematron to XSLT once (ISO skeleton), then apply
saxon -s:invoice.xml -xsl:pint-ae.xsl -o:report.svrl
# Inspect failed assertions
xmllint --xpath "//*[local-name()='failed-assert']" report.svrl

The SVRL report lists failed assertions with their IDs, flags (fatal or warning) and messages. Fatal failures mean rejection; warnings mean review.

Step 4: Interpret and fix

Rule familyUsual causeUsual fix
Arithmetic / ALIGNEDRounding at different stagesSingle calculation order; round once per level
Identifier (IBR-xxx-AE)Missing or malformed TIN/TRNValidate master data; derive TIN correctly
Category alignmentLine category without breakdownGenerate one subtotal per category/rate present
Code listUnit, currency or reason code outside listsMap to permitted codes
ReferencesCredit note without billing referenceMake original invoice number mandatory on credit notes

Step 5: Automate

Keep a corpus of scenario documents (one per invoice type you issue) in your repository. On every build, generate each from fixed input data and validate; fail the build on any fatal assertion. At runtime, validate each real document before calling the provider and block submission on fatal results, routing them to a finance queue with the rule messages translated into plain language.

Where Zaini Developers fits in

Our free browser-based PINT AE validator runs these exact rules client-side, and the engine in pint-ae runs them server-side. In client builds we wire both: finance users check ad hoc, the pipeline checks every document.

Book a free consultation →

Frequently asked questions

Is local validation identical to my provider's validation?

It should be for the published rules. Providers may add platform-specific checks; ask for the list.

Which XSLT processor do I need?

Schematron compiled with the ISO skeleton generally needs XSLT 2.0 or later; Saxon-HE is the common choice.

Can finance staff validate without developers?

Yes, with a browser validator: drop the XML, read the results in plain language.

How often do the rules change?

Peppol publishes releases periodically; subscribe to the AE profile changelog and re-run your corpus on each release.

This guide explains published UAE rules in plain language and is not tax or legal advice; confirm your own position with a registered tax adviser. Zaini Developers is not an Accredited Service Provider (ASP); we build and connect systems that transmit through MoF-accredited ASPs. Product names belong to their owners.
Free E-Invoicing Readiness CheckAnswer 8 quick questions and get your score and action plan.
Check my readiness

Let's build together

Need your system e-invoicing ready?
We build and connect it.

We build e-invoicing-ready ERP, CRM and POS systems and connect existing software to UAE e-invoicing.

Chat on WhatsApp