What is the recipient code (SDI)?
The recipient code (in Italian, codice destinatario, also called the SDI code) tells the Sistema di Interscambio (SDI) of the Agenzia delle Entrate where to deliver an Italian electronic invoice. It does not identify the company, but the channel where it receives invoices, which is usually its e-invoicing provider. To send an invoice to an Italian client you need their code or their PEC address; to receive invoices on B2Brouter, the code is EPKDZJB.
Format and special values
Section titled “Format and special values”| Value | When to use it |
|---|---|
| 7 alphanumeric characters | Companies and professionals. It is the code that the SDI assigns to the channel where the client receives invoices. |
| 6 characters | Public administration. It is the codice ufficio of the office that receives the invoice, published in the Indice delle Pubbliche Amministrazioni (IPA) at www.indicepa.gov.it. |
0000000 | The client receives by PEC (Posta Elettronica Certificata), or you do not know which channel they receive on. |
XXXXXXX | Client not established in Italy. The invoice goes through the SDI only to report its data to the Agenzia delle Entrate. |
Recipient code or PEC: how the SDI decides where to deliver
Section titled “Recipient code or PEC: how the SDI decides where to deliver”The SDI follows this order:
- If the client has registered, on the Agenzia delle Entrate’s Fatture e corrispettivi portal, the channel where they want to receive invoices, the SDI always delivers there, whatever code the invoice carries.
- If not, it delivers to the channel of the recipient code.
- If the code is
0000000and the invoice has a PEC address, it sends it to that PEC. - If the code is
0000000and there is no PEC, it leaves the invoice in the client’s reserved area of the Fatture e corrispettivi portal.
When the SDI delivers the invoice, the client also has a copy in their reserved area.
How to get a client’s code
Section titled “How to get a client’s code”- Companies and professionals: ask the client. If they do not know it, they can ask their e-invoicing provider, because the code belongs to the channel where they receive invoices.
- Public administration: the client must give you the codice ufficio of the office that has to receive the invoice. You can also look it up in the IPA. It is mandatory on invoices to public administrations.
- If you do not have the code: you can send the invoice with
0000000. If the client has registered their channel on the portal, the invoice still reaches them; if not, they find it in their reserved area.
How to enter the code in B2Brouter
Section titled “How to enter the code in B2Brouter”The recipient code is set on the client’s contact, when you select SDI as the sending method. At the bottom of the Open Network drop-down you will find these options:
- It is a public administration: turn it on only if the client is a public administration listed in the IPA.
- Receiver code: the client’s 7-character code, or the 6-character code if it is a public administration.
- Posta Elettronica Certificata (PEC): the client’s PEC address, if they receive by PEC.
If you do not know the client’s code, enter 0000000. If the client is not Italian, enter XXXXXXX. See also how to assign routing codes.
What happens if the code is wrong
Section titled “What happens if the code is wrong”The SDI checks the code before delivering the invoice. If it is not correct, it rejects the invoice with a discard notice (notifica di scarto) within 5 days, and the invoice is deemed not issued. The most common rejections are:
- Code that does not exist or is not active (errors 00311 and 00312).
- The code does not match the type of client (error 00427): a 6-character code for a company, or a 7-character code for a public administration. If the client is in the IPA and is not marked as a public administration, the error is 00399.
XXXXXXXfor an Italian client (error 00313).- The PEC is the SDI’s own (error 00330): you must enter the client’s PEC, not the system’s.
Correct the code on the contact and send the invoice again. When the network rejects an invoice, it becomes editable again: see Edit an invoice you have already sent.
Receive invoices on B2Brouter with code EPKDZJB
Section titled “Receive invoices on B2Brouter with code EPKDZJB”- In B2Brouter, go to your company settings, Connections section, and open the SDI connection. You will find B2Brouter’s recipient code there: EPKDZJB.
- Log in to the Agenzia delle Entrate’s Fatture e corrispettivi portal with your credentials. In the Fatturazione box, open the function to register how you receive electronic invoices and enter the recipient code EPKDZJB.
- Also give the code EPKDZJB to your suppliers so they put it on their invoices.
Once registered, the SDI delivers to B2Brouter every invoice issued to your VAT number, even if the supplier entered a different code. You will find them in your company’s received invoices section, where you can manage them. If you do not register, you will not receive your suppliers’ invoices through the SDI on B2Brouter.
Frequently asked questions
Section titled “Frequently asked questions”Are the codice SDI and the recipient code the same? Yes. Codice destinatario, codice SDI and recipient code are different names for the same code.
Can I send an invoice without the client’s code?
Yes, with 0000000. The SDI delivers it to the channel the client has registered, to their PEC if you entered one, or to their reserved area of the Fatture e corrispettivi portal.
Is a public administration’s code different? Yes. It has 6 characters, it is the codice ufficio from the IPA and, in B2Brouter, you must mark the client as a public administration.
Which code do I use for a client that is not Italian?
XXXXXXX. If you use it for an Italian client, the SDI rejects the invoice.
What is B2Brouter’s recipient code? EPKDZJB. It is the code you have to register with the Agenzia delle Entrate and give to your suppliers to receive invoices on B2Brouter.
If you integrate B2Brouter via API, see the SDI (FatturaPA) guide.