Skip to main content

Extract data from Italian FatturaPA e-invoices

In Italy an invoice that is not routed through the government exchange does not legally exist. Every FatturaPA passes through the Sistema di Interscambio (SdI), the clearance platform run by the Agenzia delle Entrate, which checks each invoice and delivers it to the recipient, so the field that governs delivery, the Codice Destinatario, is as important as the amount. That seven-character recipient code addresses a private business, a six-character code addresses a public administration through the IPA index, and the value 0000000 tells the SdI to deliver by certified email (PEC) instead. Alongside it a FatturaPA names the supplier partita IVA (the VAT number) and Codice Fiscale (the tax code, 16 characters for an individual or 11 digits for an entity), the buyer identifiers, and the supplier regime fiscale, the tax-regime code from RF01 ordinario through RF19 forfettario that determines how VAT is applied. Italian VAT specifics are what a generic invoice reader misses. Document types are TD codes, TD01 for an invoice, TD04 for a credit note, TD24 for a deferred invoice, and when a line carries no VAT the invoice must state a natura, the non-taxability code from N1 through N7 that explains why, backed by a normative reference. Chargeability, the esigibilita IVA, is I for immediate, D for deferred, or S for split payment, which shifts who remits the tax. Where the invoice is exempt or below the VAT threshold, virtual stamp duty (bollo virtuale) of 2.00 EUR applies once the non-VAT amount passes 77.47 EUR. Each line states its AliquotaIVA rate, typically 22, 10, 5, or 4 percent, and the VAT summary groups the taxable base by rate. Talonic reads the FatturaPA, whether the SdI-cleared XML rendered to PDF or a printed copy, into a structured record that keeps the national fields on top of the EN 16931 core. An invoice numbered 2026/RF/00512 from Meccanica Lombarda S.r.l. (partita IVA IT03574920123, regime RF01) to Studio Ferrari S.r.l., addressed to Codice Destinatario USAL8PV, returns its two lines, a 22% IVA of 5,940.00 EUR, and a total of 32,940.00 EUR that an Italian accounting system posts.

What gets extracted from Italian FatturaPA e-invoices

Codice DestinatarioUSAL8PV7 chars private, 6 chars PA, 0000000 = PEC
Document TypeTD01TD01 invoice, TD04 credit note, TD24 deferred
Supplier Partita IVAIT03574920123
Supplier Codice Fiscale03574920123
Regime FiscaleRF01RF01 ordinario through RF19 forfettario
VAT Nature (natura)N2.2N1-N7, required when VAT rate is 0
VAT ChargeabilityIesigibilita IVA: I immediata, D differita, S split
CurrencyEURISO 4217
Line ItemsArray: description, quantity, unit price, AliquotaIVA, VAT amount
Tax Amount (IVA)5,940.00 EUR
Total (da pagare)32,940.00 EUR

How extraction works for Italian FatturaPA e-invoices

A FatturaPA is structured XML by design but reaches many teams as the SdI-cleared file rendered to PDF or a printed copy, and the national routing and VAT fields still have to be recovered. Talonic classifies the document and maps each value to the FatturaPA field set held in the Field Registry, the country-specific extensions the Agenzia delle Entrate maintains on top of the EN 16931 core, so the Codice Destinatario, the PEC address when it is 0000000, the partita IVA and Codice Fiscale of both parties, and the regime fiscale resolve by meaning rather than position. TD document type is read from the source, each line keeps its AliquotaIVA rate and its natura when the rate is 0, the esigibilita IVA chargeability is captured, and whether virtual stamp duty applies is flagged. VAT summary lines are checked to foot the taxable base and IVA to the total. Confidence and a pixel-region pointer for each field conform to DIN SPEC 91491, so an Italian accountant can verify a Codice Destinatario or a natura against the source. The extraction structures what the invoice states and does not determine the VAT treatment owed.

Sample extraction

An SdI-cleared FatturaPA with two lines at 22% IVA

{
  "document_number": "2026/RF/00512",
  "document_date": "2026-06-10",
  "document_type": "TD01",
  "supplier.name": "Meccanica Lombarda S.r.l.",
  "supplier.vat_number": "IT03574920123",
  "supplier.tax_id": "03574920123",
  "supplier.address": "Via Ticino 44, 20090 Segrate MI, Italy",
  "buyer.name": "Studio Ferrari S.r.l.",
  "buyer.vat_number": "IT09876540159",
  "recipient.destination_code": "USAL8PV",
  "currency": "EUR",
  "regime_fiscale": "RF01",
  "vat_chargeability": "I",
  "stamp_duty_applied": false,
  "payment_due_date": "2026-07-10",
  "iban": "IT60X0542811101000000123456",
  "line_items": [
    {
      "line_number": "1",
      "description": "Fresatrice CNC 3 assi",
      "quantity": 1,
      "unit_of_measure": "PZ",
      "unit_price": 24000,
      "line_amount_net": 24000,
      "vat_rate": 22,
      "vat_amount": 5280,
      "line_amount_gross": 29280
    },
    {
      "line_number": "2",
      "description": "Set utensili in metallo duro",
      "quantity": 4,
      "unit_of_measure": "PZ",
      "unit_price": 750,
      "line_amount_net": 3000,
      "vat_rate": 22,
      "vat_amount": 660,
      "line_amount_gross": 3660
    }
  ],
  "vat_summary": [
    {
      "vat_rate": 22,
      "taxable_amount": 27000,
      "vat_amount": 5940,
      "total_amount": 32940
    }
  ],
  "total_amount_net": 27000,
  "tax_amount": 5940,
  "total_amount": 32940
}

Frequently asked

What is the Codice Destinatario, and does the extractor read it?

It is the recipient routing code the SdI uses to deliver the invoice: seven characters for a private business, six for a public administration via the IPA index, or 0000000 when delivery is by certified email (PEC). It is captured along with the PEC address so the invoice can be matched to the recipient channel.

Which Italian party tax identifiers come out?

The supplier and buyer partita IVA (VAT number) and Codice Fiscale (tax code, 16 characters for an individual or 11 digits for an entity), and the supplier regime fiscale from RF01 ordinario through RF19 forfettario, which determines the VAT treatment.

How are the VAT specifics captured?

The TD document type, the AliquotaIVA rate per line, the natura code from N1 to N7 when a line is not taxed, the esigibilita IVA chargeability of I, D, or S, and whether virtual stamp duty (bollo) applies over 77.47 EUR. The VAT summary is checked to foot the taxable base and IVA to the total.

Does it decide the VAT treatment or clear the invoice with the SdI?

No. Talonic structures what the FatturaPA states and links each value to its place on the document. Determining the correct VAT treatment and clearing the invoice through the Sistema di Interscambio are outside the extraction.

Author note

Reviewed by Talonic engineering · last reviewed 2026-07-07