Using VIES VAT Validator¶
What the customer sees¶
Getting to the page¶
The customer's account page (/account) gets an extra box at the bottom titled EU VAT ID with a Manage button. The button opens the VAT ID page at /account/vat. The extension adds no entry to the account navigation.
The page is available to every logged-in user. Guests are redirected to the login. A customer always works on their own record.
Entering a VAT ID¶
- The customer types the VAT ID into EU VAT ID. The country prefix is required. Spaces, dots, dashes and lower-case letters are fine:
de 811.907-980is stored asDE811907980. - The customer clicks Save and validate.
- The extension checks the shape and the country code, asks VIES, stores the result and shows a notification.
Below the field, a status box shows what is stored:
| Line | Shown when |
|---|---|
| Status: Validated or Not validated | Always |
| Company | VIES returned a name |
| Address | VIES returned an address |
| Country | Always (the two-letter prefix) |
| Last checked | A check has produced a result |
| Reverse charge: Eligible | The VAT ID is valid |
| An error message | The last attempt left one, see below |

Possible results¶
| Situation | Notification | What is stored |
|---|---|---|
| VIES confirms the number | "VAT ID successfully validated." | Valid, company name and address from VIES, reverse charge eligible, time of the check |
| VIES says the number is not valid | "The entered VAT ID could not be validated." | Not valid, no company data, time of the check |
| The input is not two letters followed by 2 to 12 letters or digits | "The VAT ID does not look like a valid EU VAT ID." | Not valid, no company data. No lookup is made. |
| The country code is not supported | "This country is not part of the EU VAT service." | Not valid, no company data. No lookup is made. |
| VIES is unreachable, times out, answers with an HTTP error or an unexpected body, or reports a member state as unavailable | "The EU VAT service is currently unavailable. Please try again later." | Only the entered number and the error message. Validity, company data and the time of the last check stay as they were. |
| The field is saved empty | "VAT ID saved." | The record is emptied |
| The input is longer than 32 characters | A validation error under the field | Nothing |
Company name and address are whatever VIES returns. Some member states do not disclose them; then the lines are missing.
Outages and a previously validated VAT ID¶
When a customer with a validated VAT ID saves the same number again while VIES is unavailable, the record stays Validated. The notification reads "VAT ID successfully validated." and the status box additionally shows the "currently unavailable" message.
Warning
During an outage the entered number is stored even though it could not be checked. If the customer changes a validated VAT ID to a different number while VIES is unavailable, the record shows the new number together with the validity, company data and check time of the old one. The error message is stored with it, and the Last validated time does not change. Use Revalidate on such a record once VIES is reachable again.
Removing a VAT ID¶
Once a VAT ID is stored, a Remove button appears next to Save and validate. It empties the record (number, validity, company data, check time and error) and shows "VAT ID removed." The emptied row stays in the admin list.
What the admin sees¶
Open VAT Validations in the Extensions navigation group. The list has one row per customer who has saved the form at least once, newest check first.
| Column | Content |
|---|---|
| Customer | The customer's e-mail address. Searchable. |
| VAT ID | The normalised number. Searchable. |
| Country | The two-letter prefix |
| Valid | Check or cross icon |
| Company | Name returned by VIES |
| Reverse charge | Eligible or No |
| Last validated | Time of the last check that produced a result, or "never". Sortable. |
The last error message is not shown in the list.
Revalidate¶
Each row with a VAT ID has a Revalidate action.
- Click Revalidate.
- Confirm the dialog Revalidate VAT ID.
The extension repeats the check for the stored number and updates the row, including company name and address if VIES now returns different data. The rules are the same as for the customer: if VIES is unavailable, the row keeps its previous values. The action shows no result message, so compare Last validated before and after to see whether the check went through.
Records cannot be created, changed or deleted in the admin area. A VAT ID is always entered by the customer.
Automatic behaviour¶
There is none. The extension registers no scheduled task, listens to no events and sends no e-mails. A VAT ID is checked only when the customer clicks Save and validate or an admin clicks Revalidate.
Using the stored result¶
The extension does not apply the result to anything in Paymenter. Taxes on orders and invoices are calculated by Paymenter as before, whether a customer has a valid VAT ID or not. If you want to act on it, read the admin list or the ext_vies_vat table (model Paymenter\Extensions\Others\ViesVatValidator\Models\VatValidation). The fields are described in Configuration.