How to get a Spanish VAT number: NIF, ROI and VIES step by step
Spain #Get a VAT number

How to get a Spanish VAT number: NIF, ROI and VIES step by step

8 min read Updated on

A foreign business needs a Spanish VAT number as soon as it makes a transaction taxable in Spain: stock in a Spanish warehouse, local sales, imports or intra-EU flows, whatever its turnover. That number is your NIF (Número de Identificación Fiscal) with the ES prefix, obtained with Modelo 036 and activated for intra-Community trade through the Registro de Operadores Intracomunitarios (ROI). Count 40 days for an EU or UK company and 45 to 60 days for a non-EU company, a timeline a tax representative in Spain keeps on track by preparing the file the Spanish Tax Agency (AEAT) expects.

I'm Marie, intra-Community VAT expert at Eurofiscalis. I help European and international businesses register for VAT in Spain and keep their filings compliant.

Illustration : document d'immatriculation et tampon officiel

Summarize this article with

Opens in a new tab, with the article already requested.

When do you need a Spanish VAT number?

Step 1/5

In which country do you want to assess your VAT obligation?

Select the country concerned. You can change it at any time.

You need a Spanish VAT number when a transaction is taxable in Spain and cannot be declared at home or through OSS. The obligation often starts before your first invoice, on the day your goods reach a Spanish warehouse and long before anyone thinks about VAT returns. What counts is the transaction, not the amount of Spanish VAT at stake.

SituationSpanish VAT number required?Why
Goods stored in Spain (Amazon FBA, 3PL, fulfilment centre)YesLocal stock creates an obligation from the first unit
Purchase and resale of goods within SpainYesA domestic sale is invoiced under Spanish VAT
Import of goods from outside the EUYesThe importer declares and recovers import VAT
Intra-EU acquisition of goods in SpainYesTaxed in Spain and reported on Modelo 349
Supply of goods from Spain to a business in another EU countryYesThe exemption requires a NIF-IVA valid in VIES
Export of goods from Spain outside the EUUsually yesThe export is documented and declared in Spain
B2C distance sales to Spain above the EU thresholdNot necessarilyOSS covers them if no goods are stored in Spain
Services linked to Spanish property, events or passenger transportOften yesPlace-of-supply rules tax them in Spain

The €10,000 threshold of the EU One-Stop Shop (OSS) causes most of the mistakes we see. It covers cross-border B2C distance sales and some digital services, but it never exempts stock held in Spain or local sales from registration.

What a Spanish VAT number looks like: format, NIF, NIE and CIF

A Spanish VAT number is the NIF preceded by ES: two letters, then 9 characters. Spain issues no separate VAT number. When the AEAT accepts your ROI application, it adds the country code to your NIF, as provided by article 25 of Royal Decree 1065/2007.

Spanish VAT number format

HolderNIF structureExample
Foreign company without a Spanish establishmentN + 7 digits + control letterESN1234567A
Spanish companyletter + 8 digitsESB12345678
Spanish branch of a foreign companyW + 7 digits + control letterESW1234567B
Foreign individualNIE: X, Y or Z + 7 digits + letterESX1234567L

A foreign company almost always receives an NIF starting with N, which tells your Spanish customers at a glance that they are dealing with a non-resident entity.

NIF, NIE, DNI and CIF

Every taxpayer in Spain has an NIF, company or individual. The NIE identifies foreign individuals, such as a sole trader or the director who signs the forms, never the company itself. Spanish nationals use their DNI identity card number as their NIF.

And the CIF? It was the tax code of Spanish companies until 2008, when it merged into the NIF. Invoices and ERP fields still say "CIF", so read it as the company's NIF.

Verify a Spanish VAT number in VIES

VIES, the VAT Information Exchange System of the European Commission, creates nothing: it queries the Spanish database and answers valid or invalid. An NIF not yet registered in the ROI comes back invalid in VIES, even though the AEAT knows the company. Check the VAT number in VIES, yours and your customer's, before your first intra-EU invoice. Keep the dated result on file: it supports the exemption if the AEAT questions it later.

