Test environment for checking entity status in VIES system.

For all those willing to test the operation of shared libraries, plugins and an add-on for Microsoft Excel, a test API has been made available at: https://viesapi.eu/api-test/

Using the test API does not require creating an account on the viesapi.eu website, and all the test API functions work in exactly the same way as in the case of the production API (https://viesapi.eu/api/). The only limitation is the range of EU VAT numbers for which inquiries can be sent.

Inquiries sent to the API-test address may only refer to the following numbers assigned to specific functions:

Function name Description EU VAT Numbers
getVIESData A function for confirming the activity of an EU VAT number issued by any of the European Union Member States ATU31008466
BE0134638665
BG144219261
CY22516855F
CZ88977068
DE674073852
DK48310246
EE778578355
EL693540554
ESB17909452
FI36264220
FR93278916286
HR64836211286
HU27733091
IE8292376O
IT98968750297
LT812407911
LU90593374
LV42395320082
MT92179813
NL121622075B52
PL5241573409
PT536726508
RO46629952
SE587288767901
SI48219480
SK3075534832
XI653441128
getVIESDataParsed A function that allows you to confirm the activity of an EU VAT number issued by any of the European Union Member States and additionally returns a parsed trader address of the company’s registered office.

Note! Due to the lack of data returned by VIES for traders from Germany and Spain, the function does not return a parsed trader address for these countries.

Configuration

For production accounts, the key identifier and the key are generated by the user after logging in to his account on the viesapi.eu portal. In the case of the test API, there is no need to create an account – it is enough to perform the configuration as described below.

For authorization in the test environment, use the following values: test_id and test_key.

The following example shows a query that can be invoked in a test environment from a web browser. Just copy and paste it into the browser address bar:

https://test_id:test_key@viesapi.eu/api-test/get/vies/euvat/PL5241573409

For a production environment, identifier and the key are generated by the user after logging in to his account on the viesapi.eu portal (API keys tab). See the documentation page for more information on ID and key generation.

The test API requires a parameter less constructor to be used when constructing the client object to perform correct authentication. Here are examples for particular libraries:

using viesapiLibrary.dll;

// Create the test env service client object.
VIESAPIClient viesapi = new VIESAPIClient();
#include "viesapi.h"

// Create the test env service client object.
VIESAPIClient* viesapi = NULL;
viesapi_new_test(&viesapi);
import pl.viesapi.client.*;

// Create the test env service client object.
VIESAPIClient viesapi = new VIESAPIClient();
var VIESAPI = require('viesapiclient');

// Create the test env service client object.
var viesapi = new VIESAPI.VIESAPIClient();
require_once 'VIESAPI/VIESAPIClient.php';

\VIESAPI\VIESAPIClient::registerAutoloader();

// Create the test env service client object.
$viesapi = new \VIESAPI\VIESAPIClient();
from viesapi import *
from pprint import pprint

# Create the test env service client object.
viesapi = VIESAPIClient()
' Create the test env service client object
Dim viesapi As New VIESAPIClient
# Create the test env service client object.
=VIESAPI.CONNECT.TEST()

Usage

Checking individual functionalities of the test API consists in calling individual functions described in detail on the documentation page with the parameters (EU VAT numbers) listed above.

Each of the libraries we provide contains the source code for a sample program called example, which illustrates the correct use of all API functions.