Overview

VATlayer provides a set of APIs for validating European Union (EU) VAT numbers and accessing current VAT rates across different member states. Established in 2013 and owned by APILayer GmbH, the service focuses on supporting businesses that operate internationally and require accurate VAT information for compliance, invoicing, and transaction processing. The core functionality includes real-time validation against official EU VIES (VAT Information Exchange System) data, ensuring that VAT numbers provided by customers or suppliers are legitimate and currently active.

For e-commerce platforms, VATlayer can be integrated into checkout flows to verify customer VAT IDs, which is essential for applying the correct tax treatment (e.g., zero-rating for B2B cross-border supplies within the EU). This helps prevent errors and potential penalties associated with incorrect VAT declarations. Financial software and ERP systems also utilize VATlayer to automate compliance checks for invoices and ledger entries, reducing manual data entry and the risk of human error. By providing up-to-date VAT rates, the API assists in calculating the correct tax amount for goods and services based on the country of supply or consumption, a critical factor for businesses engaged in cross-border trade.

The API is designed as a RESTful service, returning data in JSON format, which facilitates integration into a wide range of web and desktop applications. Developers can utilize client libraries (SDKs) available for languages such as PHP, Python, jQuery, Go, and Ruby to streamline the implementation process. The developer experience is further enhanced by comprehensive VATlayer API documentation that includes practical code examples. This focus on ease of integration aims to reduce the development time required to add VAT compliance features to existing or new applications.

VATlayer's utility extends to scenarios where businesses need to determine the applicable VAT rate for specific goods or services in different EU countries. This is particularly relevant for digital services, where VAT often depends on the customer's location. The API provides standard and reduced rates, helping businesses to correctly calculate prices and taxes before a transaction is finalized. Adherence to data privacy regulations like GDPR is also a stated feature, addressing concerns regarding the handling of sensitive tax-related information. The service is best suited for organizations that require automated and reliable access to VAT data to support their operational and compliance needs in the European market.

Key features

  • VAT Number Validation API: Verifies the authenticity and validity of VAT numbers issued by EU member states, checking against official VIES data. This helps confirm the legal standing of a business partner for VAT purposes.
  • VAT Rate Lookup API: Provides current standard and reduced VAT rates for all EU countries, enabling accurate tax calculations for various services and products.
  • Real-time Data Access: Offers immediate responses for VAT number validation and rate lookups, supporting live transaction processing and dynamic pricing adjustments.
  • JSON Output: Delivers API responses in JSON format, which is widely compatible with modern web applications and programming languages.
  • Multiple SDKs: Supports integration with client libraries for PHP, Python, jQuery, Go, and Ruby, simplifying development effort.
  • GDPR Compliance: Adheres to General Data Protection Regulation (GDPR) standards for data handling and privacy, which is important for processing personal and business data within the EU.

Pricing

VATlayer offers various subscription tiers based on the number of API requests. A free tier is available for initial evaluation, providing a limited number of requests per month. Paid plans scale up to accommodate higher usage volumes.

Plan Name Monthly Requests Monthly Price (as of 2026-05-28) Features
Free 100 $0 Basic VAT validation and rate lookup
Basic 2,500 $9.99 Full VAT validation, VAT rate lookup, HTTPS encryption
Professional 10,000 $29.99 All Basic features, higher request limit
Business 50,000 $79.99 All Professional features, dedicated support, priority processing
Enterprise Custom Custom Scalable requests, custom solutions, SLAs

For detailed and up-to-date pricing information, including annual discounts and specific feature breakdowns for each tier, refer to the official VATlayer pricing page.

Common integrations

VATlayer can be integrated into various systems and platforms that require VAT compliance and validation capabilities. Common integration points include:

  • E-commerce Platforms: Integrate into checkout processes to validate customer VAT numbers and apply correct tax rates for B2B transactions. Examples include custom integrations with Shopify, WooCommerce, or Magento.
  • CRM Systems: Use within CRM platforms like Salesforce to verify business customer VAT details at the point of lead conversion or account creation, ensuring accurate customer records for tax purposes.
  • ERP Systems: Integrate with enterprise resource planning software such as SAP or Oracle NetSuite to automate VAT checks on invoices, purchase orders, and financial transactions.
  • Invoicing Software: Embed into billing and invoicing applications to ensure automatically generated invoices include correct VAT numbers and applicable rates.
  • Financial Reporting Tools: Utilize for aggregating and validating VAT data for compliance reporting and audits.

Alternatives

When considering VATlayer for VAT validation and rate lookup, several alternative services offer similar functionalities:

  • apilayer VATSense: Another offering from apilayer, VATSense focuses on real-time VAT number validation and compliance checks.
  • Vatcomply: Provides VAT number validation, VAT rate lookup, and other tax compliance tools for businesses operating internationally.
  • TaxJar (now Stripe Tax): Offers automated sales tax calculation, reporting, and filing across various jurisdictions, including VAT for global transactions. More details on Stripe Tax capabilities are available.

Getting started

To begin using VATlayer, you typically need to sign up for an API key and then make HTTP requests to the API endpoints. The following Python example demonstrates how to validate a VAT number using the VATlayer API.

import requests

API_KEY = "YOUR_API_KEY" # Replace with your actual API key
VAT_NUMBER = "DE123456789" # Example German VAT number

def validate_vat_number(api_key, vat_number):
    url = f"http://api.vatlayer.com/validate?access_key={api_key}&vat_number={vat_number}"
    try:
        response = requests.get(url)
        response.raise_for_status()  # Raise an HTTPError for bad responses (4xx or 5xx)
        data = response.json()
        
        if data.get("valid"):
            print(f"VAT Number {vat_number} is valid.")
            print(f"Company Name: {data.get('company_name')}")
            print(f"Company Address: {data.get('company_address')}")
            print(f"Country Code: {data.get('country_code')}")
        else:
            print(f"VAT Number {vat_number} is invalid or not found.")
            if data.get("error"):
                print(f"Error details: {data['error'].get('info')}")
                
    except requests.exceptions.RequestException as e:
        print(f"An error occurred during the API request: {e}")
    except ValueError as e:
        print(f"Error decoding JSON response: {e}")

if __name__ == "__main__":
    validate_vat_number(API_KEY, VAT_NUMBER)

This Python script sends a GET request to the VATlayer validation endpoint, including your unique API key and the VAT number to be checked. The response, formatted in JSON, indicates whether the VAT number is valid and provides additional details such as the company name and address if available. Ensure you replace "YOUR_API_KEY" with your actual API access key obtained from the VATlayer dashboard after signing up. The API documentation provides further examples for various programming languages and details on handling different response scenarios, including error codes and data structures for both validation and rate lookup endpoints.