Accounts receivable in Italy

Sending FatturaPA sales invoices from Dynamics 365 Finance & Operations: from posting to the SDI receipt

How a posted sales document in Dynamics 365 Finance & Operations is sent through the Sistema di Interscambio as a FatturaPA file, what each status means, and how rejected documents are handled.

Updated 14 November 2026. 7 min read.

In Italy every invoice between businesses, to consumers and to the Public Administration is issued in the FatturaPA XML format and transmitted through the Sistema di Interscambio (SDI) of the Agenzia delle Entrate, which delivers it to the recipient and returns an outcome. For an Italian legal entity on Dynamics 365 Finance & Operations this means that every posted invoice, credit note and free text invoice is sent to SDI and its outcome is followed up.

This guide describes how a posted sales document is sent with Memento's Italian Electronic Invoicing app: the data required before posting, the sending, the outcomes returned by SDI and the handling of rejected documents. It also covers invoices to the Public Administration and the self-invoices for reverse charge purchases, which are sent through the same channel.

The process in three steps

  1. Posting. Sales documents are posted in the usual way. During posting the documents in scope are staged for sending.
  2. Sending. The app generates the XML file and sends it to the accredited intermediary's system, which transmits it to SDI and preserves it.
  3. Outcome. The outcomes returned by SDI are retrieved and update the status of each document.

Steps 2 and 3 can run in batch or by hand. It is recommended to send by hand at first, and to schedule the batch jobs once the configuration has been validated on some real documents.

Before posting

The customer needs its code for electronic invoicing in the Authority office field:

Customer Code
Public Administration The 6 character office unique code
Business with a recipient code The 7 character code
Private individual, or business without a code 0000000
Foreign customer XXXXXXX, with the Send foreign customers parameter enabled

The FatturaPA document type is resolved during posting: TD01 for invoices, TD04 for credit notes. For the other cases the FatturaPA document type field in the header of the sales order or of the free text invoice is filled in before posting.

The customer's purchase references go in the header as well, and are exported in the DatiOrdineAcquisto section: the customer requisition and order date on the sales order, the customer order number and date on the free text invoice, and on both the tender procedure code (CIG) and the project code (CUP). On an invoice already posted and not yet sent, these values can still be corrected through the standard Electronic invoice properties action of the posted invoice.

Posting verifies that the data required for the electronic invoice is present. A missing value stops the posting with an error, for example a method of payment without its FatturaPA code, so that the document is corrected before it is staged.

Which documents are sent

A posted document is staged when the app is enabled in the company, its posting date is not earlier than the Sending start date of the parameters, and it is not excluded. Exclusions are set by flag on the sales tax groups of customers and vendors and on the sales tax book sections (VAT registers): documents that fall in a flagged group or section are not sent.

Documents of foreign customers are sent only when the Send foreign customers parameter is enabled; the invoice still goes to the customer on paper or by email in the usual way.

Sending

The staged documents are listed in the outbound electronic documents page, with the current status and the last message returned for each of them.

Outbound electronic documents list in Dynamics 365 Finance with FatturaPA document type, SDI status, transmission file name and last notification
Outbound documents: SDI status, transmission file and last notification per invoice.
Status Meaning
Open Waiting to be sent
Sent Sent, an outcome is expected
Error Errors occurred, for example a rejection by SDI
Closed Correctly processed by SDI

Send now generates the XML file and sends the selected documents; the batch job sends all the open ones. The other actions of the page display the invoice with the style sheet, download the XML file, open the history of the document and open the posted invoice. The same information and actions are on the posted sales invoice itself, in a dedicated tab of the card and in the columns of the posted invoices list.

Outcomes

After taking charge of the document, SDI returns one of three outcomes:

  • Delivery receipt. The document was delivered to the customer. The status becomes Closed.
  • Failed delivery notification. SDI could not deliver the document to the customer's channel. The document is correctly processed all the same, and SDI makes it available to the recipient in its reserved area of the Agenzia delle Entrate portal.
  • Rejection notification. SDI rejected the document. The status becomes Error, and the rejection message is shown in the Last SDI message field and in the history.

The outcomes are retrieved from the intermediary's system by a batch job. The page shows, next to the status, the last status received from the intermediary with its description and the time of the last update; documents in Error are highlighted in red.

Between businesses the recipient cannot accept or refuse an invoice; this option is reserved to the Public Administration. In the other cases the document is reversed with a credit note.

A rejected document

A rejected document is corrected and sent again with the same invoice number. SDI accepts a new transmission only after a rejection; in the other cases the resent invoice is rejected as a duplicate, and the invoice is corrected with a credit note.

The rejection message is shown on the document. After the cause has been corrected, the document is sent again from the same page. The new transmission clears the external status and the SDI identifier of the previous one.

Electronic documents history in Dynamics 365 Finance listing the created, sent, sent to SDI and delivery receipt events of an invoice
Document history: every event from creation to the SDI delivery receipt.

Some causes of rejection are prevented by the configuration: a nature code is required on every sales tax code at 0% VAT, empty line descriptions are replaced by a configured text, and characters that the format does not allow are converted automatically.

Invoices to the Public Administration

Invoices to the Public Administration follow the same process, with these differences:

  • The customer carries the 6 character office unique code.
  • The CIG and CUP codes and the customer order references are filled in on the header before posting.
  • For administrations subject to split payment, configured through the standard sales tax setup, the VAT chargeability is exported accordingly.
  • The administration can accept or refuse the document. Its outcome is reported in the status and in the history like the other SDI messages.

Self-invoices for reverse charge

Purchases of goods and services from non-resident vendors, in the EU or outside it, and the domestic reverse charge cases have to be reported to SDI with an integration document. The app generates it from the posted vendor invoice and sends it like a sales document.

  • The document type, for example TD16 or TD17, is assigned to the sales tax codes used for the reverse charge, or selected on the header of the pending vendor invoice before posting.
  • The vendor invoice is posted with the standard Italian reverse charge configuration. Posting verifies the data needed for the sending and stops with an error when something is missing.
  • The integration document carries the internal invoice number assigned by the Italian localization, the same number printed on the VAT registers, the posting date as document date, and the number and date of the vendor's document as the linked invoice.
  • Credit notes posted with reverse charge follow the same process.

The staged documents appear in the same outbound page, with the same statuses, actions and batch job.

Monitoring

The workspace counts the outbound documents that require attention: Outbound in error and Outbound to send. Each counter opens the filtered list, with Send now, History and Open document available in place. A daily email from the intermediary's portal lists the rejected documents and the documents in error of the previous day.

Every call between Finance & Operations and the intermediary's systems is recorded in the interface log with its context, times, HTTP status and outcome, and the request and response payloads can be exported.

The same app receives the vendor invoices from SDI and creates the pending vendor invoices: the guide Importing FatturaPA vendor invoices into Dynamics 365 Finance & Operations covers that side, and the product page covers pricing and implementation.

Questions about your Italian go-live?

Tell us about the environment and the legal entities: we answer with what applies to your case.