Guide · Italian rules
Electronic invoice to a foreign customer: what to write, EU and non-EU
Invoices to foreign customers also go through the SDI (Sistema di Interscambio), the Italian e-invoicing exchange system, but some fields are filled in differently: recipient code (codice destinatario), VAT number, postcode, province and country. Here is what to write for a customer in the European Union and for one outside it, whether a business or a private individual.
by Antonio Tanzillo, ATSoft · updated on
Foreign invoices go to the SDI too
Since 1 July 2022, transactions with foreign customers and suppliers are reported to the Italian Revenue Agency (Agenzia delle Entrate) with the electronic invoice in XML, through the SDI: the old "esterometro" (cross-border transactions report) no longer exists. For sales to a foreign customer, the file must be transmitted within the same deadlines as for issuing the invoice.
The SDI, however, doesn't deliver the invoice abroad: you send it to the customer yourself, as a PDF by email or on paper, as you always have.
The fields, one by one
| Field | Customer in the European Union | Customer outside the European Union |
|---|---|---|
| Recipient code | XXXXXXX (seven Xs) | XXXXXXX (seven Xs) |
| PEC (certified email) | not entered | not entered |
| Country (Nazione) | country code: DE, FR, ES… | country code: CH, GB, US… |
| VAT number (partita IVA) | country code (IdPaese) and VAT number without the prefix: DE + 123456789 | country code and the business's tax number in its own country |
| Private individual without a VAT number | country code and an identifier for the customer (up to 28 characters, not checked by the SDI); the tax code is left empty | |
| Tax code (codice fiscale) | empty | empty |
| Postcode (CAP) | 00000 | 00000 |
| Province | empty | empty |
| Town and address | the customer's town or city and address; the foreign postcode, if you wish, goes in the address | |
VAT: non-taxable or not subject to VAT
On invoices to foreign customers Italian VAT often doesn't apply, and the line goes to zero with its nature code. The most common cases:
- Goods sold to a business in another EU country: non-taxable intra-EU supply, nature N3.2. First check that the customer's VAT number is active in VIES (the EU VAT number validation system); Intrastat returns are still due.
- Goods exported outside the Union: non-taxable export, nature N3.1.
- General services to a foreign business, EU or non-EU: transaction not subject to VAT, nature N2.1; for an EU business the invoice carries the wording "inversione contabile" (reverse charge).
- Sales to private individuals in other EU countries: Italian VAT usually applies, but distance sales and digital services have special rules.
There are many cases and they depend on the type of transaction: to choose the right nature, ask your accountant. The complete list is in the guide to VAT nature codes.
What about purchases from abroad?
When you buy from a foreign supplier, the transaction is reported to the SDI with an integration or a self-invoice (document types TD17, TD18 and TD19), by the fifteenth day of the month following the one in which you received the document or carried out the transaction.
How KeyStore in Cloud handles it
In KeyStore in Cloud you just set the Country in the customer record. If it is not IT, the software:
- automatically sets the recipient code to XXXXXXX and doesn't send the PEC address;
- writes the postcode as 00000, leaves the province empty and doesn't check the postcode;
- uses the country as the country code and removes the prefix from the VAT number, if you typed it;
- uses the VAT nature of the rate chosen on the line, which you set once in the tables;
- for an invoice in another currency, for example in dollars, sends the amounts to the SDI in euros at the document's exchange rate.
Self-invoices for purchases from abroad, from TD16 to TD27, are created with the Self-invoice document.
The e-invoicing software → · Recipient code and PEC for Italian customers →
In short
What recipient code is used for a foreign customer?
XXXXXXX, seven Xs, both for customers in the European Union and for those outside it. No PEC address is entered.
What do I enter as the postcode and province of a foreign customer?
00000 as the postcode; the province is left empty. The foreign postcode, if needed, can be written in the address.
How do I enter an EU customer's VAT number?
The country code goes in the country field (for example DE) and the number without the prefix in the VAT number field.
What if the foreign customer is a private individual?
You enter the country code and an identifier for the customer; the tax code is left empty.
Does the foreign invoice reach the customer through the SDI?
No: the SDI receives it for the Italian Revenue Agency, but you send it to the foreign customer yourself, for example as a PDF.
Sources
Official sources, in Italian.
- Agenzia delle Entrate, FAQ sulle fatture verso e da soggetti stranieri (FAQ on invoices to and from foreign parties)
- Agenzia delle Entrate, FAQ sulla compilazione della fattura elettronica (FAQ on filling in the electronic invoice)
- Agenzia delle Entrate, circolare n. 26/E del 13 luglio 2022 (operazioni transfrontaliere) (Revenue Agency circular 26/E of 13 July 2022 on cross-border transactions)
- Agenzia delle Entrate, guida alla compilazione delle fatture elettroniche e dell'esterometro (guide to filling in e-invoices and the cross-border report)
Guide updated on 29 November 2026. It summarises the general Italian rules: for your specific case, ask your accountant.
Do you invoice abroad too?
In KeyStore in Cloud the country in the customer record is all it takes: the software sorts out the XXXXXXX code, postcode and province. From €8 a month.
Explore e-invoicing