UBL 2.1 XML Export.
What UBL XML export is, who needs it, what InvoiceScript exports, and what it does not do.
UBL 2.1 XML Export
For: bookkeepers and developers who need structured invoice data for accounting systems or regulatory compliance.
What UBL is
UBL (Universal Business Language) is an XML standard for structured business documents. Version 2.1 defines how to represent invoices, credit notes, orders, and other documents in a machine-readable format.
EN 16931 is the European standard that defines the core data model for electronic invoices. InvoiceScript's UBL export uses an EN 16931-compatible data mapping.
Who needs it
You might need UBL XML export if:
- Your accountant's software can import structured invoices (many European accounting packages do)
- Your government is phasing in e-invoicing mandates (Germany requires structured B2B e-invoices, Italy has mandatory FatturaPA, France is expanding from 2026)
- Your customers require structured invoice data for their procurement systems
What InvoiceScript exports
The XML file includes:
- Supplier details (your company name, address, VAT number)
- Buyer details (customer name, address, VAT number)
- Invoice number, issue date, due date, currency
- Line items with descriptions, quantities, unit prices, and tax information
- Tax categories: S (standard rate), Z (zero rate), AE (reverse charge), E (exempt)
- Totals: subtotal, tax amounts per rate, grand total
- Payment means: IBAN, BIC, and bank name when present
- For credit notes: billing references linking back to the original invoice
What it does not do
InvoiceScript exports a local XML file. It does not:
- Send invoices over the Peppol network
- Submit invoices to government portals (KSeF in Poland, FatturaPA in Italy, SDI, etc.)
- Validate the XML against a specific national profile
- Guarantee compliance with any particular national mandate
The export covers the EN 16931 core data model. Whether that satisfies your jurisdiction's specific requirements depends on your local regulations. Some countries accept EN 16931 UBL directly. Others require country-specific extensions or a different format.
Talk to your accountant or tax advisor about what your jurisdiction requires.
Related pages
Ready to build?
One-time purchase. Self-hosted. Own every file forever.