If you are wiring an ERP into UAE e-invoicing, three things will cost you the most time: the Schematron rules your ASP runs after XSD validation, the TRN and TIN identifier formats, and the fact that an HTTP 200 from your ASP does not mean the document was accepted. Everything below is about getting those three right.
Key facts at a glance
- PINT AE is a UBL 2.1 XML profile. The UAE Ministry of Finance's Electronic Invoicing Guidelines V1.1 define 51 mandatory fields drawn from a library of 130+.
- The specification identifier (IBT-024) must begin with
urn:peppol:pint:billing-1@ae-1. - Validation runs in layers: UBL 2.1 XSD → shared PINT rules → AE jurisdiction rules (
IBR-nnn-AEandALIGNED-IBRP-*). - VAT identifiers must be 15-digit TRNs that start with 1 and end in 03 (
IBR-132-AE); the seller tax registration identifier is a 10-digit TIN (IBR-148-AE). - Standard-rated lines must carry a rate of exactly 5.00 (
IBR-190-AE). - You cannot submit directly to the FTA. Transmission goes through an MoF-Accredited Service Provider under the 5-corner DCTCE model.
- Phase 1 (revenue ≥ AED 50m): ASP appointed by 30 October 2026, go live 1 January 2027. Phase 2: appoint by 31 March 2027, go live 1 July 2027.
Most UAE e-invoicing articles are written for finance managers. This one is written for the person who has to make the XML come out right. It assumes you own an ERP, CRM, POS or billing system and you need it to produce PINT AE documents and get them accepted by an Accredited Service Provider (ASP) before your phase deadline.
Everything here comes from building and running this integration for real: generating PINT AE from a PHP ERP, failing a lot of validations, and reading the actual Peppol rule files rather than vendor summaries. Where a detail is specific to one ASP, it is flagged as such.
The architecture you are building into
The UAE uses a 5-corner Decentralised Continuous Transaction Control and Exchange (DCTCE) model. Understanding the corners tells you exactly where your code stops and someone else's starts:
| Corner | Who | Your responsibility |
|---|---|---|
| C1 | Seller (your customer) | Source of invoice data |
| C2 | Seller's ASP | You integrate here. Build the document, call their API |
| C3 | Buyer's ASP | Nothing — routing is handled on the network |
| C4 | Buyer | Nothing |
| C5 | Federal Tax Authority | Nothing — both ASPs report; you never call the FTA directly |
This is the single most common misconception in briefs we receive: clients ask for "an FTA API integration". There is no such thing for a taxpayer's software. Your system talks to an ASP, and the ASP talks to the network and the FTA. If a vendor offers you a direct FTA submission endpoint, something is wrong.
PINT AE: what you are actually generating
PINT AE is the UAE profile of the Peppol International Invoice (PINT) model. The syntax is UBL 2.1 — the same XML grammar used by Peppol in Europe, Singapore and Australia. PINT AE is the vocabulary layered on top: UAE VAT categories, TRN formats, Emirate codes and reverse-charge handling.
A minimal skeleton, with the elements that trip people up annotated:
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<!-- IBT-024: must start with the AE billing prefix (ALIGNED-IBRP-001-AE) -->
<cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID>
<cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>
<cbc:ID>INV-2026-0001</cbc:ID>
<cbc:IssueDate>2026-11-17</cbc:IssueDate>
<cbc:DueDate>2026-12-17</cbc:DueDate> <!-- IBR-127-AE: required when amount due > 0 -->
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="0235">100000000000003</cbc:EndpointID>
<cac:PartyTaxScheme>
<!-- IBR-132-AE: 15 digits, starts with 1, ends in 03 -->
<cbc:CompanyID>100000000000003</cbc:CompanyID>
<cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PostalAddress>
<!-- IBR-128-AE: Emirate subdivision must come from the AE code list -->
<cbc:CountrySubentityCode>AE-DU</cbc:CountrySubentityCode>
<cac:Country><cbc:IdentificationCode>AE</cbc:IdentificationCode></cac:Country>
</cac:PostalAddress>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="AED">50.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="AED">1000.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="AED">50.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<!-- IBR-190-AE: standard rate must be exactly 5.00 -->
<cbc:Percent>5.00</cbc:Percent>
<cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="AED">1000.00</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Description>Consultancy services</cbc:Description> <!-- IBR-125-AE -->
<cac:CommodityClassification>
<!-- IBR-188/189-AE: HS for goods, SAC for services -->
<cbc:ItemClassificationCode listID="SAC">998311</cbc:ItemClassificationCode>
</cac:CommodityClassification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="AED">100.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="C62">1</cbc:BaseQuantity> <!-- IBR-126-AE -->
</cac:Price>
</cac:InvoiceLine>
</Invoice>
The validation stack, and why XSD passing means nothing
Your document goes through three gates. Most teams build for the first and get blindsided by the third.
The AE rules use identifier prefixes IBR-nnn-AE, ALIGNED-IBRP-nnn and ALIGNED-IBRP-AE-nn-AE. Build your test suite directly against them. These are the ones that caused us the most rework:
| Rule | What it enforces | Why it bites |
|---|---|---|
IBR-132-AE | VAT identifiers are 15 digits, start with 1, end in 03 | Imported customer data has TRNs with spaces, dashes or the wrong length |
IBR-148-AE | Seller tax registration identifier is a 10-digit TIN | Teams send the 15-digit TRN in the TIN field. The TRN is generally the TIN plus a suffix — they are not interchangeable |
IBR-190-AE | Standard-rated items use a 5.00 rate | Systems storing 5 or 0.05 fail on formatting, not arithmetic |
IBR-147-AE | Line net = qty × (net price / base qty) + line charges − line allowances | Base quantity defaults to null; discounts applied at header level only |
ALIGNED-IBRP-S-09 | Tax amount = taxable amount × rate | Line-level vs total-level rounding produces one-fils mismatches |
IBR-002-AE | Exchange rate limited to six decimal places | Float arithmetic emits 8+ decimals |
IBR-159-AE | Exchange rate required when currency is not AED | Multi-currency invoices with no rate captured at issue time |
IBR-128-AE | Emirate subdivision codes from the AE list | Free-text "Dubai" instead of AE-DU |
IBR-055-AE / IBR-158-AE | Credit notes need a preceding invoice reference and a reason code | Legacy credit notes have neither |
IBR-103-AE / IBR-162-AE | Reverse-charge lines need a buyer VAT ID and zero line VAT | Reverse charge modelled as a note rather than a VAT category |
IBR-196-AE | Incoterms must be provided | Nobody captures Incoterms in a services ERP |
IBR-184–189-AE | Classification codes by item type, HS for goods and SAC for services, with minimum digit counts | Product catalogues have no classification codes at all |
The pattern is clear: almost every failure is a data-model problem, not a serialisation problem. Your XML writer will be the easy part. Adding Incoterms, SAC codes, Emirate codes, base quantities and structured credit-note references to a schema that never had them is the real project.
Rounding: the bug you will ship
Arithmetic rules are evaluated to the fils. If your ERP rounds per line and your totals are computed from unrounded values, you will produce documents that are internally inconsistent by a fils and get rejected by ALIGNED-IBRP-S-09.
Pick one policy and enforce it in a single place:
// PHP: one rounding helper, used everywhere. Never round twice.
function fils(float $v): string {
return number_format(round($v, 2), 2, '.', '');
}
// Line: round the extension, then build totals FROM the rounded lines.
$lineNet = round($qty * ($netPrice / $baseQty), 2);
$lineVat = round($lineNet * 0.05, 2);
// Totals: sum the already-rounded line values. Do not re-derive from raw inputs.
$taxable = array_sum(array_column($lines, 'net'));
$vatTotal = array_sum(array_column($lines, 'vat'));
Then assert it before you ever call the ASP. A pre-flight check that runs the arithmetic rules locally will save you hundreds of round trips:
// Pre-flight: fail fast, locally, before burning an ASP API call.
assert(fils($taxable * 0.05) === fils($vatTotal),
'ALIGNED-IBRP-S-09 would fail: VAT total does not match taxable x rate');
We open-sourced our generator and validator for exactly this reason — see pint-ae on GitHub, a PHP toolkit that builds and checks PINT AE documents locally.
Calling the ASP API: the patterns that matter
ASP APIs are not standardised. Each one wraps the same PINT AE payload in its own envelope. But the integration concerns are identical across all of them, and these are the ones to design for on day one.
HTTP 200 is not acceptance
This is the mistake that cost us the most. Several ASP APIs return 200 OK for a request that was received and then rejected at validation. The per-document outcome lives inside the response body, typically in a results array:
// Do NOT do this:
if ($response->status === 200) { markAsSubmitted($invoice); } // WRONG
// Do this: read the per-document result.
$result = $body['data']['results'][0] ?? null;
if (!$result) {
throw new AspProtocolError('No per-document result in response');
}
switch ($result['status']) {
case 'ACCEPTED': markAccepted($invoice, $result['documentId']); break;
case 'REJECTED': storeValidationErrors($invoice, $result['errors']); break;
default: markPending($invoice, $result['documentId']);
}
Equally, an authentication failure can surface as a 404 rather than a 401. We once read "HTTP 404, credentials accepted" as proof that auth worked; it was not. The API key had been copied truncated. Verify auth with a call that returns real data, not with the absence of a 401.
Idempotency is mandatory, not optional
A timeout does not tell you whether the document was submitted. Without an idempotency key, your retry creates a duplicate e-invoice, which is a compliance problem rather than a bug. Generate a stable key from the document identity — never from the clock or a random value:
// Stable across retries for the same document version.
$idempotencyKey = hash('sha256', implode('|', [
$tenantId, $sellerTrn, $invoiceNumber, $documentVersion,
]));
$headers = [
'Authorization' => 'Bearer ' . $apiKey,
'Content-Type' => 'application/json',
'Idempotency-Key' => $idempotencyKey,
];
Treat submission as asynchronous
Clearance is not instant. Model the document lifecycle as a state machine and persist every transition with the raw ASP response attached. A realistic set of states:
DRAFT -> VALIDATED_LOCAL -> QUEUED -> SUBMITTED
-> ACCEPTED | REJECTED | FAILED_TRANSPORT
REJECTED -> (fix data) -> DRAFT // new version, new idempotency key
Never let a user edit an ACCEPTED document in place. Corrections go out as credit notes, and IBR-055-AE requires the structured reference back to the original.
Webhooks: verify the signature, then re-fetch
Most ASPs push status changes by webhook. Two rules: verify the HMAC signature with a timing-safe comparison, and treat the payload as a notification rather than as truth. Re-fetch the document status from the API before you change state on the strength of an inbound request.
$expected = hash_hmac('sha256', $rawBody, $webhookSecret);
if (!hash_equals($expected, $signatureHeader)) {
http_response_code(401);
exit;
}
// Signature good. Now confirm against the API rather than trusting the body.
$status = $asp->getDocumentStatus($payload['documentId']);
The blocker nobody warns you about: ASP linkage
You can have perfect XML, working credentials and a clean sandbox, and still be unable to submit a single document. The reason is participant onboarding.
Before an ASP can transmit on a seller's behalf, that seller must be a registered participant and must have nominated the ASP — a step the taxpayer performs in EmaraTax, not something your API call can do. Until it is done, submissions fail with errors along the lines of ASP linkage required or seller is not an onboarded participant.
Practical consequences for your project plan:
- You cannot test with an arbitrary dummy TRN. Inventing one and expecting it to work will waste a week. Ask your ASP for a pre-linked test seller on their sandbox, in writing, before you schedule integration testing.
- Source onboarding is separate. Several ASPs register the emitting system by a source name and version. If yours is not registered, documents fail validation even with a valid seller. Make the source name and version configurable, not hard-coded.
- Peppol participant identifiers in the UAE use the
0235scheme with the TRN, i.e.0235:<TRN>. Store the scheme separately from the identifier. - Verify endpoints against written documentation. ASP support chatbots have confidently given us hostnames that do not exist. Check the published developer docs, and keep a notes file recording the envelope shape that actually worked, with dates.
If you serve more than one client
Building this once for one company is a contained job. Building it as a service across many clients changes the design. The decisions that mattered most for us:
- One ASP per tenant, not one ASP per platform. Clients arrive with their own provider, or switch. Put the ASP behind an interface with one adapter per provider, and store the provider, credentials, endpoint, source name and version per tenant.
- Isolate tenant data. A database per tenant, or at minimum hard row-level scoping with every query filtered by tenant. Cross-tenant invoice leakage is not a bug you recover from commercially.
- Keep every artefact. Persist the generated XML, the JSON envelope sent, the raw response and the rendered PDF against each document version. When a client or an auditor asks what was submitted, you need the bytes, not a reconstruction.
- Store inside the UAE. Article 11 of Ministerial Decision No. 243 of 2025 requires electronic documents to be stored in the UAE. Check where your hosting and your backups physically are.
- Make validation a service your client can call. Returning errors into their ERP, in their language, is worth more than silently fixing data. It also keeps the data-quality work with the people who own the data.
A realistic implementation order
On our builds the split has been roughly 60% data modelling and migration, 25% ASP integration and operational plumbing, 15% XML generation. If a proposal in front of you is priced mostly as "XML export", it is priced wrong.
Where we fit
We are a software studio, not a tax adviser and not an Accredited Service Provider — and under the accreditation rules we cannot be one. What we do is the engineering layer: our custom ERP and CRM products generate PINT AE natively, and we build the mapping, validation and ASP integration for businesses already running something else. If you want to see the pipeline working, the live demos include the invoicing flow, and pint-ae is open source so you can read the implementation before you talk to us.
If you are scoping this, the CRM and ERP connection guide covers the business-side decisions, what PINT AE is explains the format without code, and choosing an ASP walks through provider selection. For the build-versus-configure decision, see custom ERP versus Zoho and Odoo for UAE e-invoicing.
Frequently asked questions
Can my software submit e-invoices directly to the UAE FTA?
No. Under the UAE's 5-corner DCTCE model, a taxpayer's system submits to an MoF-Accredited Service Provider, which transmits on the Peppol-style network and reports to the Federal Tax Authority. There is no direct taxpayer-to-FTA submission API, and any vendor offering one has misunderstood the model.
What format must a UAE e-invoice be in?
PINT AE, the UAE profile of the Peppol International Invoice specification, expressed as XML using the UBL 2.1 syntax. The UAE Ministry of Finance's Electronic Invoicing Guidelines V1.1 define 51 mandatory fields from a library of over 130. PDF, Word, Excel, images and scanned documents do not qualify, even when digitally signed.
Why does my PINT AE invoice pass XSD validation but get rejected?
Because XSD only checks structure. Rejection almost always comes from the Schematron layers that run afterwards: the shared PINT rules and the UAE jurisdiction rules with identifiers like IBR-132-AE and ALIGNED-IBRP-S-09. These check arithmetic consistency, identifier formats, code lists and VAT category logic. Build your test suite against those rule identifiers rather than against the schema.
What is the difference between a TRN and a TIN in PINT AE?
They are different fields with different formats and are not interchangeable. Under IBR-132-AE a VAT identifier is 15 digits, starts with 1 and ends in 03. Under IBR-148-AE the seller tax registration identifier is a 10-digit TIN. The TRN is generally the TIN with a suffix appended. Sending the TRN in the TIN field is one of the most common integration failures.
Why do my submissions fail even though my credentials work?
Most likely participant onboarding. Before an ASP can transmit for a seller, that seller must be a registered participant who has nominated the ASP in EmaraTax, and on some platforms the emitting system must also be registered as a source with a name and version. Neither can be done through your API. Ask your ASP for a pre-linked test seller before scheduling integration testing.
Does an HTTP 200 response mean my e-invoice was accepted?
No. Several ASP APIs return 200 for a request that was received and then rejected at validation. The per-document outcome is inside the response body, typically in a results array. Parse that result and only mark a document accepted on an explicit acceptance status. Authentication failures can also surface as 404 rather than 401, so verify auth with a call that returns real data.
How long does a UAE e-invoicing integration take to build?
For a single company on an existing system, plan two to four months end to end, with roughly 60% of the effort on data modelling and migration rather than XML generation. The commercial steps often take longer than the code: NDA, sandbox access, service agreement and the client's own EmaraTax nomination. Start those in parallel with development.
When do I need to be live?
Businesses with annual revenue of AED 50 million or more had to appoint an Accredited Service Provider by 30 October 2026 and must go live on 1 January 2027. Businesses below AED 50 million must appoint by 31 March 2027 and go live on 1 July 2027. Government entities go live on 1 October 2027.
