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
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:
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()
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.