FatturaPA to UBL 2.1
Learn how to transform your Italian electronic invoices (FatturaPA) into Universal Business Language format for international business transactions.
Understanding FatturaPA Format
FatturaPA (Fattura Elettronica) is the official Italian electronic invoice format mandated by the Agenzia delle Entrate. It's a pure XML format that contains all invoice data in a structured, machine-readable format designed for automatic processing by the Italian tax system (SDI).
Key characteristics of FatturaPA:
- Pure XML format with no visual representation
- Specific Italian tax fields and VAT codes
- Mandatory for all B2B and B2G transactions in Italy
- Requires digital signature for transmission
- Processed through the Sistema di Interscambio (SDI)
- Contains specific Italian fiscal requirements
FatturaPA Structure Example
FatturaPA uses a specific XML schema (SdiFatturaPA). Below is an example of how a supplier is defined in FatturaPA:
<CedentePrestatore>
<DatiAnagrafici>
<IdFiscaleIVA>
<IdPaese>IT</IdPaese>
<IdCodice>12345678901</IdCodice>
</IdFiscaleIVA>
<Anagrafica>
<Denominazione>Italian Company SRL</Denominazione>
</Anagrafica>
</DatiAnagrafici>
<Sede>
<Indirizzo>Via Roma 123</Indirizzo>
<CAP>00100</CAP>
<Comune>Roma</Comune>
<Nazione>IT</Nazione>
</Sede>
</CedentePrestatore>Understanding UBL 2.1 Format
UBL (Universal Business Language) is an international XML standard for electronic business documents. It's widely used in cross-border transactions and is the foundation for many e-invoicing systems, including the Peppol network.
Key characteristics of UBL 2.1:
- International ISO standard (ISO/IEC 19845)
- Flexible structure supporting various document types
- Widely adopted in global e-invoicing
- Compatible with Peppol and other networks
- Supports complex business rules and validations
- Extensible for custom requirements
UBL 2.1 Structure Example
UBL uses a different XML structure. The same supplier information in UBL format:
<cac:AccountingSupplierParty>
<cbc:CustomerAssignedAccountID>CUST123</cbc:CustomerAssignedAccountID>
<cac:Party>
<cac:PartyName>
<cbc:Name>Italian Company SRL</cbc:Name>
</cac:PartyName>
<cac:PartyLegalEntity>
<cbc:CompanyID schemeID="0002">12345678901</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:PostalAddress>
<cbc:StreetName>Via Roma 123</cbc:StreetName>
<cbc:CityName>Roma</cbc:CityName>
<cbc:PostalZone>00100</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>IT</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>IT12345678901</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
</cac:Party>
</cac:AccountingSupplierParty>Why Convert FatturaPA to UBL 2.1?
Converting between these formats is essential for:
- International business: Selling to customers outside Italy
- Global systems: Integration with international ERP systems
- Peppol compliance: Meeting international e-invoicing standards
- Multi-country operations: Companies with international presence
- System compatibility: Working with global trading partners
Conversion Process
Converting your FatturaPA to UBL 2.1 involves these key steps:
Step 1: Upload Your Invoice
Simply upload your FatturaPA XML file. The system automatically reads all the structured Italian invoice data.
Step 2: Format Transformation
Our converter transforms Italian format to international standard:
- Maps Italian field names to UBL standard elements
- Converts Italian tax codes to international categories
- Transforms Italian address formats to global standards
- Adjusts date and number formats for international use
- Preserves all invoice data and calculations
Step 3: International Compliance
The converted UBL file meets international requirements:
- Follows ISO/IEC 19845 standard specifications
- Compatible with Peppol and other global networks
- Supports international VAT and tax handling
- Includes proper currency and country codes
- Validates against UBL 2.1 schema requirements
Step 4: Quality Validation
Before generating the final file, the system performs thorough checks:
- Validates XML structure against UBL schema
- Ensures all required fields are present
- Checks business rules and calculations
- Verifies international formatting compliance
- Tests compatibility with receiving systems
Step 5: Download Ready-to-Use File
You receive a properly formatted UBL 2.1 file ready for international business transactions and system integration.
Common Conversion Issues
Be aware of these challenges when converting FatturaPA to UBL:
1. Structural Differences
The formats have different XML structures and element names:
| Field | FatturaPA | UBL 2.1 |
|---|---|---|
| Invoice Number | Numero | cbc:ID |
| Invoice Date | Data | cbc:IssueDate |
| Customer VAT | IdFiscaleIVA | cbc:EndpointID/PartyIdentification |
| Supplier VAT | IdFiscaleIVA | cbc:EndpointID/PartyIdentification |
| Line Items | DatiBeniServizi | cac:InvoiceLine |
| Payment Terms | DatiPagamento | cbc:PaymentTerms |
2. Tax System Differences
Italian and international tax systems have different requirements:
| Italian Tax Code | Description | International Equivalent |
|---|---|---|
| N1 | Standard VAT (IVA ordinaria) | Standard rate (S) |
| N2 | Zero VAT (Non soggetta IVA) | Zero rated (Z) |
| N3 | Exempt (Esente) | Exempt (E) |
| N4 | Reverse charge (Inversione contabile) | Reverse charge (AE) |
3. Address Format Conversion
Italian addresses need to be converted to international format:
- Province codes become part of address structure
- Italian postal codes integrate with international systems
- Country codes remain standard (IT)
- Street types follow international addressing standards
- Special characters are preserved according to international standards
Best Practices for Conversion
Follow these guidelines for successful conversion:
1. Preparation
- Validate FatturaPA file before conversion
- Check all Italian tax codes and VAT numbers
- Ensure address formats are correct
- Verify payment terms and bank details
2. Testing
- Test with sample invoices from your business
- Validate against UBL 2.1 schema requirements
- Check compatibility with target international systems
- Verify international formatting compliance
3. Documentation
- Keep conversion logs for audit purposes
- Document any special handling requirements
- Maintain mapping tables for consistency
- Store validation rules and exceptions
Benefits of UBL Conversion
Converting to UBL 2.1 format offers several advantages:
For International Business
- Global compatibility with trading partners
- Compliance with international e-invoicing standards
- Integration with global ERP and accounting systems
- Support for multi-language and multi-currency transactions
- Enhanced automation capabilities
For System Integration
- Standardized international format for system integration
- Better compatibility with international partners
- Reduced integration costs and complexity
- Improved data exchange capabilities
- Future-proof format for business growth