Skip to content
Aipiter, homeCreate my account

Practical guide

VAT number in Spain: when you need one and how to get it

A Spanish VAT number, known as a NIF-IVA, identifies a business or self-employed professional for certain transactions with other EU countries. It consists of the prefix ES followed by the Spanish tax ID. When a customer or supplier asks for it, check whether you need to join Spain’s Register of Intra-Community Operators (ROI).

Identify the tax number your customer needs

The Aipiter teamPublished

Before you start

Start with the legal entity, the countries involved and whether you supply goods or services.

Identify the tax number your customer needs

A domestic customer may ask for your Spanish tax ID for its invoice records. For cross-border dealings between EU businesses, a form may ask specifically for an ‘EU VAT number’.

The Spanish format starts with ES. Check the registration status to confirm an active number. See the Spanish tax agency’s list of relevant transactions.

Apply for ROI registration using Form 036

Where registration is required, file the tax registration or amendment form and enter the expected date of your first transaction. Follow the Spanish tax agency’s Form 036 guidance.

Keep the submission receipt and verify the registration status. A receipt confirms that you applied. Your registration has a separate status.

What does VIES confirm?

VIES checks whether a VAT number is listed as valid for intra-EU trade. Record the date and result.

If the number is invalid, check for a typing error and confirm the status with the business or the relevant authority.

If the service does not respond, try again before deciding how to document the transaction.

Worked example

A Madrid consultancy needs to invoice a French business

The customer asks for a Spanish VAT number before it can register the consultancy as a supplier. The business gathers the information it needs to determine how VAT applies to the service.

Details to check before invoicing
What to checkResult
Consultancy’s VAT numberSpanish tax ID with ES after checking ROI registration
Customer’s VAT numberFrench registration supplied by the customer and checked in VIES
Supporting recordsRegistration confirmation, VIES result and description of the service

If registration is outstanding

Check its status with the Spanish tax agency. Keep the invoice in draft while you establish the treatment.

If both numbers are valid

Confirm where the service is treated as supplied. The guide to intra-EU VAT from Spain explains how goods and services differ.

Frequently asked questions

Is a Spanish tax ID the same as a VAT number?

The NIF identifies a person or business for tax purposes in Spain. The NIF-IVA includes ES and is used for intra-EU transactions that require it.

Which number do I use if the customer operates in multiple countries?

Confirm the customer establishment involved in that transaction and verify the number it gives you.

Get the customer’s details before you invoice

Confirm who receives the invoice and record the identifier that applies to this transaction.

Create my account