Quickstart Guide
The VATlayer API is extremely easy to use. It only takes a few lines of code to make your first validation request. All registered users, whether on a free or paid plan, can use our Quickstart Guide to explore the full range of API functionalities with just one click.
- Existing users: Access the Quickstart Guide below.
- New users: Create an account and get started in minutes.
Step 1: Get Your API Access Key
Sign up for a free VATlayer account at vatlayer.com and obtain your personal API Access Key.
Get free API Access Key
This key authenticates your requests and ensures that you have access to the API features provided by your subscription plan.
2. Basic API Request Structure
All endpoints share a base URL of the form:
3. Example Endpoints
Validate a VAT number
Example response:
Get VAT rate for a single country by country code
Example response:
Get VAT rates for all EU member states
Calculate VAT-compliant price
Example response:
4. Optional Parameters / Features
- Use
typeparameter on the price endpoint to calculate with a reduced VAT rate (for specific product types). - Use
incl=1if your amount already includes VAT and you want the API to perform a reverse calculation. - JSONP support: append
callback=CALLBACK_FUNCTIONto the call if you need JSONP. - Use
format=1to pretty-print the JSON response (useful for debugging).