All rules · pint-ae · error
ibr-132-ae
A Tax Registration Number must be exactly 15 digits, start with 1, and end with 03 — with no spaces, dashes, or 'TRN' prefix.
Reviewed
Why this rule exists
The FTA matches the TRN against its taxpayer registry. Any formatting variation fails the lookup and the invoice is rejected downstream even though it looks correct to a human reading it.
Why it usually happens
- Copying the TRN from a PDF or a portal that renders it as '100-123456789-00003'
- Storing the TRN as a display-formatted string in the ERP's customer master, spaces and all
- Prefixing the value with 'TRN ' because that is how it appears on letterhead
- Excel silently converting a long numeric TRN to scientific notation during an import
How to fix it
Strip every non-digit character immediately before serialization, then assert the result is 15 digits.
<cbc:CompanyID>TRN 100-123456789-00003</cbc:CompanyID>
<cbc:CompanyID>100123456789003</cbc:CompanyID>
The official rule
VAT identifier [IBT-031, IBT-048, IBT-063, BTAE-14] should be TRN [VAT registration number] and must be 15 digits, starting with 1, ending with 03.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
string-length(.) = 15 and starts-with(., "1") and ends-with(., "03") and matches(., "^[0-9]+$")
Applied to nodes matching cac:Party[cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'AE']/cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID)) = 'VAT']/cbc:CompanyID
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-ae-2026.5 | pint-ae | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.3 | pint-ae | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Related rules
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator