A WooCommerce shop in Italy sells to consumers and to businesses, and Italian VAT rules give them different documents. I am Mariusz Szatkowski, a WordPress developer since 2006, based in Gdynia and working remotely by email. I design the storefront or build the design you provide. I am not a lawyer or an accountant: which document your shop owes is for you and your commercialista, and I build the checkout that collects what the Agenzia delle Entrate rules ask for.

The Due Torri, Bologna. Photo by FrDr, CC BY-SA 4.0, Wikimedia Commons.
#Is e-invoicing mandatory for an Italian online shop?
For invoices, yes. The Agenzia delle Entrate guide on electronic invoicing, edition December 2025, says that since 1 January 2019 invoices issued after sales of goods and services between parties resident or established in Italy can only be electronic invoices. The duty was introduced by the 2018 Budget Law. The guide says it applies between two VAT-registered parties (B2B) and also when a VAT-registered seller supplies a consumer (B2C). The files go through the Sistema di Interscambio (SdI), the exchange system run by the agency.
All holders of a partita IVA, resident or established in Italy, who make operations towards Italian-resident or established parties must issue them. The guide lists those exempt: taxpayers already excused by law from issuing invoices, for example small agricultural producers, and those who asked for the exemption under article 36-bis of the VAT decree. For invoices to foreign parties, issuing an electronic invoice is optional.
#Does a consumer web order get an invoice?
Not by default. In Risposta n. 9 of 2019, the agency’s answer to a ruling request, the Agenzia delle Entrate separates two kinds of online sale. Indirect e-commerce means the deal is made online and the customer receives the goods physically at home. The agency treats it as a mail-order sale, so the seller:
- does not have to issue an invoice, unless the customer requests one no later than the moment of the operation (article 22 of the VAT decree)
- does not have to certify the sale with a receipt (article 2, letter oo, of presidential decree 696/1996)
Sales are still recorded. The answer says the proceeds go in the register under article 24 of the VAT decree, and invoices issued on request go in the separate register under article 23.
Three limits apply to that answer, and your adviser should read them against your shop:
- It deals with goods ordered online and delivered by carrier. It does not address downloads or other digital items, so I make no claim about those.
- It sets aside distance sales to or from EU parties, which it says fall under articles 40 and 41 of decree-law 331/1993.
- It is an answer to one taxpayer’s question. It reads as the agency’s general position, and I cite it as such.
#What if the consumer asks for an invoice?
Then the invoice is an electronic one. The guide says B2C operations are inside the electronic invoicing duty, and the same answer states that an invoice requested by the customer must be electronic, except for the exemptions named in article 1(3) of legislative decree 127/2015.
For the consumer, the guide sets out a specific procedure. The supplier enters 0000000 in the codice destinatario field and gives the customer a computer or paper copy of the invoice. The supplier reminds the customer that the original is the electronic invoice, which the customer can read and download because the SdI puts it in the reserved area of the agency site.
#Which invoice data fields does a WooCommerce shop need?
The guide’s rules for the “Codice destinatario” field are short. The invoice must carry one of three things:
| Customer | Codice destinatario | Other field |
|---|
| Business with a telematic channel | the 7-character code the customer gave | none |
| Business or person with a PEC | 0000000 | PEC address the customer gave |
| Consumer, or VAT-registered customer who gave neither code nor PEC | 0000000 | none, the customer gets a copy |
If the PEC or the telematic channel is not active, or the code is 0000000, the SdI reads the customer’s VAT or tax code in the invoice and makes the duplicate available in the customer’s reserved area. The supplier then receives a notice that delivery was impossible, with the date it became available. The guide says the invoice then counts as issued for the supplier, but not yet definitively received by the customer for tax purposes.
The SdI finds the customer through the partita IVA or the codice fiscale in the invoice. So the shop has to hold that identifier for every invoiced order.
#What must the WooCommerce checkout collect?
The duties fall on the seller. What the checkout can do is gather the fields before the order, so the invoice file can be built without chasing the customer. From the sources above:
- An “I want an invoice” option shown at checkout. Risposta n. 9 of 2019 sets the cut-off at the moment of the operation, so asking before payment keeps the request inside that wording.
- For a business: company name, partita IVA, address, and the codice destinatario or the PEC. The code is seven characters and may be alphanumeric.
- For a consumer who asks for an invoice: name, address and codice fiscale.
- A way to say that the customer has neither a code nor a PEC, so the field defaults to 0000000.
- Validation of the format of each field, so a mistyped code does not bounce the invoice at the SdI.
- A stored flag on each order that says whether an invoice was requested, because invoiced and non-invoiced orders go in different registers.
WooCommerce lets you add fields to the checkout with a plugin or custom code, and those values are saved with the order. I test the fields against the invoicing tool you use and keep to its format.
#Which register does each order go in?
According to the answer, sales proceeds without invoices go in the register under article 24 of the VAT decree, and invoices go in the register under article 23. That means your commercialista needs the same orders in two lists.
A report from the shop can split the orders by the invoice flag: one list of invoiced orders with the invoice numbers and customer identifiers, one list of non-invoiced orders with the totals. Which export format your accountant’s software accepts is their decision, and I build to their sample file.
#Who sends the file to the SdI?
The guide says several routes exist: the agency’s free services, private software from providers, or a PEC to the SdI address. It names the free services for preparing, sending and receiving invoices. For a shop with steady volume, an invoicing tool or an intermediary is the common route. I do not know which one suits your volume. The tool decides how an order turns into an XML file and who stores it, so I pick the connection after you or your accountant name the tool.
The integration is a piece of work with test orders. The shop passes the order to the tool, receives the invoice status back and shows a failure in the admin with a retry. The pattern I use for connecting a shop to other systems is on the WooCommerce ERP integration page.
#Checklist for an Italian WooCommerce shop
- Decide with your commercialista whether the shop invoices only on request or invoices every order.
- Choose the invoicing tool or intermediary that sends to the SdI.
- Add invoice fields to checkout: company, partita IVA, codice fiscale, codice destinatario, PEC.
- Set 0000000 as the default code when the customer gives none.
- Store the invoice request flag on each order and send it with the export.
- Test a business order, a consumer invoice request, a refund and a rejected file.
- Give your adviser the two lists the registers need.
#How does a project run?
- You send the shop address, the invoicing tool in use, how orders are invoiced today and the sample export your accountant needs. I reply by email within 24 hours on working days, as a rule.
- I write down the scope and my assumptions, with questions about order types, VAT treatment and the fields.
- I build on a staging copy, and you test with sample orders and refunds.
- When you have accepted the result in writing, I publish it. A maintenance plan keeps WordPress and WooCommerce updated and re-tests the invoice fields after updates.
Admin access to WordPress and hosting is needed, plus access to the invoicing tool’s test environment. The WooCommerce developer page describes the shop work overall.
#Send me your shop
If your Bologna shop sells online in Italy, send me the shop address, the invoicing tool, how you invoice today and your deadline through the contact form. Whether you invoice every order or only on request is for you and your commercialista to decide.