When a sale to an EU business is VAT-exempt in Spain
Article 25 of the Spanish VAT Act (Ley 37/1992) exempts supplies of goods dispatched or transported to another member state when the buyer is a business, or a legal entity not acting as one, holding a VAT identification number issued by another member state and has given that number to the seller. The exemption depends on the seller reporting the sale in the recapitulative statement of intra-community transactions. Nor does it apply where the buyer's intra-community acquisitions are not taxable in the destination country under the criteria of Article 14 of the Act, or to sales under the special scheme for second-hand goods, works of art, antiques and collectors' items.
In practice, for the usual case, three things must all be true: the buyer is a business with a valid VAT number from another EU country, the goods leave Spain for another member state, and you report the sale. The buyer then accounts for VAT in its own country. Miss any one of them and the sale carries Spanish VAT.
This guide covers goods sold by a business established in mainland Spain or the Balearic Islands. These similar-looking cases follow other rules:
- Sales to consumers in other EU countries, which may carry the customer's local VAT under the OSS scheme. Our guide to Shopify VAT and taxes in Spain covers them.
- Sales to Spanish businesses: they fall outside this exemption even if the customer has an EU VAT number, because the goods never leave Spain. As a rule they carry Spanish VAT; domestic reverse charge cases are a separate regime your adviser has to confirm.
- Shipments to the Canary Islands, Ceuta and Melilla, also covered in the tax guide, and exports outside the EU.
- Services, where the place-of-supply rules are different. They are out of scope here.
Spanish paperwork to sort out first
Shopify calculates tax on each order, but its Help Center is clear that it does not remit or file taxes for you. Registrations and returns stay with you and your adviser. Four pieces have to be in place before you switch anything on.
Your own EU VAT number (NIF-IVA). According to the Spanish Tax Agency (AEAT), a business established in mainland Spain or the Balearics that makes intra-community supplies registers in the Registro de Operadores Intracomunitarios (ROI) using census form 036, ticking box 582 and entering the expected date of the first transaction in box 584. If the AEAT does not decide within three months, the application may be treated as refused, so apply well ahead of launch.
Your customer's VAT number, checked in VIES. VIES is the European Commission system that queries each country's VAT database. The Commission calls it a search engine, warns that changes do not always show up immediately and recommends keeping a record of each validation for tax audits. The AEAT offers the same check with a digital certificate and notes that if you identify yourself with your own VAT number, the response can prove you checked a number on a given date.
Proof of transport. Article 13 of the Spanish VAT Regulation says the dispatch to another member state can be proved by any legally admissible means, in particular the evidence listed in Article 45a of Council Implementing Regulation (EU) 282/2011, depending on who arranges transport. Agree with your adviser and carrier which documents to keep for each shipment.
Form 349. Each exempt sale goes into Modelo 349, the recapitulative statement of intra-community transactions. The AEAT is explicit: if the buyer has not given you a valid VAT number from another member state, or the sale is not included in Modelo 349, the supply is taxable and not exempt.
VAT number validation in the admin and at checkout
Both native features belong to Shopify Tax, which stores located in the EU can select under Settings > Taxes and duties. If your store was not collecting tax in the EU before 13 May 2026, Basic Tax is no longer available there and the options are Shopify Tax or manual tax settings. The Help Center says VAT validation and the reverse charge exemption are available on every plan. Shopify Tax has its own fees, published in the Help Center.
In the admin, you store the number in the customer profile (VAT number field) or, with Shopify B2B, on the company location. Since May 2025, Shopify Tax validates it against VIES for EU countries and HMRC for the UK, shows whether it is valid, invalid or the service is unavailable, and adds the reverse charge exemption to the buyer when it is valid.
At checkout, since February 2026, you can show the Company VAT number field in the customer information section of the checkout form options. It can be set to Don't include (the default) or Optional. With Optional, the buyer enters their number, Shopify validates it in VIES in real time and removes VAT when the order qualifies. A valid number is saved to the customer profile for future orders. Shopify asks you to turn on VAT invoices whenever you turn on this field.
Two limits shape the design. Checkout validation works for guest checkout and Shop Pay, but not yet for B2B-specific checkouts. And if VIES does not respond at that moment, Shopify charges VAT by default, with no manual override.
For a regular business customer who should never be charged VAT, Shopify suggests setting their profile to Don't collect tax before they order. The exemption then applies to all their future orders without a VIES check, which also means it would apply to an order of theirs shipped within Spain. Use it sparingly.
Without Shopify Tax there is no native validation; several Shopify App Store apps query VIES. Check whether the native features already cover your case before installing one.
The fulfillment location decides the exemption
This is the detail most setups miss. Shopify bases the exemption on the order's fulfillment location, and the store address in General settings plays no part. You also need at least one active fulfillment location in the EU.
The origin is set when the order is created and is not always the location that ends up fulfilling it. Changing the fulfillment location afterwards does not re-evaluate the exemption, and orders with items stocked in different countries are not supported, so the exemption may not apply as expected. Note a contradiction in the documentation: the Managing EU taxes Help Center page and the February 2026 changelog post say that changing the fulfillment location can make the exemption apply, while the dedicated checkout validation page says that changing it after the order is created does not re-evaluate it. The safe approach is to have the right location assigned before the order is created.
If you use a 3PL warehouse in another EU country, or plan to switch warehouses, check which location orders are assigned to before they are created. An order fulfilled from a warehouse in France to a French business will not get the exemption in Shopify, even though your company is in Spain. What holding stock abroad means for your tax position is a question for your adviser. The combinations Shopify documents are:
- EU location shipping to a different EU country: exemption applies.
- EU location shipping to the UK: applies.
- UK location shipping to the EU or within the UK: does not apply.
- Location and destination in the same country: does not apply. A store fulfilling from Madrid to a business in Valencia charges VAT.
Shopify B2B: companies, locations and VAT numbers
Shopify B2B is available on the Basic, Grow, Advanced and Shopify Plus plans, not on Starter or Retail. It is built on companies and company locations, and each location has its own tax ID, tax exemptions, shipping and billing addresses, pricing, payment terms and contacts.
With Shopify Tax, when a location has a shipping address in the EU or the UK, the Tax ID field becomes VAT number and Shopify Tax validates it on save. The location tax settings offer Collect tax, Don't collect tax and Collect tax unless exemptions apply. VAT numbers and exemptions belong to each location and are edited from the location page, not the company page.
For a distributor with branches in several countries, create one location per delivery address with its own VAT number, so each order is assessed against the right destination country.
Because checkout validation does not run on B2B checkouts, onboarding each business customer should include entering and validating their VAT number in the admin before the first order. Catalogs, company pricing and payment terms are covered in our Shopify B2B wholesale guide.
Weblineo has worked only with Shopify since 2016 and is a Shopify Plus Partner. Setting up a wholesale channel with companies, locations, catalogs and the matching tax configuration is what our Shopify B2B service does.
The invoice: what it must say and who issues it
Shopify Tax VAT invoices are turned on in the European Union tax settings, appear on the order status page and are not emailed automatically. They are generated only for orders shipped to the EU or the UK and placed through Shopify checkout, with no duties calculated and with VAT calculated even if it comes to zero. Automatic invoices are not yet supported for orders shipping to Portugal. When the exemption applies, the invoice carries the note Reverse Charge Mechanism: Recipient responsible for VAT.
Shopify's documentation does not say these invoices meet the Spanish invoicing regulation: it does not explain the numbering and mentions no reference other than that note. For a Spain-based store, the safer route is to issue invoices from an invoicing app or your ERP and have your adviser confirm the exemption wording. If that means connecting Shopify to your software, it is development work we can take on.
Whatever software issues the invoice also has to meet the Spanish invoicing systems regulation (Verifactu), which we cover in our Verifactu post.
Article 6 of the Spanish invoicing regulation (Royal Decree 1619/2012) sets the content of every invoice. For an exempt intra-community supply, these are the items that matter most:
- Number and, where used, series, numbered consecutively. Corrective invoices need their own series.
- Full name or company name and address of both the issuer and the customer.
- Your tax ID and the customer's, which is mandatory for a supply exempt under Article 25 of the VAT Act.
- Description, taxable base and unit price excluding tax.
- A reference to the exemption: the relevant provision of the Spanish VAT Act or of Directive 2006/112/EC, or a statement that the transaction is exempt.
- If the invoice mixes exempt and non-exempt items, a separate taxable base for each.
Common mistakes and fraud risk
Watch for these when you open the channel:
- Treating a VAT number as safe because Shopify validated it. Validation checks the format and that the number is valid, not that the buyer is authorized to use it. Shopify recommends checking suspicious numbers in VIES yourself and reviewing the order before fulfilling it.
- Removing VAT from an order delivered in Spain because the buyer has a VAT number from another country. Without transport to another member state there is no intra-community supply.
- Setting a customer to Don't collect tax and forgetting about it, since it applies to all their future orders.
- Switching warehouses or 3PLs without checking which location new orders are assigned to.
- Selling before your ROI registration is in place, or leaving sales out of Modelo 349.
- Refunding a VAT-free order without issuing a corrective invoice in its own series.
- Turning on dynamic tax-inclusive pricing without testing it. Shopify adjusts the displayed price by the destination's standard rate and ignores reduced rates, so it can differ from the tax actually charged. With the feature off, the displayed price does not change.
Test orders before you go live
Run them on the store with its final configuration. For each order, note the tax applied, the total, whether the VAT number was saved to the profile and which invoice was generated, with what wording. Then go through the results with your adviser.
If you would rather build it with us, we set up the B2B channel, checkout and the connection to your invoicing app or ERP through our Shopify B2B and Shopify development services. The tax position is your adviser's call.
- Business in another EU country with a valid VAT number, fulfilled from a location in Spain: should be VAT-free.
- Spanish business with a tax ID: VAT charged.
- Invalid VAT number: VAT charged.
- Consumer in another EU country: VAT according to your OSS setup.
- Business order fulfilled from a location in the customer's own country, if you have one: VAT charged.
- Shipment to the Canary Islands: Shopify warns it may charge standard Spanish VAT instead of the local tax; Ceuta and Melilla are treated as tax-free.
- Business customer with a company location and a validated VAT number, ordering through the B2B checkout.
- Refund of a VAT-free order and its corrective invoice.
Frequently asked questions
Is a VAT number enough to sell to a customer without VAT?
No. Spanish VAT law requires a VAT number from another member state that the buyer gives you, transport of the goods to another member state, and reporting the sale in Modelo 349. You also need your own ROI registration.
Does Shopify check VAT numbers in VIES?
Yes, with Shopify Tax. In the admin it validates EU numbers against VIES and UK numbers against HMRC, and at checkout it validates in VIES in real time. It checks format and validity, not whether the buyer is authorized to use the number. If VIES is down, VAT is charged.
Can I sell VAT-free to a Spanish business?
Not under this exemption. Article 25 requires a VAT number from another member state and transport out of Spain, and Shopify does not apply the exemption when the destination is in the same country as the fulfillment location.
What if the order ships from a warehouse in another EU country?
Shopify uses that location as the origin. The exemption applies when the destination is a different EU country or the UK, not when the customer is in the same country as the warehouse. The origin is fixed when the order is created. The tax implications of holding stock abroad are for your adviser.
Are Shopify VAT invoices valid in Spain for these sales?
Shopify Tax issues VAT invoices with a reverse charge note, but its documentation does not say they meet the Spanish invoicing regulation. Check with your adviser and, if they fall short, issue invoices from an invoicing app or your ERP.
