AovUp EU & UK VAT Validation for WooCommerce

Description

Selling to businesses in other EU countries? A business with a valid VAT number pays no VAT on your invoice: it accounts for the VAT itself (the “reverse charge”). This plugin handles that at checkout.

  • A VAT number field on the classic checkout and on the Checkout block, and in My Account addresses. Returning customers see their number filled in.
  • Format checks for all 27 EU countries, Northern Ireland (XI) and the UK (GB), including the UK check digits, so typos are caught right in the field.
  • Live checks with VIES, the European Commission’s VAT number service, once you switch them on. The customer sees the result under the field. When VAT is removed, the message names the registered business where the country’s VIES record includes the name.
  • Reverse charge: a verified number from another EU country removes VAT from the order. Numbers from your own country don’t, and neither do goods delivered (or picked up) in your own country, unless you choose otherwise. You pick which countries qualify, whether the number must match the billing country, and whether an unregistered number stops the checkout or just keeps VAT on.
  • Subscription renewals (WooCommerce Subscriptions): the number is checked again before each renewal, and a renewal whose number no longer qualifies is charged VAT, with an order note that says why. A renewal whose number can’t be checked at that moment keeps its reverse charge only if the number was verified recently (see the FAQ).
  • Required for B2B-only stores, if you like: then no order can be placed without a VAT number in the billing address.
  • Evidence on every order: the number, the result, the registered name and address (where VIES returns them), when it was checked and whether VAT was removed, shown on the order screen. An order note records the number, the result and whether VAT was removed.
  • A reverse-charge note on the order confirmation, in order emails and on invoices made with “PDF Invoices & Packing Slips for WooCommerce”.
  • Works with AovUp Tax Exemption: if Tax Exemption already asks for a tax number at checkout, this plugin leaves the checkout to it, so customers never see two number fields.

Pro

AovUp EU & UK VAT Validation Pro adds HMRC checks for UK numbers, official consultation numbers from VIES or HMRC (proof that you checked), accepting numbers while VIES is down with an automatic re-check, a “Check again” button on orders, and a CSV export of the evidence for your VAT return.

External services

This plugin can check VAT numbers with VIES (VAT Information Exchange System), run by the European Commission. It is off until you tick “Check with VIES” under WooCommerce > Settings > Tax > VAT numbers.

  • What is sent: when a customer enters a VAT number at checkout or in their account, the number and its country code are sent to https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number. Nothing else about the customer or the order is sent.
  • When: only when a well-formed number is entered or changed, and before a subscription renewal (unless you switch that off). Answers are cached (valid numbers for a day), except for the check before a renewal, which always asks again. To protect your VIES allowance, each visitor can have at most 20 numbers checked online in 10 minutes (60 per IP address, 200 for the whole store); past that, VAT is charged and the customer is asked to try again a few minutes later. IPv6 addresses count by their /64 network, and signed-in customers with a paid order have a store-wide count of their own.
  • Service terms and privacy: VIES, European Commission legal notice, privacy statement.

The plugin makes no other outside requests.

Screenshots

Installation

  1. Install and activate the plugin (WooCommerce must be active).
  2. Go to WooCommerce > Settings > Tax > VAT numbers.
  3. Tick “Check with VIES” to check numbers online, then check the countries whose numbers remove VAT.
  4. Place a test order with a VAT number from another EU country.

FAQ

Does it work with the Checkout block?

Yes. The field appears in the address form of the Checkout block and of the classic checkout, and the totals update as soon as the number is checked.

Why does a number from my own country not remove VAT?

Sales to businesses in your own country are normally taxed. If your situation is different, tick “Same country” in the settings.

What happens when VIES is down?

The customer is told the service is not answering and VAT is charged; they can try again a few minutes later. (Pro can accept the number and check it again in the background.)

What does the reverse-charge note say?

By default: “Reverse charge: VAT to be accounted for by the customer.” Add the legal reference that fits what you sell in the settings, for example Article 196 of Council Directive 2006/112/EC for services, or Article 138 for goods sent to another EU country.

What about subscription renewals?

With WooCommerce Subscriptions, a renewal order copies the first order’s reverse charge. Before each renewal is paid, the plugin checks the number again (“Subscription renewals” in the settings, on by default). If the number is no longer registered or no longer qualifies, VAT is charged on that renewal and the order note says why. If the number can’t be checked at that moment (VIES doesn’t answer or refuses the check, or VIES checks are switched off in the settings), the renewal keeps its reverse charge only when your other settings still allow it and the number was verified: a check found it valid within the subscription’s last billing period plus a week (38 days for a monthly subscription, 373 for a yearly one), so one missed check is covered but checks that stay off are not. Otherwise VAT is charged, for example because “the number was never verified” or because its last successful check is too old, and the order note says so. A renewal that has no record of a check of its own uses its subscription’s record, or else the VAT number saved on it is checked again; one without any number pays VAT. A renewal charged VAT only because its number couldn’t be checked, or because it has no number at all, is listed in a notice on the Plugins screen, the Orders screen and this plugin’s settings, oldest first and 20 at a time, until you press “Done” for it, so you can check the number by hand and refund the VAT if it is valid. “Done” clears only the renewals the notice showed; nothing leaves the list any other way, except when the order is deleted. Every answer a renewal check gets is saved on the subscription, so the next renewal starts from it. The order note and the WooCommerce log (WooCommerce > Status > Logs, source “aovup-vat”) say why the number wasn’t checked. The age counts the subscription’s billing period and interval only: a free trial longer than one period, synchronised renewals and early or late renewals aren’t taken into account, and a renewal whose subscription can’t be found counts a year. Developers can change the age with the aovup_vat_renewal_unchecked_max_age_days filter. These checks never count against the storefront check limits.

