VatZen provides various tools to help you build VAT-compliant business. We provide tools to obtain VAT rates by country, properly geolocate you customers, validate business VAT numbers, and more. To see all the services, please check our website.
Our API is built in accordance with REST principles. All API results are delivered in JSON format through HTTP methods (endpoints mostly support GET and POST operations). The JSON format ensures maximum compatibility with industry-standard web application frameworks and programming languages.
VatZen also providers libraries for different programming languages and framework, including NodeJS, Ruby and Python. See documentation below.
Current API version is
v1and you can access the API via this endpoint:
Every user has a uniq API key, which is assigned during the registration process and always available from the VatZen Dashboard. You can also reset you API key at any time if you feel it could have been compromised.
Each API route is protected via api key, so it's required for you to provide it with every request.
Every endpoint returns the response in JSON format which can be easily read by your application.
Every successful response has HTTP status code
200and also has
success: truefield inside. Is the response code is not 200 and
success: false, it means you got an error. Read more about our API errors below.
Here's the simple response from the
If you request fails for some reason, VatZen API will return non-200 HTTP code as well as JSON response which will contain details about the error occurred. Below you can see an example of the error returned:
"message": "You did not provide proper API key, please check documentation"
A list of available endpoints (more coming soon!):
/ratesto get all actual VAT rates, supports pagination.
/rateto get the rate for the specific country based on different inputs, such as country code, ip address, etc.
/validateto validate a VAT number.
/customerLocationto get a customer location and VAT rate.
/pricefor VAT price calculation.
/businessInfofor obtaining business information.
/invoicefor generating VAT compliant invoices