Skip to content

VIES VAT Validator FAQ

Questions

Does a valid VAT ID remove VAT from the customer's invoices?

No. The extension stores the result and a reverse-charge flag, and shows both. It does not change Paymenter's tax calculation, prices or invoices.

Is the VAT ID asked for at registration or checkout?

No. The customer enters it on the page /account/vat, reached through the EU VAT ID box on the account page.

Can I enter or correct a VAT ID for a customer?

Not in the admin area. The VAT Validations list only offers Revalidate for the number the customer stored.

Are stored VAT IDs rechecked automatically?

No. A check runs only when the customer clicks Save and validate or you click Revalidate.

Which countries are supported?

The 27 EU member states and Northern Ireland (XI). The codes are listed in Configuration. Greece must be entered as EL.

Does the customer have to type the country prefix?

Yes. The number must start with the two-letter country code. Spaces, dots and dashes are removed and lower-case letters are accepted.

Can a customer store more than one VAT ID?

No. There is one record per customer. Saving a new number replaces the old one.

What is sent to the European Commission?

The country code and the national part of the VAT ID, in an HTTPS GET request from your server. No other customer data is part of the request.

What happens to the data when a customer is deleted?

The customer's row in ext_vies_vat is deleted with the user.

Are there settings?

No. See Configuration.

Troubleshooting

The extension does not appear in the list of installable extensions

Check that the folder is extensions/Others/ViesVatValidator, then run in the Paymenter root directory:

composer dump-autoload
php artisan optimize:clear

VAT Validations is missing from the admin navigation

The extension must be installed and enabled. Open its settings page and check Enabled.

/account/vat returns a 404

The route only exists while the extension is enabled. Enable it and run php artisan optimize:clear.

Every check ends with "The EU VAT service is currently unavailable. Please try again later."

The server cannot get a usable answer from VIES. Test the connection from the Paymenter server:

curl -s "https://ec.europa.eu/taxation_customs/vies/rest-api/ms/DE/vat/811907980"

The answer must be JSON with a boolean isValid field. If the request fails, check firewall rules, DNS and outbound HTTPS for containers. If it works, VIES or the tax authority of the customer's country may be down for a while; try again later. Connection errors are written to Paymenter's log.

A Greek VAT ID is rejected with "This country is not part of the EU VAT service."

The customer entered it with GR. VIES uses EL for Greece, and the extension only accepts EL.

"The VAT ID does not look like a valid EU VAT ID."

After removing spaces and punctuation, the input must be two letters followed by 2 to 12 letters or digits. The most common cause is a missing country prefix.

A customer says the VAT ID is valid, but it is stored as not valid

The extension stores what VIES answers. A number can exist and still not be registered for cross-border trade in VIES. Check it in the official VIES web form.

A record shows a VAT ID as valid with the company data of a different number

The customer changed the number while VIES was unavailable. The new number was stored, the old result was kept. Click Revalidate on the row. See Outages and a previously validated VAT ID.

Revalidate seems to do nothing

The action shows no message. If Last validated did not change, VIES was unavailable and the previous values were kept. Try again later.

"Base table or view not found: ext_vies_vat"

The migration did not run. Disable and re-enable the extension, or run in the Paymenter root directory:

php artisan migrate --path=extensions/Others/ViesVatValidator/database/migrations --force