Svelte component for validating EU VAT numbers with EuroValidate API
git clone https://github.com/eurovalidate/svelte-vat-check.git.env.example to .env and add your API keysee docs below
Svelte component for validating EU VAT numbers with EuroValidate API. 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 |
pip install eurovalidate)npm install @eurovalidate/sdk)composer require eurovalidate/sdk)MIT