UBL, Peppol BIS and the shape of a business system: why implementing an e-invoicing standard is more than supporting an XML format
ChatGPT prompted by Stephen D Green, November 2026 (diagrams removed)
There is an important difference between a system that can exchange UBL documents and a system that genuinely implements the business semantics and processes defined by the Peppol e-invoicing specifications.
The distinction matters because standards such as UBL, EN 16931 and Peppol BIS do more than prescribe the structure of an electronic document. Together, they establish a substantial part of the vocabulary, information requirements, validation rules and business-process expectations that an interoperable invoicing system must support.
They do not, however, define an entire accounts payable, accounts receivable or accounting system.
Understanding where the standards' influence begins and ends is important when designing the domain model, choosing an architecture and deciding which business rules should be treated as stable contracts.
From a document format to a business specification
UBL (Universal Business Language), developed by OASIS, provides standardised XML document models for common business transactions. It includes documents such as invoices, credit notes, orders and despatch advice.
On its own, UBL provides a vocabulary and structural model. Its XML schemas define the permitted document structures, data types and cardinalities.
EN 16931 adds a European semantic model for electronic invoicing. It defines business terms and their meanings, including invoice identifiers, seller and buyer information, invoice lines, tax information and monetary totals.
Peppol BIS Billing 3.0 takes this further. It is a Core Invoice Usage Specification (CIUS) of EN 16931. It specifies how the European semantic model is to be used within the Peppol environment, including restrictions, code lists, identifiers, validation rules and requirements for exchanging invoices and credit notes.
This relationship is significant:
- UBL provides a structured document syntax.
- EN 16931 provides the semantic model and business terms.
- Peppol BIS Billing defines a particular interoperable usage of that model, including additional constraints and business rules.
Peppol BIS is therefore not simply an XML format specification. It is a business interoperability specification.
Peppol BIS influences what an invoicing system must do
Consider an organisation implementing Peppol BIS Billing 3.0.
At the most basic level, it needs to generate and receive conformant invoices and credit notes. But that requirement has consequences for the capabilities and information model of the system.
For example, the specification requires the invoice to carry information that supports:
- Accounting and financial recording.
- Verification against contracts, purchase orders and delivered goods or services.
- VAT reporting.
- Auditing.
- Payment.
These are not incidental technical concerns. They are recognised business functions for which the invoice must provide relevant information.
This has a direct influence on the system's domain.
An implementation needs to represent sellers, buyers, invoice lines, quantities, prices, tax categories, allowances, charges, payment terms, monetary totals and references to related business documents.
It also needs to understand the relationships between those concepts.
For example, an invoice is not merely a document containing a total amount. Its lines, quantities, prices, allowances, tax classifications and tax amounts contribute to the financial meaning of the document. The payable amount must be consistent with the applicable calculation rules.
Likewise, an invoice reference to a purchase order or contract is not just another string field. It provides a link to the commercial transaction that the invoice is intended to represent.
The standard therefore influences more than the structure of an XML document. It influences the information model and the features that an invoicing system needs to provide.
The importance of explicit cardinality and business rules
One of the advantages of the UBL and Peppol approach is that the expected structure is made explicit.
For example, the Peppol BIS Billing specification defines the invoice structure using cardinalities. The invoice must contain exactly one seller and one buyer, at least one invoice line, and exactly one set of document totals. Other elements have their own specified occurrence constraints.
This is important because the structure is not left to individual developers or consumers to infer.
The specification also defines rules that go beyond XML schema validation. For example, it requires a business process identifier, a specification identifier, buyer and seller electronic addresses, and a buyer reference or purchase order reference.
There are also rules governing relationships between values, such as the calculation of allowances and charges.
This illustrates an important distinction:
A document can be valid XML without being a valid Peppol invoice.
Validation therefore takes place at several levels:
- XML well-formedness and UBL schema conformance.
- EN 16931 semantic and business-rule validation.
- Peppol-specific restrictions and validation rules.
- Any applicable national rules, profiles and organisational requirements.
A system that merely checks whether an XML document conforms to the UBL XSD has not necessarily implemented Peppol BIS.
The business rules are part of the contract, not optional application enhancements.
Peppol BIS goes beyond the invoice document
Perhaps the most interesting aspect of Peppol BIS is that it explicitly considers the business processes surrounding the exchange of invoices.
The billing process described by the specification involves a supplier issuing and sending an invoice, followed by the buyer receiving and processing it.
The buyer may approve the invoice, post it to the accounting system and pass it for payment. Alternatively, the buyer may reject it or dispute part of it and request a credit note or corrected invoice.
The specification also identifies several invoicing scenarios, including invoicing against purchase orders, invoicing based on contracts, pre-payment, spot payment and credit notes.
This is a much richer picture than a document format alone.
It gives an implementation a defined business context and a set of expected interactions.
However, there is an important boundary. Peppol BIS describes the requirements for interoperable business-document exchange; it does not prescribe every internal workflow or accounting operation that an organisation must implement.
For example, it does not define a complete payment-processing system. It does not prescribe how a payment is authorised, how partial payments are allocated, how refunds are executed, or how an organisation manages its credit-control process.
It provides information that supports these activities, but the organisation must implement the wider business behaviour itself.
That distinction prevents a common architectural mistake: assuming that implementing the invoice standard is equivalent to implementing the entire invoicing and accounting domain.
What does this mean for the domain model?
This is where Domain-Driven Design (DDD) becomes particularly useful.
A system implementing Peppol BIS should not treat the UBL XML document as its domain model simply because UBL is the standardised representation used for exchanging invoices.
The document model and the domain model serve related but different purposes.
The UBL document describes the information being exchanged. The domain model describes the business concepts, relationships, state and behaviour that the organisation needs to manage.
For example, a UBL invoice contains information about payment terms and payment instructions. An internal accounts receivable domain might additionally need to represent:
- Payments received.
- Payment allocations.
- Outstanding balances.
- Overpayments.
- Refunds.
- Disputed amounts.
- Credit adjustments.
- Reconciliation status.
These are related concepts, but they are not all part of the UBL invoice document.
Similarly, an invoice's document status should not be confused with its financial status. An invoice can be validly issued and exchanged through Peppol without having been paid. A successful document transmission does not establish that the recipient has approved the invoice, nor that the underlying commercial transaction has been settled.
DDD provides a way to keep these concepts distinct while maintaining a coherent business language.
A useful division might be:
|
Bounded context |
Responsibility |
|
Invoicing |
Invoice creation, validation, issue and correction |
|
Peppol integration |
Document conformance, exchange and delivery |
|
Accounts payable |
Supplier invoice verification, approval and posting |
|
Accounts receivable |
Customer balances, receipts and payment allocation |
|
Payments |
Payment execution, status and reconciliation |
|
Tax |
Tax treatment, calculation and reporting |
These boundaries are not prescribed by Peppol. They are design decisions informed by the organisation's business responsibilities.
The important thing is that the standardised invoice semantics are preserved when information crosses those boundaries.
Peppol BIS as a published language and stable contract
In DDD terminology, Peppol BIS can be understood as a form of Published Language.
It provides a common, governed representation that different organisations and software systems can use to exchange business information.
This is valuable because each organisation can maintain its own internal domain model while still participating in a shared business ecosystem.
For example, one organisation might use a relational database with an invoice aggregate, invoice-line entities and separate payment-allocation records. Another might use a different internal architecture.
They do not need identical internal models. They need to agree on the meaning and structure of the information exchanged.
Peppol BIS provides much of that agreement.
It also reduces the scope for arbitrary interpretation. A receiving system should not have to guess whether a monetary value represents an invoice total, a tax amount or an amount payable. The standard defines business terms and their intended meanings.
This is especially important in financial systems, where superficially similar values can have quite different accounting implications.
There is also a governance benefit. Changes to the specification, its validation rules and its code lists can be assessed as changes to an external contract, rather than treated as informal changes to an application's internal JSON or database structures.
That does not mean the standard never changes. It means that changes are managed through an identifiable specification and release process.
Why a relational transactional core still makes sense
The existence of a standardised semantic model does not dictate a particular database technology.
However, the nature of the business domain has implications for the persistence architecture.
Invoices, payments, refunds and accounting entries involve relationships, financial invariants and transactions that must be recorded consistently.
A relational database is a natural choice for this operational core because it provides:
- Explicit schemas and constraints.
- Referential integrity.
- Transactional updates.
- Well-defined relationships.
- Strong consistency within transaction boundaries.
- A practical foundation for reconciliation and audit queries.
The original UBL document can be retained as an immutable source artefact, while its business information is mapped into the relational domain model.
The application can then validate the document, process the invoice, record financial transactions and maintain the relationships required for audit.
This does not mean that a relational database guarantees that the information is complete or correct. External events, payment-provider responses and other business interactions still need to be reconciled. But it gives the organisation a well-defined transactional foundation for maintaining its authoritative financial records.
Nor does adopting Peppol require a microservices architecture. The relevant bounded contexts can be implemented as modules within a modular monolith, sharing a transactional database where appropriate. Separate deployment and distributed transactions should be introduced because there is a genuine operational or organisational reason, not simply because the integration standard is distributed.
What Peppol BIS does not give you
It is worth being precise about the limits of the standard.
Peppol BIS Billing does not provide a complete enterprise ontology, an entire accounting model or a complete set of organisational business processes.
It does not determine:
- The complete lifecycle of an invoice within an organisation.
- The rules for approving supplier invoices.
- The accounting treatment of every financial transaction.
- The allocation of payments across multiple invoices.
- The handling of refunds and overpayments.
- The design of the general ledger.
- The organisation's internal controls and authorisation policies.
- The complete audit and reconciliation process.
It also does not guarantee that a conformant invoice represents a genuine commercial transaction. The specification explicitly recognises invoice verification as an internal buyer control. The recipient still needs to establish that the invoice relates to an authentic transaction and verify it against relevant orders, contracts and delivery information.
This is an important distinction between standardising the information needed to support a business process and implementing the business process itself.
A layered architecture for standards-based business systems
I would therefore suggest thinking about a Peppol-enabled invoicing system in the following way:
External interoperability
Peppol network and access-point services
The infrastructure through which business documents are exchanged.
Published business contract
Peppol BIS · EN 16931 · UBL
Document semantics, syntax, cardinalities, code lists and validation rules.
Domain and application model
DDD bounded contexts and business rules
Invoicing, accounts payable, accounts receivable, payments, tax and accounting.
Transactional persistence
Relational database and document archive
Authoritative financial records, constraints, transaction history and original exchanged documents.
The layers are conceptually distinct, but they should be deliberately aligned.
The external standard establishes the shared semantics. The domain model implements the organisation's interpretation and behaviour. The persistence layer maintains the authoritative operational records.
The mapping between these layers is an important piece of architecture in its own right. It should be explicit, tested and governed.
Conclusion: implementing Peppol should influence the business model, not dictate the whole system
The significance of Peppol BIS is that it moves the discussion beyond whether an application can read and write XML.
A meaningful implementation has to understand and support a defined set of business concepts, relationships, document structures, validation rules and invoicing scenarios. These requirements necessarily influence the system's domain model and its capabilities.
But the standard is not a substitute for domain modelling.
A well-designed system should use EN 16931 and Peppol BIS as authoritative foundations for its electronic invoicing semantics and external contracts. It should then use DDD to model the wider business domain, including the processes and rules that the standards do not cover.
This approach provides a useful balance:
- Stability: established business terms, document structures and interoperability contracts.
- Consistency: explicit rules for the information exchanged between organisations.
- Agility: freedom to evolve internal implementations without unnecessarily changing external contracts.
- Auditability: traceable relationships between exchanged documents and authoritative financial records.
- Modularity: clear separation of business responsibilities without requiring premature distribution into microservices.
Ultimately, the value of a standard such as Peppol BIS is not simply that two systems can exchange an invoice. It is that they can exchange it with a shared understanding of what the information means and what business purpose it serves.
That is a much stronger architectural foundation than treating the invoice as an arbitrary collection of fields in an XML or JSON document.
References and further reading
- OpenPeppol – Post Award Technical Documentation — official documentation and release information for Peppol specifications.
- Peppol BIS Billing 3.0 – Specification — scope, business processes and requirements.
- Peppol BIS Billing – Accounting, verification, auditing and VAT reporting — the business functions supported by the invoice.
- Peppol BIS Billing – UBL invoice structure — the document structure and cardinalities.
- Peppol BIS Billing – Validation rules — examples of Peppol-specific business rules.
Editorial note: Peppol specifications are versioned and periodically updated. An implementation should identify and govern the precise BIS release, applicable national requirements and validation artefacts against which it claims conformance.