Skip to content
AE DIGITAL
E-commerceBy 6 min read

Shopify electronic invoicing in Italy: how to connect your store to the SdI

Shopify electronic invoicing in Italy: when an invoice is required, three ways to connect the store to the SdI, order data to collect, credit notes and rejections.

Article cover: the word “SDI” next to a glowing icon on a violet space background

What you need to issue an e-invoice from a Shopify order

Shopify does not send invoices to Italy's Exchange System (Sistema di Interscambio, SdI): Shopify electronic invoicing in Italy always needs an external step, meaning software or an intermediary that produces the FatturaPA file and sends it to the SdI. Since 1 January 2019, invoices between parties resident or established in Italy, whether to businesses or to consumers, must be electronic, and an invoice that does not pass through the SdI is considered not issued. In practice you need three things: reliable collection of the customer's tax data, a link between Shopify orders and your invoicing software, and a procedure for rejections and credit notes.

This article covers the operational and technical side. The tax rules mentioned must be checked with your accountant for your specific situation: this is not tax advice.

Daily takings or invoice: when you need which

For online sales of goods shipped to the customer, known in Italy as indirect e-commerce, VAT rules refer to mail-order sales. Article 22 of Presidential Decree 633/1972 states that for these sales an invoice is not mandatory unless the customer requests it by the time the transaction takes place. Takings must still be recorded, and the Italian Revenue Agency (Agenzia delle Entrate) has issued several rulings on reporting obligations for this kind of sale.

There are three practical consequences:

  • B2C orders without a request: these usually go into daily takings records, without an invoice per order.
  • B2C orders with an invoice request: the customer must be able to ask at checkout, not weeks later.
  • B2B orders: an e-invoice is always required, with the customer's VAT number and recipient code or PEC address.

For digital services or foreign customers the rules change again: e-invoicing to foreign parties, for example, is optional, but the data must be reported to the Agency. Define your cases with your accountant before you choose a tool.

Three approaches: dedicated app, management software, custom automation

A dedicated App Store app

Some apps connect Shopify to Italian invoicing software and create the invoice from the order. This is the quickest route for low or medium volumes and simple rules. Before installing one, check which orders it turns into invoices, how it handles discounts and shipping, whether it also creates credit notes and what happens when the SdI rejects a document.

Management software or ERP

If you already use a management system for stock and accounting, it is better to let it issue invoices by importing orders through an API or connector. The advantage is a single accounting archive; the downside is that the integration must be maintained and tested whenever the store setup changes.

Custom automation

When rules are unusual, for example several brands, mixed catalogs or invoices only for some customers, an automation built with Make, Zapier or code gives you more control. The typical flow starts from an order-paid webhook, validates the tax data, creates the invoice through the invoicing software's API, saves the invoice number on the order with a tag or metafield and alerts the team if a rejection receipt arrives. To avoid duplicate invoices the automation must be idempotent, following the rules in our article on reliable ecommerce webhooks.

Mandatory data and where to find it in the order

The SdI checks that the minimum data required by Article 21 of Decree 633/1972 is present: supplier and customer identifiers, number and date, description, quantity, taxable amount, VAT rate and VAT. Here is where to find them in Shopify:

  • Name, company name and address: in the order's billing address.
  • VAT number, tax code, recipient code or PEC: the standard checkout does not collect these as required, validated fields. Checkout extensions on the information, shipping and payment steps are limited to Shopify Plus; on other plans you need dedicated apps or a post-order form.
  • Line items, quantities and prices: in the order lines, with related discounts and taxes.
  • Shipping: invoice it as a separate line with its own VAT rate.
  • Taxes: in Italy Shopify prices usually include VAT, so the taxable amount must be extracted line by line.

Extracting VAT and spreading discounts across lines often create one-cent differences between the order total and the invoice total. Decide in advance where to absorb them; our article on ecommerce money calculations and rounding explains how to avoid them. For consumers without a recipient code you enter 0000000: the invoice is made available in the customer's reserved area and you must also give them a copy, for example as a PDF.

Credit notes for returns and refunds

When an invoiced order is refunded in full or in part, the original invoice is not edited: you issue a variation note, an electronic credit note (document type TD04) that references the original invoice. In the workflow this means:

  1. Link the Shopify refund to the original invoice through the order number and invoice number.
  2. Issue the credit note only for the lines and amounts actually refunded, including shipping if it was returned.
  3. Handle non-invoiced orders separately, as they follow the daily takings logic.

If returns and refunds are not tracked with clear states, credit notes become the weakest part of the process; we described a state model in our article on ecommerce returns and refunds.

The most common SdI rejection errors

If a check fails, the SdI sends a rejection receipt with an error code and description, and the invoice is treated as never issued. The checks documented by the Agenzia delle Entrate point to the most frequent causes in an ecommerce flow:

  • VAT number or tax code not found in the tax register, often because of customer typos.
  • Missing recipient code or a code filled in incorrectly.
  • Mismatch between taxable amount, rate and VAT, typical of rounding after VAT extraction.
  • Duplicate file, when an automation resends the same invoice.

After a rejection you fix the error and resend the invoice; the Agency suggests keeping the same date and number while changing the file name if you do not use the portal's web procedure. Checking and delivery take from a few minutes up to five days at peak load, so allow for that against your issuing deadline.

Checklist to review with your accountant

  1. Which orders require an invoice and which stay in daily takings.
  2. How customers request an invoice at checkout and which fields are mandatory.
  3. Issuing deadlines: an immediate invoice must be transmitted within 12 days of the transaction (Art. 21(4), Decree 633/1972); consider whether deferred invoicing suits you better.
  4. Treatment of shipping, discounts, gift cards and rounding.
  5. The procedure for credit notes on partial and full returns.
  6. Handling foreign customers and EU distance sales.
  7. Who monitors rejection receipts and how quickly.
  8. Invoice storage and monthly reconciliation between orders, payments and documents issued.

With these answers you can choose the right tool instead of bending tax rules to fit the software. If you want to automate the step from Shopify to your invoicing software with checks on data and rejections, that is a typical project in our Zapier and Make automation service.

Frequently asked questions

Can Shopify send electronic invoices to the SdI?

Not natively. You need an app connecting Shopify to invoicing software, management software that imports orders, or an API-based automation. That software, or its intermediary, generates the FatturaPA file and transmits it to the SdI.

Do I need to invoice every online order from a consumer in Italy?

For online sales of shipped goods, Art. 22 of Decree 633/1972 requires an invoice only if the customer asks for it by the time of the transaction; other takings follow the daily records rules. Check your case with your accountant: this answer is not tax advice.

How do I collect VAT number and recipient code on Shopify?

The standard checkout neither requires nor validates them. On Shopify Plus you can add fields with checkout extensions; on other plans you use dedicated apps or a post-order form, with a check before the invoice is issued.

What should I do if the SdI rejects an invoice?

A rejected invoice counts as not issued. Read the error code in the receipt, fix the data and resend the document: the Agenzia delle Entrate suggests keeping the original date and number, changing the file name if you do not use the portal's web procedure.

Sources

  1. La fattura elettronica e i servizi gratuiti dell'Agenzia delle Entrate (dicembre 2025) — Agenzia delle Entrate
  2. Fattura elettronica e corrispettivi telematici — Agenzia delle Entrate
  3. Cos'è il Sistema di Interscambio (SdI) — FatturaPA
  4. DPR 26 ottobre 1972, n. 633 — Normattiva
  5. Checkout UI extensions — Shopify
  6. Webhooks — Shopify

Related articles

Tell us what isn't working.

We reply within one business day with a first opinion and, if it makes sense, a quote.

Write to us