Skip to content
← Back to Journal
Tax & Compliance
11 min read

VIES: How to Validate an EU Client's VAT Number

How to check an EU VAT number in VIES, what valid, invalid and unavailable mean, and what to keep as proof before invoicing without Spanish VAT.

By Frihet Team Updated on November 18, 2026
VIES: How to Validate an EU Client's VAT Number

TL;DR: VIES is the European Commission's search engine for national VAT registers. A "valid" answer shows that the number is active for intra-EU transactions on the day you check, but it does not decide the VAT treatment on its own: goods and services follow different rules. Keep the result, and also check the transaction, your own ROI registration and the returns that apply.

Key takeaways

  • VIES (VAT Information Exchange System) is an official European Commission search engine: it queries national VAT databases and returns valid or invalid, or no answer while a national system is down.
  • For an intra-EU supply of goods, the Spanish Tax Agency (AEAT) requires the customer to give you a valid VAT number from another member state and you to report the sale on Modelo 349, among other conditions.
  • For B2B services, a valid VIES result is one of the ways to prove your customer is a taxable person under Implementing Regulation (EU) 282/2011, which also allows other evidence when the number has been applied for but not yet issued.
  • An "invalid" result has no single cause: the number may not exist, may not be activated for intra-EU trade, or the registration may not be finished yet.
  • Keep the result with its date and, if you enter your own VAT number, the unique consultation number. VIES only confirms the status on the day you check.
Contents

To check a VAT number in VIES, open the European Commission’s official service (ec.europa.eu/taxation_customs/vies/), pick the client’s country, enter the number without the country prefix and save the answer with the date and time. VIES queries the national VAT registers and answers “valid” or “invalid” (European Commission). Example: you invoice €2,000 for a service to a Dutch company with a valid VAT number. Under the general rule the service is taxed where the client is established, so your invoice carries €0 of Spanish VAT (Article 69.Uno.1.º of Spain’s VAT Act).

If the result is “invalid”, check first for a typo. If the transaction is intra-EU, ask the client to confirm in writing that they are registered for intra-EU trade in their country before you decide the VAT treatment.

What VIES is, and why you shouldn’t skip it

VIES (VAT Information Exchange System) is a European Commission search engine. When you search, it pulls data from the national VAT databases and tells you whether valid intra-EU VAT data exists for that number at that moment. It can also tell you that a national service is temporarily unavailable.

Read the answer together with the type of transaction:

  • For an intra-EU supply of goods, the AEAT says the exemption requires, among other conditions, that the customer gives you a valid VAT number from another member state and that you report the sale on Modelo 349 (Spain’s EC Sales List).
  • For a B2B service under the general rule, the place of supply is usually where the customer is established (Article 44 of Directive 2006/112/EC), and the customer may be the one who accounts for the VAT through the reverse charge (Article 196). Implementing Regulation (EU) 282/2011 sets out how to prove that the customer is a taxable person: validating the VAT number in VIES is one way, and the regulation allows other evidence when the number has been applied for but is not yet on the register.

So “valid” does not mean “always invoice without VAT”, and “invalid” does not have the same consequence in every scenario.

How to validate a VAT number in VIES, step by step

  1. Open the European Commission’s VIES portal.
  2. Select the client’s country in the “Member State” dropdown. VIES adds the prefix when it runs the search.
  3. Enter the VAT number without the country prefix.
  4. Optionally, add your own Spanish VAT number to get a confirmation with a consultation number (useful if you need documentary proof).
  5. Click “Verify”. You get one of these answers:
    • Valid, with the company’s name and address if that country publishes them (not every country does).
    • Invalid.
    • Service temporarily unavailable for that country (this does not mean the number is invalid; see below).
  6. Keep the result with the date and time. If you added your own VAT number, the answer can include a unique consultation number that documents the check.

VAT number format by country: the VIES table and the WSDL