Why is VAT charged when the goods stay in my country?

The reverse charge covers goods sent to another country, and services. Goods delivered to an address in your own country, or picked up from you, are a domestic sale, so VAT is charged whichever VAT number the customer has (unless you tick “Same country”). If one order mixes goods delivered in your country with services, VAT is charged on the whole order.

Can a script use up my VIES allowance by trying numbers at checkout?

No. Only well-formed numbers are sent, answers are cached, and each visitor can have at most 20 numbers checked online in 10 minutes (60 per IP address, 200 for the whole store), through every entry point, WordPress’s admin-ajax.php included. IPv6 addresses count by their /64 network, so one connection can’t start a new count with every address; someone who holds a larger block (a /48 has 65,536 of them) can still start a new count per /64, and only the store-wide limit stops them. Signed-in customers with a paid order (one with a payment date and a total above zero; a cash-on-delivery order once it is completed) have a store-wide count of their own, so anonymous traffic that uses up the visitors’ count doesn’t stop your known buyers. Signed-in shop managers, background jobs and the checks before subscription renewals aren’t limited. Developers can change the limits with the aovup_vat_check_limits filter. Behind a proxy or CDN that doesn’t pass the visitor’s address on, every visitor shares the per-address count: return the visitor’s real address from the aovup_vat_check_limit_ip filter.

Can I check UK VAT numbers?

UK numbers get a format and check-digit test. Since 2025 HMRC only answers lookups for registered applications, so live HMRC checks are in Pro, using your own HMRC Developer Hub credentials.

I use AovUp Tax Exemption. Will customers see two fields?

No. When AovUp Tax Exemption asks for a tax number at checkout, this plugin doesn’t add its own field there and doesn’t check numbers a second time.

Does it work with High-Performance Order Storage (HPOS)?

Yes. The number and the evidence are saved through WooCommerce’s order functions, so they work with HPOS and with the older order storage.

Is customer data sent anywhere?

Only the VAT number and its country, to VIES, and only when you switch VIES checks on. See “External services”.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AovUp EU & UK VAT Validation for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.2

  • Subscription renewals: a renewal whose number can’t be checked at that moment keeps its reverse charge only when the number was verified: a check found it valid within the last billing period plus a week. A number that was never verified, or whose last check found it not registered, is charged VAT, and the order note says why.
  • Every answer a renewal check gets is saved on the subscription, so the next renewal starts from it.
  • A renewal charged VAT only because its number couldn’t be checked is listed in a notice until you press “Done”, so you can check it by hand and refund the VAT if it is valid. The notice lists the oldest first, 20 at a time, “Done” clears only what it showed, and the list never drops a renewal on its own. Each change of the list reads it again from the database first, and takes a database lock where the database supports one (MySQL and MariaDB do; SQLite doesn’t), so renewals checked at the same time don’t write an older copy of it back. A renewal without its own record of a check uses its subscription’s record or checks its saved number again; one without any number pays VAT and is listed too.
  • Check limits: a customer counts as having a paid order only with a payment date and a total above zero (a cash-on-delivery order once it is completed), and the FAQ says what the /64 grouping of IPv6 addresses doesn’t stop.
  • Uninstalling: the data stays while another edition is installed, also from a renamed folder, and every site of a multisite network is cleaned up by its own setting.

1.0.1

  • Subscription renewals: a renewal whose number can’t be checked at that moment (VIES doesn’t answer or refuses the check, or VIES checks are switched off) keeps its reverse charge, as long as your other settings still allow it. Its order note and the WooCommerce log name the reason. Before, a switched-off check charged VAT and said the number no longer qualified.
  • A renewal that is charged VAT gets an order note that says exactly why: the number is no longer registered, the goods are delivered in your own country, the country isn’t in your list, and so on.
  • Renewal checks no longer count against the storefront check limits.
  • Check limits: IPv6 addresses count by their /64 network, and signed-in customers with a paid order have a store-wide count of their own.
  • Clearer messages when VIES doesn’t answer or refuses a check: they name the service and the country and say VAT is charged for now.
  • Uninstall also removes the plugin’s cached answers and check counters.

1.0.0

  • First release.