Universal Business Language 2.1 is the OASIS XML standard that Peppol's international invoice, and therefore PINT AE, is built on. A UAE e-invoice is a UBL Invoice (or CreditNote) document with a fixed element order: identifiers and dates, references, the supplier and customer party blocks, delivery and payment information, allowances and charges, tax totals, monetary totals and finally the invoice lines. PINT AE restricts cardinalities, mandates specific code lists and adds UAE business rules on top.
Key facts at a glance
- Standard: OASIS UBL 2.1; document types Invoice and CreditNote.
- Profile: PINT AE (Peppol International Invoice, UAE localisation).
- Element order is fixed by the schema; misordered elements fail schema validation before business rules run.
- Code lists: UNCL1001 document types, UNECE Rec 20 units, ISO 4217 currencies, ISO 3166 countries.
- Business rules are published as schematron with identifiers such as IBR-xxx-AE.
Top-level skeleton
<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">
<cbc:CustomizationID>…PINT AE identifier…</cbc:CustomizationID>
<cbc:ProfileID>…</cbc:ProfileID>
<cbc:ID>INV-2027-00042</cbc:ID>
<cbc:IssueDate>2027-01-12</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>
<cac:AccountingSupplierParty>…</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>…</cac:AccountingCustomerParty>
<cac:PaymentMeans>…</cac:PaymentMeans>
<cac:AllowanceCharge>…</cac:AllowanceCharge>
<cac:TaxTotal>…</cac:TaxTotal>
<cac:LegalMonetaryTotal>…</cac:LegalMonetaryTotal>
<cac:InvoiceLine>…</cac:InvoiceLine>
</Invoice>The exact CustomizationID and ProfileID values come from the current PINT AE release; take them from the specification rather than from examples found online, which drift between versions.
The party blocks
Each party contains an EndpointID with schemeID 0235 holding the TIN, a PartyName or PartyLegalEntity with the registered name, a PostalAddress with structured lines and an ISO country code, and a PartyTaxScheme carrying the TRN with the VAT scheme where the party is registered. The most frequent mistakes are placing the TRN in the EndpointID, omitting the country code, and putting an entire address into one line.
Tax totals and monetary totals
TaxTotal contains the total VAT amount and one TaxSubtotal per VAT category and rate, each with its taxable amount, tax amount and a TaxCategory block containing the category code, percentage and, for non-standard categories, an exemption reason code. LegalMonetaryTotal carries line extension total, tax-exclusive and tax-inclusive amounts, allowance and charge totals, prepaid amount and payable amount. PINT AE's arithmetic rules check that these agree with the lines to two decimals.
Invoice lines
Each InvoiceLine has an ID, an InvoicedQuantity with a unit code, a LineExtensionAmount, an Item with name and a ClassifiedTaxCategory, and a Price with the unit price. Line-level allowances and charges sit inside the line. Credit notes use CreditNoteLine with CreditedQuantity and must reference the original invoice through BillingReference.
| Element | Frequent error | Rule family |
|---|---|---|
| cbc:InvoiceTypeCode | Using 388 or free text instead of the permitted codes | Document type rules |
| cac:PartyTaxScheme/cbc:CompanyID | TRN missing on reverse-charge buyer | IBR-103-AE |
| cac:TaxSubtotal | Missing subtotal for a category used on a line | ALIGNED-IBRP-AE rules |
| cbc:InvoicedQuantity/@unitCode | Blank or non-UNECE code | Code list rules |
| cac:LegalMonetaryTotal | Rounding drift between lines and totals | Arithmetic rules |
Where Zaini Developers fits in
Our open-source pint-ae PHP library generates and validates these structures from plain arrays, and we use the same engine in client builds, so the XML your system emits is correct by construction rather than by trial and error.
Book a free consultation →Frequently asked questions
Can I use UBL 2.2 or 2.3?
PINT AE is defined on UBL 2.1 namespaces. Use 2.1.
Is JSON accepted instead of XML?
The exchanged document is UBL XML. Some providers accept JSON through their APIs and convert it; the legal document remains the XML.
Do I need to understand UBL if I use an accounting package?
No, but your vendor must. Ask them which PINT AE release they validate against.
Where is the official schema?
UBL 2.1 schemas are published by OASIS; the PINT AE profile and schematron are on docs.peppol.eu under the AE section.