The VIES FAQ publishes the structure of each Member State’s VAT number in a table. It sits under question 11, the one about algorithms, and the algorithms are what the Commission does not publish: “The European Commission cannot divulge these algorithms. However, the structure of VAT identification numbers is given in the table below” (VIES FAQ, checked on 1 November 2026). For Spain, the table gives ESX9999999X: one block of 9 characters where the first and last can be a letter or a digit, but not both digits.

The table helps you catch a typo, but it does not tell you whether the number is active: only the check answers that.

The official web service (WSDL), built for automated integrations, applies a generic check that is the same for every country (https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl, checked on 9 October 2026 and again on 1 November 2026):

  • countryCode must match [A-Z]{2} (two capital letters).
  • vatNumber must match [0-9A-Za-z\+\*\.]{2,12} (2 to 12 alphanumeric characters, plus +, * and .).

In practice, enter the number exactly as the client gave it, with the right country selected: the portal adds the prefix and VIES confirms the syntax and the registration status.

What “invalid” means in VIES (and what to do)

An “invalid” result does not tell you the cause. The European Commission lists three:

  • The number does not exist.
  • The number has not been activated for intra-EU transactions. The client has a national tax ID but is not registered as an intra-EU operator (the equivalent of Spain’s ROI).
  • The registration is not finished yet. Changes do not always appear immediately in national databases, and therefore in VIES.

A typo on your side (a missing digit, an extra space) gives the same answer, so rule it out first.

A national system outage is a different, technical answer. It does not make the number invalid.

If the result is still “invalid” after retrying:

VIES and the ROI: two checks, not one

A valid client in VIES does not settle everything. You also need to check whether your transaction requires you to be registered in Spain’s ROI (Register of Intra-Community Operators) with a Spanish intra-EU VAT number, and to meet the filing obligations that come with it.

VIES documents the status of the number you searched; the ROI reflects your own intra-EU registration. Neither replaces an analysis of the transaction.

For how the ROI works, how to register and the current deadlines, see the guide to Modelo 349 and ROI registration.

What to check before you leave Spanish VAT off an invoice

SituationWhat it lets you conclude
Intra-EU supply of goods with a valid VAT number and a 349The exemption can apply if transport, documentation and the other legal conditions are also met.
General B2B service with a validated clientThe validation supports the client’s status; you still need to check the place of supply, the client’s establishment and the type of service.
Invalid result or system unavailableThese are not the same. Review the data, ask for national confirmation and gather the evidence the rule accepts before deciding.

Whoever issues the invoice has to be able to justify the VAT treatment. The VIES result is one piece of the file, not the whole file.

How VIES, Modelo 349 and Modelo 303 fit together

VIES, the ROI and Modelo 349 are not separate chores: they are pieces of the same workflow.

  1. VIES gives you evidence about the number you searched on a given date.
  2. The quarterly VAT return (Modelo 303) reports the transactions according to the current instructions and their nature.
  3. Modelo 349 (Spain’s EC Sales List) reports the intra-EU transactions that have to be included in it.

Your invoices, VAT records, Modelo 303 and Modelo 349 have to match each other; that matters as much as the check itself. Keep the validation together with the documents for each transaction.

Deadlines, filing frequency and how each transaction flows into the quarterly return are in the Modelo 349 guide.

Worked example: an intra-EU invoice validated in VIES

You’re a Spain-based freelancer, you registered in the ROI months ago and you have a new client in the Netherlands.

  1. Before invoicing, you open VIES, select the Netherlands and enter the VAT number the client gave you.
  2. VIES returns valid, with a matching company name.
  3. You save the result with the date and time.
  4. You issue the invoice:
ItemAmount
Software development (25 h × €80/h)€2,000.00
Taxable base€2,000.00
Spanish VAT charged€0.00
Total due€2,000.00

