Italian e-invoicing in plain words: SDI, FatturaPA and what a developer must know

Published 2026-11-06

The basic idea

In Italy, invoices between businesses are issued as structured electronic documents and passed through a central exchange system called the Sistema di Interscambio, usually shortened to SDI. The supplier does not send the invoice directly to the customer. It submits an XML file to SDI, which validates it and forwards it to the recipient.

The format

The invoice is an XML document following a national schema known as FatturaPA, with header sections for supplier, customer and transmission data, and a body with lines, amounts, tax rates and payment terms. The schema is strict: a wrong code, a missing mandatory element or an inconsistent total causes SDI to reject the file.

Developers usually generate the XML from structured data, then validate it against the official schema before sending, which catches most rejections locally.

How the recipient is identified

SDI delivers to the customer using a seven-character recipient code, or to a certified email address, known as PEC, when no code is available. Private consumers without a code are handled with a default code, and the invoice is made available in their personal area of the tax portal. Collecting the correct code and tax identification numbers up front avoids many failures.

Notifications you must handle

After submission, SDI replies asynchronously: a receipt that the file was delivered, a notice that it was rejected with error codes, or a notice that the recipient could not be reached. A robust integration stores the status of each invoice, reacts to every notification type and gives the user a clear way to correct and resend a rejected document.

Keep the original XML and the notifications, because invoices must be retained for years under the applicable rules.

Build or connect

You can connect to SDI through an accredited intermediary or build your own channel, which requires accreditation. Most small products integrate with an intermediary's API. Whichever way, treat the details as time-sensitive: rules, schema versions and deadlines change, so check the official technical specifications before building, and consult an accountant for fiscal questions this overview does not cover.

© 2026 The Good Fellas