Home Knowledge Base Document Standards

Document Standards & Formats

Navigate the complex landscape of electronic invoice formats: from traditional EDI standards to modern XML-based specifications and emerging semantic models for structured business data.

Why Standards Matter

Document standards define the language of electronic invoicing, ensuring that systems can understand and process invoice data consistently across organizations and borders.

An electronic invoice is more than just a PDF or image file—it's a structured data message containing precise information about goods, services, prices, taxes, and payment terms. Standards define how this information is organized, formatted, and transmitted.

Different standards evolved to serve different industries, regions, and use cases. Understanding these formats is essential for system integration, partner connectivity, and compliance with regulatory requirements.

Syntax Standards

Define the technical structure and encoding rules for organizing invoice data into machine-readable formats.

Semantic Models

Establish the business meaning and relationships between invoice elements across different implementations.

Regional Variations

Accommodate local tax rules, legal requirements, and business practices in different countries and markets.

Classic EDI Message Formats

Electronic Data Interchange standards have powered B2B commerce for decades, with EDIFACT and ANSI X12 dominating global and North American markets respectively.

UN/EDIFACT

Global Standard

UN/EDIFACT (United Nations/Electronic Data Interchange for Administration, Commerce and Transport) is the international EDI standard developed under the United Nations. It dominates electronic business communications in Europe, Asia, and most international trade.

Key Characteristics

  • Message Types: INVOIC (invoice), ORDERS (purchase order), DESADV (despatch advice), and 200+ other transaction types
  • Structure: Hierarchical segments with data elements, following strict positional rules
  • Versions: Regular directory updates (D.96A, D.01B, etc.) add new features and elements
  • Syntax: Fixed-length or delimited fields using separators like ' (segment), + (element), : (component)

Industry Adoption

Particularly strong in automotive manufacturing, retail distribution, healthcare, and public sector procurement across Europe. Many sector-specific subsets exist (EANCOM for retail, ODETTE for automotive).

ANSI X12

North America

ANSI X12 (American National Standards Institute X12) is the dominant EDI standard in the United States, Canada, and organizations doing business with North American partners.

Key Characteristics

  • Transaction Sets: 810 (invoice), 850 (purchase order), 856 (advance ship notice), among hundreds of standardized documents
  • Structure: Segment-based with elements and sub-elements, more flexible than EDIFACT positioning
  • Versions: Released annually with version identifiers (004010, 005010, etc.)
  • Syntax: Uses * (element separator), ~ (segment terminator), and > (sub-element separator)

Industry Adoption

Nearly universal in US healthcare (required for HIPAA), strong in retail, logistics, and financial services. Many trading partnerships require specific X12 versions and implementation guides.

EDIFACT vs. ANSI X12

When to Use EDIFACT

  • Trading with European partners
  • International supply chains
  • UN or government procurement
  • Global retail networks

When to Use ANSI X12

  • US-based trading partners
  • Healthcare transactions (HIPAA)
  • North American logistics
  • Financial institutions in US

XML-Based Invoice Formats

Contemporary eInvoicing has shifted toward XML-based standards that offer greater flexibility, human-readability, and easier integration with modern systems.

UBL (Universal Business Language)

ISO/IEC 19845

UBL is an OASIS standard for electronic business documents, designed to provide a common XML vocabulary for invoices and other commercial transactions. It's the foundation for many modern eInvoicing implementations.

Key Characteristics

  • Structure: Comprehensive XML schema with clear hierarchy and named elements
  • Extensibility: Support for custom extensions while maintaining core interoperability
  • Versions: UBL 2.0, 2.1, 2.2, 2.3 with progressive enhancements
  • Document Types: Invoice, Credit Note, Order, Despatch Advice, and 65+ business documents

Global Adoption

Forms the basis of Peppol BIS (Business Interoperability Specifications), European Norm (EN 16931), and many national eInvoicing formats. Widely adopted in public procurement across Europe, Asia Pacific, and Latin America.

Technical Example


  INV-2024-001
  2024-12-17
  380
  
    
      
        Supplier Company
      
    
  

CII (Cross Industry Invoice)

UN/CEFACT

CII is a UN/CEFACT XML standard designed as an XML alternative to EDIFACT, offering similar semantic coverage with modern syntax. It's particularly popular in German-speaking markets.

Key Characteristics

  • Design Philosophy: Bridges traditional EDIFACT concepts with XML technology
  • Structure: More compact than UBL with abbreviated element names
  • Versions: D16B is the basis for EN 16931 CII profile
  • Flexibility: Multiple context-specific subsets for different industries

Adoption Context

Chosen by Germany's ZUGFeRD/XRechnung initiatives and Austria's ebInterface. Compliant with European Standard EN 16931, making it fully interoperable with UBL-based systems at the semantic level.

EN 16931: The European Semantic Model

EN 16931 establishes a core invoice data model that ensures interoperability between different technical formats across the European Union.

