Validate VAT numbers on incoming invoices before processing payment
- Get a free API key at eurovalidate.com
- Clone this repo:
git clone https://github.com/eurovalidate/invoice-vat-validator.git - Copy
.env.exampleto.envand add your API key - Install dependencies and run (see below)
pip install -r requirements.txt && python main.pyValidate VAT numbers on incoming invoices before processing payment. Uses the EuroValidate API for real-time validation against official EU government sources (VIES, HMRC, GLEIF).
{
"vat_number": "NL820646660B01",
"country_code": "NL",
"status": "valid",
"company_name": "ABN AMRO BANK N.V.",
"meta": {
"confidence": "high",
"source": "vies_cached",
"cached": true,
"response_time_ms": 2
}
}| VAT | Country | Expected |
|---|---|---|
| NL820646660B01 | Netherlands | Valid |
| FR40303265045 | France | Valid |
| IT00159560366 | Italy | Valid |
| DE000000000 | Germany | Invalid |
- EuroValidate API Docs
- Get Free API Key (no credit card)
- Python SDK (
pip install eurovalidate) - Node.js SDK (
npm install @eurovalidate/sdk) - PHP SDK (
composer require eurovalidate/sdk)
MIT