Suggested wording for this general-rule service: not subject to Spanish VAT because the place of supply is the customer’s country (Article 69.Uno.1.º of Spain’s VAT Act); reverse charge in the customer’s country. Adapt it to the actual transaction.

  1. Report the transaction on the returns that apply under their current instructions, and keep the VIES result together with the contract, the invoice and the evidence of the service.

How Frihet helps with intra-EU invoicing

The usual weak point isn’t understanding the mechanism. It’s remembering to run the check before each relevant invoice and keeping the proof somewhere safe.

Frihet keeps your European client, their VAT number and the rest of your invoices in one place, so their details are in front of you when you invoice and the VIES check doesn’t slip through the cracks. If you also bill in pounds, dollars or other currencies, see invoicing in 40 currencies from Spain.

Common mistakes when using VIES

  • Treating an old check as permanent. The status can change; repeat the check on a documented routine proportionate to the risk.
  • Confusing “service unavailable” with “invalid”. They are different answers, and neither decides the treatment of every transaction on its own.
  • Not keeping the result. Without dated evidence you lose useful proof; when you can, keep the unique consultation number too.
  • Building or guessing the VAT number format yourself. Enter the number the client gave you and let VIES confirm the country, the format and the national system’s answer. If you want to check the structure first, the VIES FAQ publishes the table by country; the WSDL only applies a generic check ([A-Z]{2} and [0-9A-Za-z\+\*\.]{2,12}).
  • Using “valid” as an automatic tax decision. Tell goods from services and review the ROI, place of supply, transport and returns case by case.

If you are starting to sell across the EU, make VIES part of a wider routine: identify the transaction, check the client, work out the place of supply, invoice with the right wording, file the returns and keep the evidence. That routine reduces mistakes, but it is no absolute guarantee in a tax review.

Share

Was this article helpful?

FAQ

What exactly is VIES?

VIES (VAT Information Exchange System) is the European Commission's search engine for national VAT databases. It shows whether a number is active for intra-EU transactions; it is not a database of its own and does not decide on its own how a transaction is taxed.

Do I need to validate in VIES on every invoice, or just once per client?

The rules do not set one check frequency for every transaction. Because VIES only confirms the status on the day you check, set a routine that matches the risk and check again when client details change, when something looks wrong or before a significant new transaction. Keep every result you rely on.

What do I do if my EU client shows as "invalid" in VIES?

Do not conclude that the client does not exist, and do not pick a VAT treatment without reviewing it. Check the number and the country, tell an invalid answer apart from a temporary outage, and ask the client to get confirmation from their own tax administration. For goods, the AEAT requires a valid VAT number for the intra-EU exemption; for services, Regulation 282/2011 allows other evidence when the number has been applied for but not yet issued.

How long does a new VAT number take to show as valid in VIES?

The European Commission does not publish a time frame. It says changes do not always appear immediately in national databases, and therefore in VIES. If your client has just registered, they can ask their own tax administration to confirm it; if you have just registered in Spain's ROI, check your status with the AEAT.

Does VIES validate VAT numbers from outside the EU?

No. VIES covers VAT numbers of EU member states and, under specific rules, Northern Ireland for goods. Transactions with non-EU countries follow the import, export and place-of-supply rules that apply to them.

Do I need to be registered in the ROI to search VIES?

No. The public search does not require ROI registration. Whether you need your own Spanish intra-EU VAT number depends on the transaction: the AEAT lists intra-EU supplies and acquisitions of goods and certain services among the cases that require registering through Modelo 036.

How do I check whether a company is in Spain's ROI?

To check a client, use VIES: it returns "valid" when the number is active for intra-EU operations in its country, and you should keep the result with its date. Checking your own position in the ROI is a different matter: it depends on your inclusion in the ROI, which is requested with Modelo 036 (box 582) and covered in the Modelo 349 and ROI registration guide.

Compare with

What's new at Frihet and practical guides, in your inbox

At most one email a month. Every email includes a link to unsubscribe.

We will use your email only to send you this newsletter.

Frihet — Business without drama

Start Free