How to register for VAT in Spain step by step

One form, Modelo 036, two stages: first the NIF, then the ROI. Since 3 February 2025, form 037 no longer exists.

  1. Map your Spanish transactions: stock, local sales, imports, exports, intra-EU acquisitions and supplies, services taxable in Spain.
  2. Decide on representation: fiscal representative or simple tax agent, depending on where you are established (see below).
  3. Prepare the corporate file, with apostilles and sworn Spanish translations of foreign documents.
  4. Submit Modelo 036 to obtain the NIF. Page 10 now declares the beneficial owners of legal entities.
  5. Apply for the ROI in the same form: box 582 for the request, box 584 for the expected date of your first intra-EU transaction.
  6. Provide the information the tax agency requests. It can ask you to prove that your intra-Community activity is real.
  7. Verify the NIF-IVA in VIES, then issue your first intra-EU invoices.
  8. Set up your returns: Modelo 303, Modelo 390, Modelo 349 and, above the thresholds, Intrastat.

Documents for a Spanish VAT registration

A complete file on the first submission is what keeps you within 40 days. The list varies with your country and legal form, but expect:

  • Modelo 036, signed, including page 10 on beneficial owners;
  • a recent company register extract or equivalent proof of incorporation;
  • the articles of association, when requested;
  • a VAT certificate from your country of establishment;
  • the passport or ID of the legal representative;
  • a power of attorney if a third party files for you;
  • apostilles on foreign official documents;
  • sworn Spanish translations of documents not issued in Spanish;
  • proof of the Spanish activity: contracts, warehouse agreement, import documents or business plan.

Tax representative in Spain: who needs one?

A business established outside the EU must appoint a fiscal representative in Spain, under article 164.Uno.7º of the Spanish VAT Act. Countries with mutual assistance instruments are exempt.

Where you are establishedFiscal representativeIn practice
EU Member StateNot requiredA tax agent handles registration and filings
United KingdomNot required in practiceYou can still appoint a representative (mandatario)
NorwayNot requiredMutual assistance with Spain
Switzerland, United States, other non-EURequiredAppointed before the NIF-IVA is assigned

This is not a mailbox role. Depending on the case, the fiscal representative can be jointly liable for your Spanish VAT debts. That is why a serious representative reviews your flows, your invoicing and your stock locations before it accepts the mandate.

One more trap. The Canary Islands, Ceuta and Melilla sit outside the Spanish VAT territory: they apply their own indirect taxes (IGIC and IPSI), and goods shipped there from the mainland follow the export rules.

How long does it take to get a Spanish VAT number?

Count 40 days for an EU or UK company and 45 to 60 days outside the EU. The gap comes from the file rather than the form: appointing a fiscal representative, collecting apostilles and ordering sworn translations add a few weeks for non-EU businesses.

The legal clock is harsher. If the AEAT has not ruled within three months, the NIF-IVA can be considered refused (article 25.1 of Royal Decree 1065/2007). Silence is not approval.

After registration: returns and invoicing

From the first quarter, you file even when nothing happened, because a quarter without transactions still requires a nil Modelo 303.

ReturnWhat it coversFrequency
Modelo 303VAT return and paymentQuarterly; monthly above €6,010,121.04 of turnover, in REDEME or a VAT group
Modelo 390Annual VAT summaryYearly, except on SII
Modelo 349Intra-EU transactionsMonthly; quarterly up to €50,000 of supplies per quarter
IntrastatFlows of goodsMonthly, once you exceed the threshold per flow

Monthly filers also report their invoices through SII, the near real-time system on the AEAT website. Intrastat starts once your arrivals or your dispatches exceed €400,000 in a year. Deadlines and paying from a foreign bank are covered in our Spanish VAT return (Modelo 303) guide; thresholds in EC Sales List and Intrastat in Spain.

