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 | PL7272445205 PL5213003700 PL5252242171 PL7171642051 DE327990207 FR10402571889 DK56314210 ES38076731R PT501613897 CZ7710043187 IT06903461215 BG202211464 HU29312757 RO14388698 EL801116623 FI23064613 HR79147056526 LT100005828314 LV40203202898 SK2022210311 NL863726392B01 BE0835221567 ATU74581419 CY10137629O EE100110874 IE8251135U LU22108711 MT26572515 SE556037867001 SI51510847 |
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.
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:
- C#
- C/C++
- Java
- JavaScript
- PHP
- Python
- Visual Basic
- Excel
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.