EN16931 Format
EN16931 is the European standard for electronic invoicing, defining the semantic data model used across the EU.
Overview
| Property | Value |
|---|---|
| Standard | EN 16931-1:2017 |
| Type | Pure XML |
| Region | European Union |
| Use Case | Cross-border B2B/B2G |
What is EN16931?
EN16931 is a semantic standard that defines:
- What information an e-invoice must contain
- How that information is structured
- Business rules for validation
It does not define the syntax (XML format). Instead, it has two syntax bindings:
| Syntax | Description |
|---|---|
| UBL 2.1 | Universal Business Language |
| CII D16B | UN/CEFACT Cross-Industry Invoice |
Relationship to Other Formats
EN16931 is the foundation for:
| Format | Based On | Additions |
|---|---|---|
| ZUGFeRD | EN16931 + CII | German extensions |
| Factur-X | EN16931 + CII | French extensions |
| XRechnung | EN16931 | German B2G rules |
| Peppol BIS | EN16931 + UBL | EU interoperability |
When to Use EN16931
Use pure EN16931 format when:
- Trading with EU partners who require the standard
- No country-specific format is required
- Maximum interoperability is needed
Configuration
Enable EN16931
Stores >Configuration > MageB2B > E-Invoice:
- Set Default B2B Format: EN16931
- Set Validation Level: Standard or Strict
Syntax Selection
The extension uses CII (Cross-Industry Invoice) syntax by default, which is compatible with ZUGFeRD/Factur-X.
Generated Files
| File | Path Example |
|---|---|
| XML | pub/media/einvoice/invoice-100000001-en16931.xml |
Note: in this module, credit memo generation supports ZUGFeRD and XRechnung.
Validation
EN16931 validation includes:
- Core data model compliance
- Business rules (BR-xx rules)
- Country-specific rules (if applicable)
EU E-Invoicing Directive
EN16931 was created to fulfill EU Directive 2014/55/EU, which mandates:
- All EU public sector entities must accept EN16931 invoices
- Cross-border B2G invoicing uses this standard
- Member states can require additional national rules
Best Practices
- Use for cross-border EU transactions
- Validate against BR rules before sending
- Consider Peppol for B2G delivery
- Test with recipient systems