Two invoicing reforms are coming:

  • VERI\*FACTU starts on 1 January 2027 for companies paying Spanish Corporate Income Tax, 1 July 2027 for others. Without a permanent establishment in Spain, you are out of scope.
  • B2B e-invoicing (Royal Decree 238/2026) covers invoices to customers established in Spain: 12 months after the ministerial order on the AEAT platform above €8 million of turnover, 24 months for others. The order was still awaited in September 2026.

Penalties for late registration and late returns

The real risk is retroactive: the AEAT claims the VAT due since your first taxable transaction, blocks input VAT recovery until you regularise and adds penalties on top.

File late before any AEAT request and article 27 of the General Tax Act applies a surcharge, not a penalty:

  • 1% plus 1% per full month, up to 12 months, without interest;
  • 15% after 12 months, plus interest from the 13th month;
  • 25% off the surcharge if you pay it and the tax on time.

After an AEAT request, article 191 applies penalties of 50% to 150% of the unpaid VAT, depending on severity.

Need help with your Spanish VAT registration?

Eurofiscalis prepares your Modelo 036, the ROI application and the supporting file, and acts as your fiscal representative when you need one. Book a call with an expert to review your Spanish VAT obligations in 30 minutes.


FAQ

Do I need a Spanish VAT number if I use Amazon FBA in Spain?

Yes. Stock in a Spanish Amazon fulfilment centre triggers registration from the first unit, whatever your sales. The €10,000 OSS threshold changes nothing here. Pan-European FBA sellers face the same rule in every storage country: see our guide to Amazon VAT registration.

What is the difference between a NIF and a Spanish VAT number?

The NIF is your Spanish tax identification number. The VAT number, or NIF-IVA, is that same NIF preceded by ES and activated for intra-EU trade through the ROI. Until your ROI registration is accepted, anyone who checks the number in VIES sees it as invalid.

Which Modelo 036 boxes are used for ROI registration?

Box 582 requests registration in the Registro de Operadores Intracomunitarios. Box 584 gives the expected date of your first intra-EU transaction. Since February 2025, the 036 is the only census form: form 037 has gone, and page 10 now declares the beneficial owners of the company.

How long does it take to obtain a Spanish VAT number?

About 40 days for an EU or UK company, 45 to 60 days for a non-EU company, which in most cases must also appoint a fiscal representative. Expect more if the tax agency asks for proof of activity. And after three months without any answer, the NIF-IVA can be considered refused.

Can OSS replace Spanish VAT registration?

Only for cross-border B2C distance sales and some digital services. OSS does not cover stock in Spain, domestic sales or imports. If you import into Spain without upfront VAT or keep goods in a Spanish warehouse, you need a Spanish VAT number.

Does a UK or non-EU company need a fiscal representative in Spain?

Swiss, US and most other non-EU businesses must appoint one. UK and Norwegian companies are not required to in practice, but many still appoint a representative to deal with the Spanish Tax Agency on their behalf. EU companies can follow the simpler route of a tax agent.

Is the CIF still used in Spain?

Not officially. Since 2008, the NIF has replaced the CIF of Spanish companies, keeping the same number. Software and invoices still label the field "CIF": read it as the NIF, and write the full VAT number with ES on intra-EU invoices.

What happens if a Spanish VAT return is filed late?

Before any AEAT request, you pay 1% plus 1% per full month, then 15% plus interest after a year, with 25% off if paid on time. Late registration also forces you to correct past sales, and how you invoice a client in Spain.

Countries concerned


marie

About the author

Marie Bertrand

Intra-Community VAT Expert

Expert in intra-Community VAT, Marie Bertrand brings over 7 years of hands-on experience to fiscal training. With a passion for teaching, she breaks down European VAT rules — declarations, Intrastat, OSS — making them clear and actionable for professionals at every level.