Custom Connector

Vatlayer Connector

EU

The Vatlayer Connector provides access to VAT number validation, EU VAT rates retrieval, and price calculations for EU member states. It acts as a proxy supporting VAT number validation, single-country VAT rates, all EU VAT rates, VAT-compliant price calculations, and reduced VAT rate types.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the Vatlayer Connector.

  • validateVatNumber. Validates a VAT number and retrieves associated company information.
  • getVatRate. Retrieves VAT rates for a specified EU member state.
  • getAllVatRates. Retrieves VAT rates for all 28 EU member states.
  • calculateVatPrice. Calculates a VAT-compliant price based on a provided amount and country.
  • getVatTypes. Retrieves a list of available reduced VAT rate types.
Documentation

Detailed Integration Documentation

VAT Number Validation

ActionvalidateVatNumber
PurposeValidates a provided VAT number and returns company information (name and address) for financial or compliance purposes.
ParametersRequired:
access_key, vat_number (e.g. LU26375245). Optional:
format (1 for JSON), callback (JSONP).
ConfigurationConfigure the connector with the Vatlayer base URL and API key.
OutputSuccessful: JSON with valid, database, format_valid, query, country_code, vat_number, company_name, company_address. Failure: error object (e.g. invalid_access_key).
Workflow exampleExecute validateVatNumber with access_key and vat_number, then use the company details for compliance checks or customer validation.

Single Country VAT Rates Retrieval

ActiongetVatRate
PurposeRetrieves VAT rates for a specified EU member state, including standard and reduced rates, by country code or IP.
ParametersRequired:
access_key, country_code (e.g. DE). Optional:
ip_address, use_client_ip (1), format, callback.
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON with success, country_code, country_name, standard_rate, reduced_rates. Failure: error object (invalid_access_key).
Workflow exampleExecute getVatRate with country_code=DE, then use standard/reduced rates for pricing or tax calculations.

All EU VAT Rates Retrieval

ActiongetAllVatRates
PurposeRetrieves VAT rates for all 28 EU member states — a comprehensive dataset for multi-country tax calculations.
ParametersRequired:
access_key. Optional:
format, callback.
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON with success and a rates array (country_code, country_name, standard_rate, reduced_rates). Failure: error object (invalid_access_key).
Workflow exampleExecute getAllVatRates, then use the data for cross-country tax analysis or e-commerce.

VAT Compliant Price Calculation

ActioncalculateVatPrice
PurposeCalculates a VAT-compliant price based on a provided amount and country, accounting for standard or reduced VAT rates.
ParametersRequired:
access_key, amount (e.g. 100), country_code (e.g. GB). Optional:
ip_address, use_client_ip, type (e.g. medical), incl (1 if amount includes VAT), format, callback.
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON with success, country_code, country_name, price_excl_vat, price_incl_vat, vat_rate, type. Failure: error object (invalid_access_key).
Workflow exampleExecute calculateVatPrice with amount=100 and country_code=GB, then use the prices for checkout or invoicing.

Reduced VAT Rate Types Retrieval

ActiongetVatTypes
PurposeRetrieves a list of available reduced VAT rate types, so applications can apply appropriate rates for specific goods.
ParametersRequired:
access_key. Optional:
format, callback.
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON with success and a types array (e.g. [foodstuffs, books, medical]). Failure: error object (invalid_access_key).
Workflow exampleExecute getVatTypes, then use the types to configure pricing rules for specific goods.

Example Workflow: VAT Validation and Price Calculation

Validate VAT numberUse validateVatNumber with vat_number to verify a customer’s VAT number and retrieve company details.
Retrieve VAT ratesExecute getVatRate with country_code=DE, or getAllVatRates for all EU countries.
Calculate priceExecute calculateVatPrice with amount, country_code, and optionally type=medical for checkout or invoicing.
Configure reduced ratesExecute getVatTypes and apply the appropriate type in subsequent calculateVatPrice calls.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support