
The EORI number is an administrative code that companies need when they start importing, exporting or carrying out customs procedures in the European Union.
In practice, it works as the company’s customs identification before EU authorities. Without it, an operation may be delayed, blocked or generate issues with suppliers, customs agents or the authorities themselves.
For this reason, understanding what the EORI is and when you need it is especially important if your company is going to operate from Spain. It is also relevant if you are a foreign company planning to sell or import into Spanish territory, or if you are preparing an international business structure within the European Union.
What is the EORI number?
Index of contents
EORI stands for Economic Operators Registration and Identification. It is the registration and identification number used by economic operators before the customs authorities of the European Union.
In simple terms, the EORI number identifies a company, self-employed professional or economic operator when they take part in customs-related operations. Therefore, it allows customs authorities to know who is importing, exporting, filing declarations or participating in an international trade transaction.
In Spain, the EORI number is usually linked to the company’s Spanish tax identification number (NIF). For operators established in Spain with a NIF assigned by the Spanish Tax Agency, the EORI is normally made up of the country code “ES” followed by the tax identification number. For example:
- NIF: B12345678
- EORI number in Spain: ESB12345678
However, foreign companies and non-resident entities may have specific situations. For this reason, before applying for an EORI, it is advisable to check whether the company already has a Spanish NIF, whether it has an EORI in another Member State or whether it must obtain one in Spain.
What is the EORI used for?
The EORI number is used to identify a company before the customs authorities of the European Union. Its purpose is not broadly tax-related, but customs-related.
In practice, it is used in operations such as:
- Importing goods from countries outside the European Union.
- Exporting goods from the European Union to third countries.
- Customs transit operations.
- Filing customs declarations.
- Procedures before customs authorities in any Member State.
- Relations with customs agents, freight forwarders, logistics operators or customs representatives.
Therefore, although many companies discover it when they are about to import goods for the first time, the EORI is not only a logistics matter. It is also part of the company’s tax registration, administrative and operational preparation to operate correctly in Spain and in the EU.
A company may already have its supplier, customer, goods and transport arranged. However, if it does not have an active EORI when it needs to use it, the operation may face administrative delays or blocks.
When does a company need an EORI?
A company needs an EORI number when it is going to carry out customs-related activities within the customs territory of the European Union.
The most common cases are explained below.

