Configuring VAT ID Validation

To configure VAT ID validation, you must first set up the customer groups that are needed, and create the related tax classes, rates, and rules. Then, enable VAT ID validation for the store, and complete the configuration.

The following examples show how tax classes and rates are used for VAT ID Validation. Take a look at the examples, and then follow the instructions to set up the tax classes and rules that are needed for your store.

Example: Minimal Tax Rules Required for VAT ID Validation

Tax Rule #1  
Customer Tax Class Customer tax classes must include:
A class for domestic customers.
A class for customers with invalid VAT ID A class for customers, for whom VAT ID validation failed
Product Tax Class Product tax classes must include a class for products of all types, except bundle and virtual.
Tax Rate The tax rate must include the VAT rate of the merchant’s country.
Tax Rule #2  
Customer Tax Class A class for intra-union customers.
Product Tax Class A class for products of all types, except virtual.
Tax Rate VAT rates for all EU countries, except merchant’s country. Currently this rate is 0%.
Tax Rule #3 (Required for virtual and Downloadable products)
Customer Tax Class Customer tax classes must include:
A class for domestic customers
A class for customers with invalid VAT ID A class for customers, for whom VAT ID validation failed
Product Tax Class A class for virtual products.
Tax Rate VAT rate of the merchant’s country.
Tax Rule #4 (Required for virtual and Downloadable products)
Customer Tax Class A class for intra-union customers.
Product Tax Class A class for virtual products.
Tax Rate VAT rates for all EU countries, except merchant’s country. Currently this rate is 0%.

VAT ID Validation automatically assigns one of the four default customer groups to customers according to VAT ID validation results:

  • Domestic
  • Intra-EU
  • Invalid VAT ID
  • Validation error

You can create new customer groups for VAT ID Validation or use existing groups, if they comply with your business logic. When configuring VAT ID Validation, you must assign each of the created customer groups as a default for customers with appropriate VAT ID validation results.

Each tax rule is defined be three entities:

  • Customer Tax Classes
  • Product Tax Classes
  • Tax Rates

Create the tax rules that you need to use VAT ID Validation effectively.

Step 3: Enable and Configure VAT ID Validation

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. If necessary, set the Store View for the configuration.

  3. In the panel on the left under Customers, choose Customer Configuration.

  4. Expand the Create New Account Options section.

  5. In the following screenshot, the general customer settings that are not related to VAT Validation are grayed out.

    Create New Account Options

  6. Set Enable Automatic Assignment to Customer Group to Yes. Then complete the following fields as needed.

    • Default Group
    • Default Value for Disable Automatic Group Changes Based on VAT ID
    • Show VAT Number on Storefront
  7. When complete, click Save Config.

Step 4: Set Your VAT ID and Location Country

  1. In the Configuration panel on the left under General, choose General.

  2. Expand the Store Information section. Then, do the following:

    Store Information

    • Select your Country.

    • Enter your VAT Number. Then, click Validate VAT Number. The result appears immediately.

  3. When complete, click Save Config.

Step 5: Verify the List of EU Member Countries

  1. Continuing in the General configuration section, expand the Countries Options section.

  2. In the European Union Countries list, verify that each member country of the EU is selected.

  3. To change the default setting, clear the Use system values checkbox. Then, hold down the Ctrl key, and click each country that you want to add, or remove.

  4. When complete, click Save Config.

    Countries Options