XML syntax · active

OASIS UBL 2.1 Invoice

A widely used XML syntax for invoices, credit notes and related business documents. National and network profiles constrain the broad UBL schema.

Invoice XMLCreditNote XMLSelfBilledInvoice XML

Current version and implementation status

Version noteUBL 2.1 invoice syntax
Statusactive
Reviewed2026-08-02
FamilyXML syntax
Open official technical source

How to recognize the profile

Do not rely on the file extension alone. Inspect the root namespace, customization/profile identifiers, version values and authority-specific envelope.

  • urn:oasis:names:specification:ubl:schema:xsd:Invoice-2
  • cac:AccountingSupplierParty
  • cbc:CustomizationID

Production validation stack

  1. 1
    Well-formed XML

    Confirm that the document is well formed and structurally compatible with the intended UBL 2.1 syntax.

  2. 2
    UBL XSD

    Apply semantic and business-rule checks rather than accepting a file merely because it parses.

  3. 3
    Profile Schematron

    Validate currencies, countries, tax categories, units, payment means and other controlled values against the correct release.

  4. 4
    Country-specific business rules

    Apply the national, network or authority restrictions that narrow the base syntax.

EInvoiceLab’s browser tools provide detection, inspection and technical preflight. A profile is only production-valid after applying the correct official artefacts and obtaining the required network or authority outcome.

Common errors and corrective action

!
Wrong namespace

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

!
Missing CustomizationID

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

!
Unsupported code values

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

!
Incorrect monetary totals

Locate the relevant field and rule, correct the source mapping, rerun every validation layer, then preserve the final response.

Questions people ask

What is UBL 2.1?

A widely used XML syntax for invoices, credit notes and related business documents. National and network profiles constrain the broad UBL schema.

How is UBL 2.1 validated?

A production check normally applies Well-formed XML, UBL XSD, Profile Schematron, Country-specific business rules. Local browser preflight cannot replace the official validation artefacts or authority outcome.

Which version should I use?

The current research note is: UBL 2.1 invoice syntax. Confirm release notes at the official source before production deployment.

Practical tools

Inspect and prepare UBL 2.1 files