Skip to content

Guide

How to create a UBL invoice (e-invoice XML)

A UBL invoice is an invoice as structured XML instead of a PDF, so the receiver’s software can book it automatically. This guide explains what goes into one and how to make a valid Peppol BIS Billing 3.0 UBL invoice without writing XML yourself.
Standard
UBL 2.1, following EN 16931
Common profile
Peppol BIS Billing 3.0
Dutch rules
NLCIUS (SI-UBL 2.0)
File type
.xml

What UBL, EN 16931 and Peppol BIS mean

UBL (Universal Business Language) is the XML format. EN 16931 is the European standard that says which information an e-invoice must contain and how it must add up. Peppol BIS Billing 3.0 is the profile of EN 16931 used on the Peppol network, and NLCIUS adds a few Dutch rules for Dutch sellers.

The Peppol schema and validation rules

A Peppol invoice is checked in two layers. First the UBL 2.1 XML schema (XSD) checks the structure: which elements exist, in which order and with which data types. Then the Peppol BIS Billing 3.0 Schematron rules check the content: the EN 16931 rules (BR-…), such as totals that add up and required fields, and the PEPPOL rules (PEPPOL-EN16931-…), such as valid endpoint identifiers and codes. For Dutch sellers the NLCIUS rules come on top.

An access point or receiver can reject an invoice that fails either layer. The free InvokeXML validator checks the mandatory fields, the calculation rules and for UBL invoices the complete official Peppol BIS 3.0.21 and CEN EN 16931 Schematron rules, and shows each failed rule with its ID. It does not replace your access point’s validation.

What a UBL invoice contains

The same information as a normal invoice, but in fixed fields: invoice number and date, seller and buyer with name, address and VAT number, each line with quantity, price and VAT category, the VAT breakdown per rate, the totals, and payment details such as the IBAN. Every amount must add up exactly, because the receiver’s software checks it.

Creating one with InvokeXML

Edit invoice JSON in the browser editor, import it from a CSV file, or send it to the REST API. Use the visual editor for common invoice fields, or JSON for advanced options. InvokeXML calculates the totals and VAT breakdown, builds the UBL XML, and checks it against the EN 16931, Peppol and NLCIUS rules before you download it. Already have an XML file? Check it for free with the validator.

InvokeXML creates and checks the XML; it does not send invoices. To deliver an invoice over Peppol you need a Peppol access point. Many accounting packages include one, and you can upload the XML there.

General information, not legal or tax advice. Check the current rules with your accountant or the tax authority. All guides