VAT Number Validation & EU rates API

VAT Number Validation & EU rates API

Simplify compliance with our VAT Number Validation API – seamless verification for accurate business transactions

Overview

AnyAPI’s VAT Validation API is a fast, lightweight, modern, and RESTful JSON API that allows you to stay compliant for all your domestic and cross-border sales.

Supported Countries

  • EU Countries: Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden and Northern Ireland
  • Non-EU Countries: United Kingdom (GB), Switzerland (CH, CHE), Norway (NO)

Features

  • VAT number and format validation: VAT validation API can validate the format and structure of a VAT number to ensure it is valid.
  • Real-time Company name and address validation: The API can retrieve and validate the company name and address associated with a VAT number.
  • Country code results: The API provides the country name and ISO country codes (short, long, and numeric) for the VAT number.
  • High availability and ultra-low latency for the best user experience: VAT number check API is designed to provide a seamless user experience with high availability and ultra-low latency.

Getting Started

To access the VAT Validation API , you need to obtain an API key from AnyAPI.io. The API key is used for authentication and should be included in the request URL as a query parameter.

Let’s Try Sign In.

Supported Countries List

Below is the list of countries supported by the VAT validation endpoints:

CountryCountry Code
AustriaAT
BelgiumBE
BulgariaBG
CroatiaHR
CyprusCY
Czech RepublicCZ
DenmarkDK
EstoniaEE
FinlandFI
FranceFR
GermanyDE
GreeceGR
HungaryHU
IrelandIE
ItalyIT
LatviaLV
LithuaniaLT
LuxembourgLU
MaltaMT
NetherlandsNL
PolandPL
PortugalPT
RomaniaRO
SlovakiaSK
SloveniaSI
SpainES
SwedenSE
Northern IrelandGB-NIR
United KingdomGB
SwitzerlandCH
NorwayNO

VAT number validation endpoint

Send a GET request to the following URL to VAT number validation

curl --request GET \
  --url 'https://anyapi.io/api/v1/vat/validate?vat_number=NL853746333B01&apiKey=YOUR_API_KEY'
{
  "valid": true,
  "validFormat": true,
  "vatNumber": "NL853746333B01",
  "country": {
    "name": "Netherlands",
    "isoCode": {
      "short": "NL",
      "long": "NLD",
      "numeric": "528"
    }
  },
  "company": {
    "name": "NETFLIX INTERNATIONAL B.V.",
    "address": ", KARPERSTRAAT 00010, 1075KZ AMSTERDAM, "
  }
}

Request parameters

Use the parameters listed below to customize your request. Mandatory parameters are indicated

vat_numberstringRequired
VAT Number
apiKeystringRequired
Your unique API key, which is required to authenticate your requests.

Response parameters

The API returns its response in a simple, lightweight JSON format.

validboolean
Is true if the submitted VAT number is valid.
validFormatboolean
Is true if the submitted VAT number format is valid.
vatNumberstring
The VAT number to validate.
countryobject
The name and iso code of the country associated with the VAT number.
companyobject
The name and address of the company associated with the VAT number.

Response and error codes

Whenever you make a request that fails for some reason, an error is returned also in the JSON format. The errors include an error code and description, which you can find in detail below.

Status CodeTypeDetails
200OKThe request was successful.
400Bad RequestThe request was invalid or cannot be otherwise served.
401UnauthorizedAuthentication credentials were missing or incorrect.
422Quota reachedThe request cannot be served due to the application's rate limit having been exhausted for the resource.
404Not FoundThe requested resource could not be found.
429Too Many RequestsThe request cannot be served due to the application's rate limit having been exhausted for the resource.
500Internal Server ErrorSomething went wrong on the server.
503Service UnavailableThe service is temporarily unavailable.