Spanish NIF vs VAT number vs EORI vs OSS: what each is for and in what order
2026-11-24 · IberTrust Global

Foreign companies often hear that they need “a Spanish VAT number”, “an EORI”, or “to register for OSS”, and treat them as the same thing. They are not. Each identifier or registration has a different purpose. Getting them in the wrong order, or assuming that one replaces another, is a common source of delay.
What each one is
| Identifier | What it is for | How it is obtained in Spain |
|---|---|---|
| NIF | Spanish tax identification of the company (for a foreign legal entity, the number starts with N). Required when the entity carries out transactions with tax implications in Spain. | Census declaration, Modelo 036. See how a foreign company gets a Spanish NIF. |
| NIF-IVA (VAT number / VIES) | Identification for certain intra-community supplies and acquisitions of goods, and for certain services, so that the number can be checked in the EU VIES system. VIES is the verification tool; the Spanish register behind it is the ROI (Registro de Operadores Intracomunitarios). It is not a different number from the NIF: it is the NIF used as a VAT identification number, typically shown as ES followed by the NIF, once the ROI registration has been granted. | Same Modelo 036: box 582 to apply, box 584 for the date of the first operation. If the AEAT has not decided within three months, the request may be treated as refused. |
| EORI | The Economic Operators Registration and Identification number used in customs declarations and customs authorisations throughout the EU. The AEAT states expressly that an EORI is not the same as a VIES number: having an EORI does not, by itself, allow intra-community VAT operations. | After a Spanish NIF has been assigned. For operators whose NIF starts with N, M, X or Y, the EORI is not assigned automatically; it must be requested in the AEAT electronic office. For a Spanish EORI the number is usually ES plus the NIF. |
| OSS (One-Stop Shop) | Optional special schemes for certain B2C supplies of services and distance sales of goods across the EU, so that VAT can be declared in a single Member State of identification instead of registering in every country of consumption. There are three schemes: Union OSS, non-Union OSS, and the Import scheme (IOSS). | In Spain, Form 035. To register in Spain you normally need a Spanish NIF first (with a specific arrangement when IOSS is used through a Spanish intermediary). |
A practical order
- The representative’s Spanish NIF (Modelo 030, unless the person already has a NIE or NIF). The census form for the company cannot be properly signed without it.
- The company’s NIF on Modelo 036. VAT registration and, where needed, the request to join the ROI can be included in the same form.
- EORI, if you will import into or export from the EU and Spain is the Member State that should assign the number. This comes after the NIF, especially when the NIF starts with N.
- OSS, if you opt into one of the schemes and Spain is your Member State of identification. Form 035 is a separate filing from Modelo 036.
In the files we prepare, the representative’s NIF and the company’s NIF — and VAT registration where it is requested on the same form — are usually issued in about three to six weeks. EORI and OSS, when they are filed afterwards, often follow in about one to two weeks. In all cases the actual timing is set by the AEAT.
Who typically needs which formalities
- Stock in a warehouse in Spain. You will usually need to identify yourself for Spanish VAT, even if consumer sales from other Member States are declared through OSS. A warehouse can also raise other tax questions, including whether there is a permanent establishment; that depends on the facts and is not automatic.
- Intra-community B2B goods or certain cross-border services. A NIF-IVA / ROI registration is often required, in addition to the NIF itself.
- Import or export customs declarations. An EORI is required before the declaration or the customs authorisation.
- B2C distance sales into several EU countries. OSS may be useful, but it is optional. Registering for OSS in Spain requires a Spanish NIF. Registering for Union OSS in another Member State may mean you do not need a Spanish VAT registration solely for those intra-EU distance sales — but a Spanish NIF can still be required for other reasons (a warehouse in Spain, import, or other Spanish procedures such as EPR).
- Non-EU businesses with VAT obligations in Spain. They must generally appoint a representative with a tax domicile in Spain for VAT purposes, unless there are mutual-assistance arrangements equivalent to those in the EU (the AEAT currently points to Norway). Businesses established in the EU that carry out VAT operations in mainland Spain and the Balearic Islands do not need to act through a representative for that reason.
A marketplace that collects and accounts for VAT as a deemed supplier on certain B2C sales changes who is the taxable person for those sales. It does not, by itself, cancel other Spanish obligations that can still require a NIF, such as holding stock in Spain, importing, or EPR registration.
Selling only online is not, by itself, a reason to skip the Spanish NIF. Where the AEAT has accepted a simplified document file for certain online sellers, that simplification concerns apostille and translation of company documents, not a waiver of the NIF. See apostille and sworn translation for a Spanish NIF.
FAQ
If I already have an EORI, can I use it as a VAT number?
No. The AEAT states that the two numbers must not be confused. They may look similar (both can start with ES), but they have different purposes and are managed separately.
If I already have a VAT number in another EU country, do I still need a Spanish NIF?
It depends on what you will do in Spain. A VAT number from another Member State may allow you to use Union OSS from that country for certain distance sales. It does not replace a Spanish NIF if you must identify yourself in Spain — for example because you hold stock here, you register for OSS in Spain, or you complete another Spanish procedure that requires one.
Can I apply for EORI or OSS before the company has a Spanish NIF?
In the usual Spanish procedures, no. An EORI based on a Spanish NIF is requested after the NIF has been assigned. Form 035 for OSS in Spain normally also requires a Spanish NIF, with a specific arrangement only for IOSS through a Spanish intermediary.
Is OSS compulsory?
No. The schemes are optional. If you do not opt in, the ordinary VAT registration and filing rules in each relevant country continue to apply.
Need help putting the formalities in the right order?
IberTrust Global S.L. has a fixed office in Castellón and files with the Spanish authorities on behalf of foreign companies. We file the representative’s NIF and the company’s NIF/VAT together. In our experience those numbers are usually issued in about three to six weeks; the actual timing is set by the AEAT. Once the file is complete, the filing follows a standard, stable procedure.
Get a quote for Spain tax services →
Or read about our Spain Tax Services for Foreign Companies, or email contact@ibertrust.info.
Sources: AEAT, “NIF persona jurídica y entidad”; AEAT, “Identificación para realizar operaciones con otros empresarios dentro de la UE: ROI, VIES, NIF-IVA”; AEAT, “Registro e identificación de operadores económicos (EORI)” and “Registro del EORI”; AEAT, “Regímenes especiales de ventanilla única (OSS)” and “Registro en el régimen de la Unión, régimen exterior y régimen de importación”; European Commission, “Spain VAT Rules — One Stop Shop”; AEAT, “Identificación de empresarios no establecidos”. Timing figures are IberTrust’s experience, not statutory deadlines. General information, not legal advice.
IberTrust Global