What is a Codice SDI?
The Codice SDI — officially called Codice Destinatario — is a 7-character alphanumeric code that tells Italy's SDI (Sistema di Interscambio) where to deliver an electronic invoice. Every business or intermediary that receives invoices through SDI has a unique Codice Destinatario.
How It Works
When you send a FatturaPA invoice through SDI:
1. SDI reads the Codice Destinatario from the invoice XML
2. SDI looks up which receiving channel is registered to that code
3. The invoice is routed to that channel (API endpoint, PEC, or web portal)
If no Codice Destinatario is provided (or the special code 0000000 is used), SDI falls back to the recipient's registered PEC (certified email) address.
Format
0000000 = no registered channel (use PEC instead), XXXXXXX = B2C / private individualsIn FatturaPA XML
A1B2C3D
PEC as Alternative
If the recipient doesn't have a Codice Destinatario, you can use their PEC (Posta Elettronica Certificata) address instead:
0000000
recipient@pec.it
How to Find a Recipient's Code
Common Errors
0000000 without providing a PEC address