Understanding EN 16931

EN 16931 doesn't define a new format—instead, it defines the semantic model (what information must be present and what it means) while allowing implementation in multiple syntaxes (UBL, CII, and potentially others).

This "syntax-agnostic" approach means an invoice created in UBL format can be semantically equivalent to one created in CII format, enabling interoperability without requiring format conversion at the business level.

Core Components

Mandatory Elements

Essential data that must appear in every compliant invoice, including invoice number, dates, parties, and totals.

Optional Elements

Additional information that can be included when relevant, such as project references or delivery details.

Business Rules

Validation rules ensuring logical consistency and completeness of invoice data.

Code Lists

Standardized values for elements like currency codes, tax categories, and unit measures.

Regulatory Context

EN 16931 is mandated for public sector invoicing across all EU member states as of April 2020. Many countries have extended requirements to B2B transactions or use it as the basis for national eInvoicing standards.

National Implementations: Germany (XRechnung), France (Factur-X), Italy (FatturaPA with mapping), Netherlands (NLCIUS), and others have created profiles or extensions of EN 16931.

National & Regional Formats

Many countries have developed their own eInvoicing standards to address specific legal, tax, or business requirements within their jurisdictions.

🇩🇪

XRechnung (Germany)

Base: EN 16931 (UBL & CII)

Mandate: Required for B2G since November 2020

Features: Strict German public sector requirements, Leitweg-ID routing identifier

🇫🇷

Factur-X / ZUGFeRD (France/Germany)

Base: Hybrid PDF/A-3 with embedded XML (EN 16931 CII)

Mandate: Factur-X mandatory for French B2G and B2B (phased)

Features: Human-readable PDF with machine-readable embedded data

🇮🇹

FatturaPA (Italy)

Base: Custom XML schema

Mandate: Required for all B2B and B2C since 2019

Features: Clearance through SdI (Sistema di Interscambio) platform

🇪🇸

Facturae (Spain)

Base: Custom XML schema based on UBL concepts

Mandate: Required for B2G transactions

Features: Multiple digital signature options, tax authority registration

🇸🇬

InvoiceNow (Singapore)

Base: Peppol BIS Billing 3.0 (UBL)

Mandate: Nationwide network, voluntary adoption

Features: Government-supported Peppol network for all businesses

🇦🇺

A-NZ PEPPOL BIS (Australia/NZ)

Base: Peppol BIS 3.0 with local extensions

Mandate: Required for Australian government suppliers

Features: Trans-Tasman recognition, GST-specific elements

Format Conversion & Transformation

In practice, organizations often need to work with multiple formats. Understanding conversion strategies and maintaining semantic consistency is crucial.

Semantic Mapping

Converting between formats at the business meaning level, ensuring that invoice information retains its intended purpose even when syntax changes.

  • EN 16931 provides common semantic model for UBL ↔ CII conversion
  • EDIFACT INVOIC can map to UBL with careful field alignment
  • Custom formats require detailed mapping specifications

Gateway Services

Third-party platforms or access point providers that handle format transformation automatically, allowing parties to use their preferred formats.

  • 4-corner networks typically include transformation capabilities
  • 3-corner BSPs manage format conversion centrally
  • Reduces technical burden on individual organizations

Canonical Models

Maintaining an internal standard format within your organization and converting external formats in/out of your canonical representation.

  • Simplifies integration of multiple external partners
  • Common in enterprise ESB (Enterprise Service Bus) architectures
  • Requires robust transformation and validation layers

Common Conversion Challenges

Information Loss

Source format may contain data elements not present in target format, requiring decisions about what to preserve and what to discard.

Ambiguity Resolution

Some elements have slightly different meanings across formats, requiring careful interpretation and potential data enrichment.

Version Compatibility

Different versions of the same standard may have structural differences, requiring version-aware transformation logic.

Extension Handling

Custom extensions in source format typically cannot be preserved in target format, requiring bilateral agreements.

Standard Selection & Implementation

Choosing the Right Standard

  • Trading Partner Requirements: Start with what your key partners use or require
  • Regulatory Mandates: Check local requirements—some formats are legally required
  • Network Strategy: If joining Peppol or similar networks, use their specified formats
  • Industry Norms: Consider what's standard in your sector and region
  • System Capabilities: Evaluate what your ERP or accounting system supports natively

Implementation Recommendations

  • Validation First: Implement robust validation against schema and business rules
  • Version Management: Plan for supporting multiple versions simultaneously during transitions
  • Testing Procedures: Establish thorough testing with real partner scenarios
  • Documentation: Maintain clear specifications for your implementation
  • Error Handling: Design graceful handling of validation failures and format issues
  • Monitoring: Track format-related errors and conversion success rates

Ready to Optimize Your Invoice Processing?

Choosing and implementing the right document standards is critical for successful eInvoicing. Our technical experts can guide you through format selection, mapping specifications, and integration strategies.