# EU VIES VAT Number Batch Validator & Reverse-Charge Check (`itulo/eu-vies-vat-validator`) Actor

Validate EU & Northern Ireland (XI) VAT numbers in batch via the official European Commission VIES API, with B2B reverse-charge flags, Member State status and GDPR sole-trader redaction. New: official EU VAT rates by country, CN/CPA code or category (TEDB).

- **URL**: https://apify.com/itulo/eu-vies-vat-validator.md
- **Developed by:** [Italo Armenti](https://apify.com/itulo) (community)
- **Categories:** Business, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 eu vies vat validation or status records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## EU VIES VAT Number Batch Validator & Reverse-Charge Check (`itulo/eu-vies-vat-validator`)

Batch-validate **European Union (EU-27) and Northern Ireland (`XI`) VAT numbers** against the official **European Commission VIES (VAT Information Exchange System) REST API** (`ec.europa.eu/taxation_customs/vies/rest-api`), with cross-border B2B reverse-charge flags, national VAT gateway health status, and **automatic GDPR sole-trader personal data redaction**.

Ships as both a **Pay-Per-Event Apify Actor** (`itulo/eu-vies-vat-validator`) and an open-source **stdio MCP Server** (`src/mcp-server.js`).

> **Independent Tool Notice:** Not affiliated with or endorsed by the European Commission or national tax administrations; uses no EU or VIES logos.

***

### Key Features for B2B Invoicing, ERP Onboarding & Tax Automation

- **Batch EU & XI VAT Validation (`validate_batch`):** Accepts VAT numbers in any format (`FI01120389`, `FI 0112038-9`, `DE123456789`, `SE556012579001`, `XI...`), normalizes country prefixes (including Greece `EL`/`GR`), and validates against the live European Commission VIES REST endpoint.
- **Automatic GDPR Sole-Trader Redaction:** Detects corporate legal forms (`Oy`, `Abp`, `AB`, `AS`, `GmbH`, `AG`, `B.V.`, `N.V.`, `S.A.`, `SAS`, `SARL`, `S.r.l.`, `S.L.`, `Sp. z o.o.`, `Ltd`, `PLC`, etc.) and redacts natural-person names, home addresses, and `c/o` lines when a VAT number belongs to an individual sole proprietor.
- **Cross-Border B2B Reverse-Charge Helper:** Pass `supplierCountryCode` (e.g. `"FI"`) to compute `isCrossBorderEuB2B` and `reverseChargeCandidate` on every validated customer.
- **Member State Gateway Uptime Check (`check_status`):** Check which of the 28 national EU/XI VAT databases are currently `Available` vs. undergoing maintenance.

***

### Pay-Per-Event Pricing (`PAY_PER_EVENT`)

| Event Name | Price (USD) | Description |
|---|---|---|
| `apify-actor-start` | **$0.00005 / run** (Apify's built-in start event; one event per GB of memory, minimum one) | Charged automatically by the Apify platform when the run starts |
| `vat-check` | **$0.0025 / check** ($2.50 / 1,000) | Each EU/XI VAT number validated against VIES or Member State status row written to the dataset (primary event) |
| `vat-rate-query` | **$0.001 / country record** | `vat_rates` mode: each Member State VAT-rate record (headline rates or CN/CPA/category lookup) written to the dataset |

***

### EU VAT Rates Mode (`mode: "vat_rates"`)

Official VAT rates per EU Member State from the European Commission **Taxes in Europe Database (TEDB)** SOAP web service:

- No codes: one `eu_vat_rates` record per country — standard rate (and since when), reduced, super-reduced and parking rates, exemptions, regional standard rates, categories with reduced rates.
- With `cnCodes` (goods, e.g. `4901` books), `cpaCodes` (services) or `vatRateCategories`: one `eu_vat_rate_lookup` record per country with the matching TEDB rate rows, or `appliesStandardRate: true` when no specific entry exists.
- `vatRateCountries` (empty = all 27; GR→EL, XI accepted), `vatRateDate` (YYYY-MM-DD, default today).

```json
{ "mode": "vat_rates", "vatRateCountries": ["FI", "DE", "FR"], "cnCodes": ["4901"] }
```

TEDB data © European Union, reused under **CC BY 4.0** (Commission Decision 2011/833/EU); TEDB is information supplied by Member States and is not legally binding — check national legislation. Every record carries this attribution.

### Data Licence & Attribution Compliance

- **Licence:** Reused under **European Commission Decision 2011/833/EU** and the official VIES Specific Disclaimer ([ec.europa.eu/taxation_customs/vies](https://ec.europa.eu/taxation_customs/vies/)).
- **Mandatory Attribution on Every Record:** `Source: European Commission, VIES (VAT Information Exchange System, ec.europa.eu/taxation_customs/vies), retrieved from national EU Member State VAT databases. Reused under Commission Decision 2011/833/EU. Company-level data only; sole-trader personal names/addresses redacted.`

***

### Connect to Claude Desktop, Cursor & MCP Clients (Model Context Protocol)

You can use **`itulo/eu-vies-vat-validator`** as a live tool inside **Claude Desktop**, **Cursor**, **Windsurf**, or any MCP-compatible AI agent in two ways:

#### Option A: Hosted Apify MCP Server (`@apify/actors-mcp-server`)

Zero local setup required. Add this to your `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`, Windows: `%APPDATA%\Claude\claude_desktop_config.json`) or Cursor `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "eu-vies-vat": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "itulo/eu-vies-vat-validator"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### Option B: Local Stdio MCP Server (Open-Source CLI)

Run the bundled stdio MCP server (`src/mcp-server.js`) directly on your machine. Exposed MCP tools: `vies_validate_vat_batch`, `vies_member_state_status`, `vies_licence_info`.

```json
{
  "mcpServers": {
    "eu-vies-vat-local": {
      "command": "node",
      "args": [
        "/absolute/path/to/tools/eu-vies-vat-validator/src/mcp-server.js"
      ]
    }
  }
}
```

***

### n8n, Make.com & REST API Integration (One-Call Sync JSON)

Trigger **`itulo/eu-vies-vat-validator`** synchronously and get the normalized JSON dataset items back in a single HTTP request — ideal for **n8n `HTTP Request` nodes**, **Make.com**, **Zapier**, or cron webhooks:

- **Method:** `POST`
- **Endpoint:** `https://api.apify.com/v2/acts/itulo~eu-vies-vat-validator/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN`
- **Headers:** `Content-Type: application/json`

#### cURL Example

```bash
curl -s -X POST \
  "https://api.apify.com/v2/acts/itulo~eu-vies-vat-validator/run-sync-get-dataset-items?token=${APIFY_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"mode":"validate_batch","vatNumbers":["FI01120389","FI10728943"],"supplierCountryCode":"FI","includeMemberStateStatus":false}'
```

***

### LangChain, CrewAI, Node.js & Python SDK Snippets

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('itulo/eu-vies-vat-validator').call({
  "mode": "validate_batch",
  "vatNumbers": [
    "FI01120389",
    "FI10728943"
  ],
  "supplierCountryCode": "FI",
  "includeMemberStateStatus": false
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client` / LangChain `ApifyWrapper` / CrewAI)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("itulo/eu-vies-vat-validator").call(run_input={
  "mode": "validate_batch",
  "vatNumbers": [
    "FI01120389",
    "FI10728943"
  ],
  "supplierCountryCode": "FI",
  "includeMemberStateStatus": false
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
for row in items:
    print(row)
```

#### LangChain Python Tool

```python
from langchain_community.utilities import ApifyWrapper

apify = ApifyWrapper()
loader = apify.call_actor(
    actor_id="itulo/eu-vies-vat-validator",
    run_input={
  "mode": "validate_batch",
  "vatNumbers": [
    "FI01120389",
    "FI10728943"
  ],
  "supplierCountryCode": "FI",
  "includeMemberStateStatus": false
},
    dataset_mapping_function=lambda item: str(item),
)
docs = loader.load()
```

***

### Frequently Asked Questions (FAQ)

#### Why does this EU VIES VAT Validator redact sole-trader (toiminimi) names and addresses?

Several national EU VAT databases (including Finland, Poland, and Ireland) return a natural person’s full name and home address when a VAT number belongs to a sole proprietor (`toiminimi` / `Einzelunternehmen`). To keep your ERP, Stripe/invoicing workflow, and AI agents strictly company-level and GDPR-compliant, this tool verifies corporate legal form markers (`Oy`, `Ab`, `GmbH`, `Ltd`, `B.V.`, `S.A.`, `S.r.l.`, `Sp. z o.o.`, etc.) and automatically redacts sole-trader personal names, street addresses, and `c/o` lines.

#### How does the cross-border EU B2B reverse-charge flag (`reverseChargeCandidate`) work?

When you provide `supplierCountryCode` (e.g. `"FI"`), any validated customer VAT number that is active (`valid: true`) in a different EU Member State (e.g. `"DE"`, `"SE"`, `"NL"`) is automatically flagged with `isCrossBorderEuB2B: true` and `reverseChargeCandidate: true` for VAT Art. 196 reverse-charge invoicing workflows.

#### Does it support official VIES consultation numbers (`requestIdentifier`) for tax audits?

Yes. Pass `requesterMemberStateCode` and `requesterNumber` (your own EU VAT number) to receive the official national tax authority `requestIdentifier` token on every validation record.

**Related Search Keywords:** VIES VAT Validation API · EU VAT Number Batch Check API · European Commission VIES REST API · B2B Intra-EU Reverse Charge VAT Check · GDPR Compliant VIES VAT Lookup · EU VIES VAT MCP Server

# Actor input Schema

## `mode` (type: `string`):

validate_batch validates a list of EU/XI VAT numbers; member_state_status checks availability of all 28 national VAT databases; vat_rates returns VAT rates per Member State from the European Commission TEDB (standard, reduced, super-reduced, parking; optionally for CN/CPA codes or categories).

## `vatNumbers` (type: `array`):

List of EU/XI VAT numbers with country prefix (e.g. 'FI01120389', 'FI10728943', 'DE123456789'). Spaces, dots, and hyphens are stripped automatically.

## `supplierCountryCode` (type: `string`):

Two-letter EU country code of the seller/supplier (e.g. 'FI', 'DE') to flag cross-border B2B reverse-charge candidates.

## `requesterMemberStateCode` (type: `string`):

Optional requester EU Member State code if requesting an official VIES consultation reference identifier.

## `requesterNumber` (type: `string`):

Optional requester VAT number (without country prefix) to obtain a VIES consultation requestIdentifier.

## `includeMemberStateStatus` (type: `boolean`):

When true in validate_batch mode, also writes the 28 Member State VIES availability rows.

## `vatRateCountries` (type: `array`):

vat_rates mode: EU Member State codes (GR accepted as EL; XI = Northern Ireland). Empty = all 27.

## `vatRateDate` (type: `string`):

vat_rates mode: date the rates should apply on. Default today.

## `cnCodes` (type: `array`):

vat_rates mode: optional Combined Nomenclature goods codes (e.g. 4901 books) to get the rate that applies to them.

## `cpaCodes` (type: `array`):

vat_rates mode: optional CPA service codes (e.g. 55.10).

## `vatRateCategories` (type: `array`):

vat_rates mode: optional TEDB category identifiers (e.g. FOODSTUFFS, BOOKS).

## Actor input object example

```json
{
  "mode": "validate_batch",
  "vatNumbers": [
    "FI01120389",
    "FI10728943"
  ],
  "supplierCountryCode": "FI",
  "requesterMemberStateCode": "",
  "requesterNumber": "",
  "includeMemberStateStatus": false
}
```

# Actor output Schema

## `results` (type: `string`):

Validated EU VAT records with corporate name/address and mandatory EC VIES attribution.

## `summary` (type: `string`):

Summary counts and mandatory EC VIES attribution.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("itulo/eu-vies-vat-validator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("itulo/eu-vies-vat-validator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call itulo/eu-vies-vat-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,itulo/eu-vies-vat-validator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Us9OpbdIXEyQnvN0z/builds/0hkYggUoWifMkSpDi/openapi.json