When importing goods from outside the EU
If a Spanish or foreign company imports goods from third countries, it will normally need an EORI number to complete the customs procedures.
This affects industrial companies, distributors, ecommerce businesses, wholesalers and companies that buy products outside the European Union to sell them in Spain or in other European countries.
When exporting goods to third countries
A company that sells products outside the European Union may also need an EORI. In these cases, the number is used to identify the exporter before customs.
When filing customs declarations
The EORI is necessary when the company files customs declarations or takes part in certain customs procedures, either directly or through a representative.
When a foreign company wants to operate in Spain
A foreign company that wants to start selling, importing or developing activity in Spain may need an EORI if its operations involve customs procedures.
In addition, this procedure may need to be coordinated with other preliminary steps. These may include obtaining a Spanish NIF, census registration, tax representation or reviewing the type of structure from which the company will operate.
When an international group uses Spain as an entry point into the EU
Some international companies use Spain as an entry point for goods, distribution, storage or commercial expansion within the European market.
In these cases, the EORI should be analysed as part of broader planning. It is not enough to request a code. It is important to check that the tax, census and operational structure allow the activity to be carried out without issues.
Who must apply for the EORI number?
Economic operators that carry out customs-related operations as part of a business or professional activity must apply for an EORI number.
This may include:
- Spanish commercial companies.
- Self-employed professionals who import or export goods.
- Foreign companies established in Spain.
- Non-resident companies that need to operate before customs.
- International groups with activity in Spain or in the EU.
- Customs representatives and operators involved in customs procedures.
By contrast, an individual who buys a product occasionally for personal use does not usually need an EORI, except in specific cases. The key point is whether there is an economic or professional activity linked to customs operations.
Foreign companies that must apply for an EORI number
In the case of foreign companies, it is important to distinguish between three situations:
- Company established in another EU Member State. It must normally obtain the EORI in the country where it is established. If it also has a NIF in Spain, it may be necessary to link that EORI to the Spanish NIF.
- Company not established in the EU that is going to operate first in Spain. It may have to apply for the EORI in Spain if this is the first Member State where it carries out a customs operation.
- Non-resident company that also needs a Spanish NIF. In some cases, before applying for the EORI number, it will be necessary to obtain a NIF from the Spanish Tax Agency.
For this reason, in international operations, the EORI should not be treated as an isolated procedure. It should be reviewed together with the company’s other tax obligations.
How to apply for the EORI in Spain
The EORI application in Spain is filed with the Spanish Tax Agency through the AEAT electronic office.
The process may vary depending on the company’s situation. A Spanish company with an existing NIF is not the same as a foreign entity with no presence in Spain, an EU company with an EORI in another Member State or a non-resident company that must first obtain a Spanish NIF.
Even so, the general step-by-step process to apply for the EORI in Spain is as follows:
- Check whether you already have an EORI. Before starting the procedure, check whether your company has already been assigned an EORI number, especially if it operates in other EU countries.
- Confirm that you have a Spanish NIF. If your company is established in Spain, it will need a NIF. In the case of foreign companies, it may be necessary to obtain one beforehand.
- Review the census situation. Make sure the company is correctly registered in the Spanish Tax Agency census and that its data is up to date.
- Access the AEAT electronic office. Enter the section corresponding to EORI registration on the Spanish Tax Agency website.
- Identify yourself with a digital certificate. The procedure usually requires an electronic certificate or another valid identification system.
- Apply for EORI registration. Complete the corresponding form and check that the data matches the information registered with the AEAT.
- Wait for confirmation. In many cases, registration is automatic. However, it may require review if there are inconsistencies or if the applicant is a non-resident company.
- Validate the EORI. Once assigned, it is advisable to check that the number appears as active in the European validation systems.
How to check or validate an EORI
Before starting a customs operation, it is advisable to check whether the EORI number is active.
EORI validation allows you to verify whether the number exists and is recognised within the European system. This query can be made through the mechanisms enabled by the European Commission. In the case of EORI numbers issued in Spain, it may also be checked through the procedures available in the AEAT electronic office.
Checking the EORI is especially useful when:
- The company is going to import or export for the first time.
- EORI registration has recently been requested.
- There is an EORI from another Member State and the company wants to operate in Spain.
- The company is going to work with a new supplier, customer or customs representative.
- The company has had census or tax changes.
- It is unclear whether the EORI remains active.
It is also important to distinguish between “validating an EORI” and consulting a company’s full data. In most cases, the public query allows you to confirm that the number exists. However, it does not always show all the operator’s data if the operator has not consented to its publication.
Differences between EORI, NIF, VAT/VIES and intra-Community VAT
One of the most common questions is whether the EORI is the same as the NIF, the VAT number or the intra-Community VAT number. The answer is no.
Although some identifiers may have a similar structure, their purpose is different. Confusing them can lead to significant errors in international operations.
| Identifier | What it is used for | Main scope | Example of use |
|---|---|---|---|
| NIF | Identifies a person or entity for tax purposes before the Spanish Tax Agency. | Tax and administrative matters in Spain. | Filing taxes, issuing invoices, dealing with the AEAT. |
| EORI | Identifies the economic operator before customs in the EU. | Customs. | Importing from China, exporting to the United Kingdom or filing customs declarations. |
| VAT / NIF-IVA | Identifies the company for VAT purposes in intra-Community transactions. | Tax, European VAT. | Buying or selling goods or services to companies in other EU countries. |
| VIES | European system that verifies whether an operator is registered for intra-Community transactions. | European intra-Community VAT query. | Checking whether an EU customer or supplier is registered as an intra-Community operator. |
For example, a Spanish company buying goods from a German supplier may need to be registered in the ROI and appear in VIES. However, it does not necessarily need an EORI if there is no customs operation.
By contrast, if it imports products from the United States, Morocco, China or the United Kingdom, it should review whether it needs an EORI number for the import.
EORI for foreign companies operating in Spain
This point is especially important for foreign companies, non-resident entities and international groups that want to operate in Spain.
In these cases, the EORI should not be analysed in isolation. It forms part of a chain of decisions that may affect the company’s entire operation.
A foreign company may face questions such as:
- Do I need a Spanish NIF before applying for the EORI?
- Should I obtain the EORI in Spain or in another Member State?
- Do I have to link my European EORI to a Spanish NIF?
- Do I need a tax or legal representative?
- Does my operation involve Spanish VAT?
- Do I need to register in ROI/VIES?
- Will I operate through a subsidiary, branch, representative office or without a permanent establishment?
- Who will act before the AEAT or customs authorities?
For example, a non-resident company that wants to start selling products in Spain may need to coordinate several procedures: NIF, representation, census registration, VAT analysis, EORI and relations with customs agents.
If these steps are managed in a disorganised way, delays may appear at the most sensitive moment: when the company has already closed a sale, goods are in transit or operations need to start immediately.
For international companies, the real value is not only in applying for the EORI code. It lies in properly preparing the legal, tax and operational structure so that the company can operate in Spain without administrative, tax or customs delays, with the support of specialised professionals.
Common mistakes when managing the EORI
Although the EORI is a well-known procedure in international trade, many companies manage it late or confuse it with other identifiers.
These are some common mistakes:
- Confusing EORI with NIF or VAT. The NIF identifies the company for tax purposes, but it does not replace the EORI in customs procedures.
- Applying too late. Goods may be held, or the operation may be delayed.
- Not validating the EORI. The company may believe it is active when it still does not appear as valid.
- Not reviewing the census situation. If the NIF, tax address or company data are not properly coordinated, requests for information may arise.
- Not coordinating EORI with VAT, ROI or tax representation. The company may meet a customs requirement but fail to comply with related tax obligations.
- Using an EORI from another country without checking its fit in Spain. It may be necessary to link it to the Spanish NIF or provide additional documentation.
- Thinking that there is a formal “EORI certificate”. The regulations do not necessarily provide for a certificate as such. What matters is that the number is registered and validated.
Frequently asked questions about the EORI
What is a company’s EORI?
A company’s EORI is its customs identification number within the European Union. It allows customs authorities to recognise the company when it carries out import, export, transit or any customs-related procedure.
Is the EORI mandatory?
It is mandatory when the company carries out customs operations in the European Union. If a company only carries out national operations or certain intra-Community transactions without customs procedures, it may not need it. Even so, each specific case should be reviewed.
Do I need an EORI to import?
Yes. If your company imports goods from outside the European Union, it will normally need an EORI number to complete the customs procedures.
Do I need an EORI to export?
Yes. If your company exports goods from the European Union to third countries, it may need an EORI to identify itself before customs.
How do I apply for the EORI in Spain?
The EORI application in Spain is filed with the AEAT, usually through its electronic office. Before applying, it is advisable to check whether the company has a Spanish NIF, whether it is correctly registered in the census and whether it needs a representative or association with an EORI issued by another Member State.
How can I check an EORI?
You can check or validate an EORI through the systems enabled by the European Commission. For EORI numbers issued in Spain, you can also use the Spanish Tax Agency procedures. This validation confirms whether the number exists and is active.
Is the EORI the same as VIES?
No. The EORI is used for customs procedures. VIES is used to verify intra-Community operators for VAT purposes. A company may need both, but for different purposes.
Is the EORI the same as the NIF?
No. The NIF identifies the company for tax purposes in Spain. The EORI identifies it before customs in the European Union. In Spain, they may be linked, but they do not serve the same purpose.
Is there an EORI certificate?
In practice, what matters is that the EORI number is registered and can be validated. The company can check its existence through the enabled systems, but this validation should not be confused with a separate formal certificate.
Does a foreign company need an EORI to operate in Spain?
It depends on its activity. If it is going to carry out customs operations, it may need an EORI. In addition, if it is a non-resident company, this procedure may need to be coordinated with obtaining a NIF, tax representation, census registration and VAT analysis.
How long does EORI registration take?
The timeframe may vary depending on the company’s situation, the available documentation and whether the application requires additional review. Therefore, it is advisable not to wait until the last minute and to prepare the procedure before starting the customs operation.
What is the EORI number Spain?
The term “EORI number Spain” is commonly used to refer to an EORI number issued or managed in Spain. For companies established in Spain with a NIF assigned by the AEAT, it is usually formed by “ES” followed by the company’s NIF.
Advisory services to apply for the EORI and operate in Spain
Applying for the EORI number may seem like a one-off procedure. However, for many companies, it is only one part of a broader international operation.
At LEIALTA, we support Spanish companies, foreign companies and international groups that want to operate in Spain with confidence. Our approach combines legal, tax, accounting and administrative advice so that each procedure fits into the company’s real strategy.
If your company is going to import, export or start activity in Spain, we can help you review whether you need an EORI, how to apply for it and what other steps should be prepared to avoid administrative, tax or customs blocks.
