Validate EU VAT ID (VIES)

Validates an EU VAT ID against the official European Commission VIES service and returns the registered company name and address where the country discloses them. Provide your own VAT ID to receive an official consultation number as proof of the check for your tax administration. An invalid VAT ID is returned as a result with an explanation, not as an error.

Validate EU VAT ID (VIES)
EU VAT ID to validate, including the country prefix, e.g. DE1292733…
Show advanced options
Optional: your own company's VAT ID. VIES then registers the check …
Appearance of this action in the Power Automate designer (rendered from the connector definition).

What this action is for

Check the VAT ID of a supplier or customer in the EU, for example before you book an invoice or issue a reverse-charge invoice. The action first checks format and check digits, then asks VIES, the official service of the European Commission. VIES forwards the question to the tax registry of the country of the VAT ID.

Try it with the VAT ID of the sample invoice

Our sample invoice has the VAT ID DE129273398 in the footer.

Add the action

Create an instant cloud flow with the trigger Manually trigger a flow and add a Text input; here it is called VAT ID. Below the trigger choose + and Add an action, search for Validate and select Validate EU VAT ID (VIES).

Add an action: search for Validate

The picture was taken in our test environment. In your flow, the action is part of the connector BILL Converter by Power2Apps.

Choose the VAT ID

Put the text input into VAT ID, including the country prefix. Spaces are ignored. Under Advanced parameters you can add Your Company VAT ID: then VIES registers the check officially and returns a Consultation Number that you can keep as proof for your tax office.

Parameters: VAT ID with the text input of the trigger

Run the flow

Save the flow, choose Test, then Manually. Enter the VAT ID and start the flow with Run flow. Our test flow checks the IBAN with Validate IBAN in the same run.

Run flow with the IBAN and the VAT ID of the sample invoice

The result

If VIES confirms the VAT ID, Is Valid is true. Germany and Spain do not disclose the company name and address through VIES: for DE129273398, Company Name and Company Address stay empty and Notes says This country does not disclose company name and address via VIES (for example Germany and Spain) - the VAT ID itself was confirmed as valid.

When VIES cannot answer

Sometimes the registry of a country is not available, the German one for example regularly at night. Then the action does not fail but returns:

Our picture shows exactly this case, taken late in the evening:

Outputs: Is Valid false, Is Format Valid true and the Validation Message about the unavailable service

So Is Valid = false does not always mean that the VAT ID is wrong. In your flow, check Validation Message: if the service was unavailable, run the check again later, for example with a Delay or in a scheduled flow.

Parameters

PropertyNameTypeDescription
vatIdVAT ID requiredstringEU VAT ID to validate, including the country prefix, e.g. DE129273398 (spaces are ignored)
minLength: 1
requesterVatIdYour Company VAT ID advancedstringOptional: your own company's VAT ID. VIES then registers the check officially and returns a consultation number - store it together with the request date as proof for your tax office (for example for zero-rated EU B2B invoices).

Returns

PropertyNameTypeDescription
isValidIs Valid booleanWhether the VAT ID is confirmed as registered and active by the official EU VIES service
isFormatValidIs Format Valid booleanWhether the structure and check digits of the VAT ID are valid for the country (offline check)
validationMessageValidation Message stringExplains why the VAT ID is not valid or could not be verified; empty for valid VAT IDs
compactVatIdCompact VAT ID stringNormalized VAT ID without spaces, e.g. DE129273398
countryCodeCountry Code stringCountry prefix of the VAT ID (e.g. DE; EL stands for Greece, XI for Northern Ireland)
countryNameCountry Name stringCountry of the VAT ID (English name, e.g. Germany)
companyNameCompany Name stringRegistered company name; some countries (e.g. Germany and Spain) do not disclose it
companyAddressCompany Address stringRegistered company address; some countries (e.g. Germany and Spain) do not disclose it
consultationNumberConsultation Number stringOfficial VIES consultation number proving the check towards your tax office; issued when 'Your Company VAT ID' is provided. Store it - a past check cannot be retrieved from VIES later
requestDateRequest Date stringTimestamp of the VIES check - keep it together with the consultation number as proof
notesNotes array of stringNotes about the result, for example when a country does not disclose company details
vatNumberVAT Number advancedstringNational part of the VAT ID without the country prefix

Example request

{
  "vatId": "…"
}

Example generated from the connector definition.