VAT API
Validate VAT numbers.
This endpoint allows you to validate a company’s VAT number. It returns the company’s data if the VAT number is valid
Description
The VatAPI.validate()
method is used to communicate with this endpoint as seen below:
VatAPI.validate(vat_number)
Query Parameters
The VAT number you want to validate
Usage
Below is a code snippet to query the VatAPI.validate()
method:
Below is the response object:
Response Fields
The VAT number to validate
A boolean value to check if the VAT number is valid. True if VAT number is valid.
The company associated with the VAT number
The company’s address.
The country where the company is located
The two letter ISO 3166-1 alpha-2 code of the country associated with the VAT number.
Error response
If you entered an invalid VAT number in the query, you will get an error message as seen below: