• Skip to primary navigation
  • Skip to main content
Flexible Invoices wordmark logo on a white background
WP Desk

WP Desk

WooCommerce Plugins

Flexible Coupons

Flexible Coupons

Gift cards and tickets

ShopMagic

ShopMagic

E-mail automations

Flexible Invoices

  • Pricing
  • Add-ons
  • Docs
  • Support
  • Blog
  • My Account
  • Ideas
WooCommerce VAT Number Validation: Catching a Bad VIES Number Before the Invoice

Published: 2026-11-14 / Updated: 2026-10-21 / Blog

WooCommerce VAT Number Validation: Catching a Bad VIES Number Before the Invoice

patrycja.wojas

A business customer types a VAT number at checkout, your store applies reverse charge, and the order completes. Nothing fails. If that number was not valid, the VAT you did not charge is yours to pay, and you will learn this months later from your accountant rather than from your shop.

What validation does and when it has to happen

Validation checks the number against VIES, the EU system that confirms whether a VAT identifier is registered and active in the member state that issued it. The answer is yes or no, and it has to arrive before the order completes.

Timing is the whole point. A number checked at checkout changes the outcome: the customer sees the problem, fixes a typo or pays VAT. The same number checked in February changes nothing, because the invoice is issued, the money is collected and the tax treatment is already recorded.

What validation does not do is confirm that the person typing it is entitled to use it. VIES answers whether the number exists and is active, not who is holding it.

What goes wrong without it

Three failures, in order of how often they happen.

  • A typo. The commonest by far, and the easiest to fix, because the customer is still on the page.
  • A number that is no longer active. Registrations are cancelled. A number that worked last year may not work today.
  • A number from the wrong country. Format looks plausible, prefix does not match the billing address, and nothing in a default checkout objects.

All three produce the same result: reverse charge applied when domestic VAT was due.

What to do when VIES is unavailable

It happens, and it is the part most setups handle badly. National systems behind VIES go offline for maintenance, and during that window a perfectly valid number cannot be confirmed.

You have two options and you should choose deliberately rather than discover the default. Block the order until validation succeeds, which protects you and loses the sale. Or accept the order, flag it, and verify afterwards, which keeps the sale and gives you a list to check.

For most stores the second is right, provided the flag actually produces a list somebody looks at.

Keeping proof

Record the result of the check with the order: the number, the response and the date. The number being valid today is not evidence it was valid at the moment of sale, and that moment is the one that matters.

Validation belongs at checkout, not in a spreadsheet afterwards. Flexible Invoices checks the buyer’s VAT number against VIES as the order is placed and applies the right VAT treatment to the document that follows.

Summary

VAT number validation checks a buyer’s identifier against VIES, the EU system confirming whether a number is registered and active in the issuing member state, and the check has to happen before the order completes.

Timing is what makes it useful. Validated at checkout, a bad number is something the customer can fix or pay around. Validated months later, nothing changes, because the invoice is issued and the tax treatment is recorded. Note that VIES confirms a number exists and is active, not that the person entering it is entitled to use it.

Three failures account for almost all cases: a typo, which is the most common and the easiest to correct while the customer is still on the page; a registration that has been cancelled since it last worked; and a number from a country that does not match the billing address. All three end the same way, with reverse charge applied where domestic VAT was due, leaving the uncharged amount as your liability.

VIES outages need a deliberate decision rather than a default. Blocking the order protects you and loses the sale, while accepting and flagging it keeps the sale and produces a list to verify. The second works for most stores, provided somebody reviews the list.

Record the number, the response and the date against the order. Validity today is not evidence of validity at the moment of sale, and that moment is the one that counts.

Frequently asked questions

These four decide how a store handles VAT numbers day to day.

Is checking the format enough?

No. A correctly formatted number can be inactive or belong to someone else. Only a VIES check tells you whether it is registered.

Can I validate numbers in bulk after the fact?

You can, and it is better than nothing, but it answers the wrong question. It tells you the status now, not at the time of sale.

What should the customer see if validation fails?

A message that names the problem and lets them correct it. Silently charging VAT without explanation generates support tickets.

Does this apply to buyers outside the EU?

VIES covers EU VAT numbers. Sales outside the EU follow export rules and a different set of checks.

About patrycja.wojas

  • Terms & Conditions
  • Privacy Policy
  • Support Policy
  • Refund Policy

© 2026 A WP Desk WP Desk Invoicing

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}