E-invoicing and management software: integration with the SdI

Management software 7 min read
Abstract illustration of a digital document traveling between management software and a central system

Integrating e-invoicing into management software means generating the XML file in FatturaPA format from orders, jobs or contracts already recorded, transmitting it to the Italian Revenue Agency's Exchange System (SdI) through an intermediary, and automatically receiving outcomes, rejections and supplier invoices. The benefit is eliminating the retyping of data into a second program and keeping the status of every document under control.

Let's look at how the system works, the technical choices and the mistakes to avoid. For tax matters (regimes, special cases, rates), your accountant remains the reference.

The picture in brief

In Italy, e-invoicing to the Public Administration has been mandatory for years, and since January 1, 2019 the obligation has extended to invoices between private parties (businesses, professionals and final consumers) among parties resident or established in the country. The initial exemptions were later reduced: in particular, since January 1, 2024 the obligation also covers all taxpayers under the flat-rate regime. Some special cases provided for by law remain, to be checked with your advisor.

In practice, for almost all Italian companies an invoice is an XML file that goes through the SdI. The question is no longer "whether" to adopt it, but how to integrate it well into your processes.

How the SdI works

The Exchange System (SdI) is the Italian Revenue Agency's platform that receives electronic invoices, runs formal checks and delivers them to the recipient. The flow, in short:

  1. the management software generates the invoice in FatturaPA XML format, according to the technical specifications published by the Italian Revenue Agency;
  2. the file is transmitted to the SdI, directly or through an intermediary;
  3. the SdI checks the file (structure, VAT number or tax code, data consistency, duplicates);
  4. if the checks fail, it sends a rejection notice: the invoice is considered not issued and must be corrected and resubmitted;
  5. if the checks pass, it delivers the invoice to the recipient through the recipient code or certified email (PEC) provided, and sends the sender a delivery receipt;
  6. if delivery is not possible, it sends a receipt of failed delivery: the invoice is still issued and is made available to the recipient in their reserved area.

The FatturaPA XML format

An electronic invoice is a structured XML file: each piece of data (supplier, customer, line items, rates, nature of non-taxable or exempt transactions, payment terms) has a specific field. Some elements the management software needs to pay attention to:

  • document type: invoice, credit note, deferred invoice, self-invoice and the other codes provided by the specifications;
  • nature code for VAT-exempt transactions, which must be chosen correctly for the case;
  • recipient details: seven-character recipient code, certified email (PEC), or the conventional code provided when these are not available (for example for final consumers);
  • stamp duty where applicable;
  • references to orders, contracts, delivery notes, useful to the customer for reconciliation.

The technical specifications are updated periodically: integrated management software must be maintained to keep up with them. It is one of the reasons why, in most cases, it is best to entrust transmission to a specialized intermediary.

The e-invoice cycle: Data from the management software, FatturaPA XML file, Sending to the intermediary, SdI checks, Receipts and delivery, Retention
The path of an electronic invoice from the company's management software to the customer, through the SdI.

Direct submission or through an intermediary?

There are several ways to get invoices to the SdI:

MethodHow it worksWhen it makes sense
Italian Revenue Agency portalManual file upload or online entryVery few invoices, no integration
Intermediary via APIThe management software sends the file to an accredited provider that transmits it, receives notifications and often offers retentionThe most common choice for custom management software
Accredited direct channelThe company's system communicates with the SdI through an accredited channel (for example web services)Large volumes and dedicated technical structures

With an intermediary via API, the management software takes care of generating correct documents and showing the outcomes; the intermediary handles transmission, signing when required, receipt of notifications and often legally compliant digital retention. Costs are usually a subscription or document bundles, and modest for an SME.

The payables cycle: supplier invoices

Integration is not only about invoices issued. Invoices received arrive as XML and can be imported into the management software automatically through the intermediary, with concrete benefits:

  • automatic matching with purchase orders and delivery notes;
  • updating purchase costs and average inventory prices;
  • always up-to-date payment schedule;
  • consistency checks between quantities ordered and invoiced.

It is one of the cases where artificial intelligence can also help, for example to classify line items and costs; we cover this in AI automation: business processes to automate.

What well-integrated management software should do

  1. Generate the invoice from existing data: order, job, recurring contract, e-commerce order. Never retype.
  2. Validate before sending: check VAT number, tax code, recipient code, nature codes and totals before the SdI rejects the document.
  3. Show the status of each document: sent, delivered, undelivered, rejected.
  4. Alert in case of rejection with a readable reason and the option to correct and resend within the deadlines.
  5. Number correctly, handling numbering series and credit notes.
  6. Export to accounting or to the accountant's office in the agreed format.
  7. Track changes: who issued what and when.

If sales come from an online store, orders become invoices without manual steps: the connection is described in integrating management software and e-commerce.

Common mistakes

  • Incomplete customer records: missing recipient code or certified email (PEC), wrong VAT numbers. Cleaning up customer data is the first step.
  • VAT nature codes chosen at random: they cause rejections or, worse, invoices that are formally valid but wrong for tax purposes.
  • Unmonitored rejections: a rejected invoice has not been issued. If no one notices, the problem surfaces months later.
  • Two systems: management software for orders and a second software for invoices, with data copied by hand.
  • Forgotten retention: invoices must be retained according to the applicable rules; the Italian Revenue Agency offers a free retention service upon enrollment, and many intermediaries include it.

Privacy and security

Invoices contain personal data and sometimes sensitive information (for example in healthcare). The intermediary processes this data on behalf of the company and must be appointed as data processor. Role-based access and activity logs complete the picture: see GDPR and management software.

How we work at NEXO

In the management software we develop, e-invoicing is designed as part of the flow: from quote or order to invoice, to the SdI outcome, to export for the accountant's office. We rely on accredited intermediaries via API, chosen based on volumes and required services, and work with the client's accountant to define rules and special cases.

We work from Ischia with companies in Naples, Campania and all over Italy. You can find the full approach on the page about custom management software with integrated e-invoicing; if you are evaluating a new system, start from custom or off-the-shelf management software. For accommodation businesses, the topic overlaps with guest bills and daily receipts: see management software for accommodation businesses.

Frequently asked questions

Can the management software send invoices to the SdI on its own?

It can do so through an accredited channel, but for most companies it is simpler and safer to go through an intermediary connected via API, which handles transmission, notifications and often retention.

What happens if an invoice is rejected?

A rejected invoice is considered not issued. It must be corrected and resubmitted within the deadlines set by law and by the Italian Revenue Agency's clarifications, generally keeping the original number and date.

Do I have to retain electronic invoices even though the SdI already has them?

Yes, legally compliant digital retention is an obligation separate from transmission. You can join the free service of the Italian Revenue Agency or use a retention provider, often included in intermediaries' services.

Do sales to final consumers always require an electronic invoice?

Not always: for many consumer-facing businesses, electronic daily receipts are issued, and an invoice only on request. The rules depend on the business: they should be defined with your accountant and then reflected in the management software.

Want invoices, orders and payments to flow through the same system? Message us on WhatsApp or by email from the contact page.

  • e-invoicing
  • sdi
  • fatturapa
  • xml
  • intermediary
  • management software
  • sdi notifications

We start from what you have.

Tell us about your business: we will tell you what you need and where to start. We reply within one business day.

WhatsApp