What are DIR3 codes?
DIR3 codes are three codes that must be included in the electronic invoice when it is to be sent to the Spanish public administration, and which are used to direct the invoice to the corresponding department so that it can be processed correctly.
These codes are called Managing Body, Processing Unit and Accounting Office, and each recipient may have one or several combinations of different codes. In addition, they are mandatory data to be able to send an electronic invoice to the Spanish Public Administration. These codes are composed of one or two initial letters, plus seven or eight numbers. For example, LA1111111.
How to obtain DIR3 codes
Section titled “How to obtain DIR3 codes”Each public entity has its own DIR3, so your customer must provide you with this information when you send them an invoice. There is also an alternative, the B2Brouter directory, where you will find all the DIR3 related to a public entity.
How to add DIR3 codes to the electronic invoice
Section titled “How to add DIR3 codes to the electronic invoice”You need to create a new invoice to be able to add DIR3’s. To do this, access the Invoices section through the main top menu and then select Invoices issued from the options that are activated in the left menu. Next, use the option at the top right New Invoice. Next:
- From the Customer drop-down select the invoice recipient.
- If the selected receiver is in the B2Brouter directory, the option Organizational unit will be activated.
- Select the DIR3 codes in the Organizational Unit dropdown.
Finally, continue with the creation of the invoice and the DIR3 codes will already be present.
If the Organizational Unit is not activated:
Section titled “If the Organizational Unit is not activated:”If you have followed the previous steps but the drop-down Organizational Unit is not activated, it means that the client you have selected or its DIR3 are not in the B2Brouter directory. In this case, you have two options:
Add DIR3 codes manually
Section titled “Add DIR3 codes manually”Once you have selected the receiver and you have started to create the invoice, in the General data section you find the options Managing body, Processing unit and Accounting office, where you have to add the DIR3 codes provided by the customer.
Create and assign the organizational units to the client
Section titled “Create and assign the organizational units to the client”To avoid having to add DIR3 codes to invoices every time you generate an invoice, you can also create the organizational units assigned to each receiver. To do this, access the Contacts section via the main menu at the top and open the company by clicking on the name.
On the next page, select Add organizational unit.
Next, you can add the data to the Organizational Unit with the corresponding DIR3 codes:
- In Fiscal data put the name and address. They can be the same as those of the main company.
- Fill in the other options you want/need.
- Access at the bottom to Delivery method.
- Add the DIR3 codes in the Accounting Office, Managing Body and Processing Unit options.
Finally, save the changes using the Save option and repeat the process to create as many organizational units as you need for each client.