var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';



var apiInstance = new CloudmersiveValidateApiClient.VatApi();

var input = new CloudmersiveValidateApiClient.VatLookupRequest(); // VatLookupRequest | Input VAT code


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.vatVatLookup(input, callback);
from __future__ import print_function
import time
import cloudmersive_validate_api_client
from cloudmersive_validate_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_validate_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'



# create an instance of the API class
api_instance = cloudmersive_validate_api_client.VatApi(cloudmersive_validate_api_client.ApiClient(configuration))
input = cloudmersive_validate_api_client.VatLookupRequest() # VatLookupRequest | Input VAT code

try:
    # Lookup a VAT code
    api_response = api_instance.vat_vat_lookup(input)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VatApi->vat_vat_lookup: %s\n" % e)
using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.Validate.Api;
using Cloudmersive.APIClient.NET.Validate.Client;
using Cloudmersive.APIClient.NET.Validate.Model;

namespace Example
{
    public class VatVatLookupExample
    {
        public void main()
        {
            // Configure API key authorization: Apikey
            Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
            
            

            var apiInstance = new VatApi();
            var input = new VatLookupRequest(); // VatLookupRequest | Input VAT code

            try
            {
                // Lookup a VAT code
                VatLookupResponse result = apiInstance.VatVatLookup(input);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VatApi.VatVatLookup: " + e.Message );
            }
        }
    }
}
// Import classes:
//import com.cloudmersive.client.invoker.ApiClient;
//import com.cloudmersive.client.invoker.ApiException;
//import com.cloudmersive.client.invoker.Configuration;
//import com.cloudmersive.client.invoker.auth.*;
//import com.cloudmersive.client.VatApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");

VatApi apiInstance = new VatApi();
VatLookupRequest input = new VatLookupRequest(); // VatLookupRequest | Input VAT code
try {
    VatLookupResponse result = apiInstance.vatVatLookup(input);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling VatApi#vatVatLookup");
    e.printStackTrace();
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');



$apiInstance = new Swagger\Client\Api\VatApi(
    
    
    new GuzzleHttp\Client(),
    $config
);
$input = new \Swagger\Client\Model\VatLookupRequest(); // \Swagger\Client\Model\VatLookupRequest | Input VAT code

try {
    $result = $apiInstance->vatVatLookup($input);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VatApi->vatVatLookup: ', $e->getMessage(), PHP_EOL;
}
?>
CMDefaultConfiguration *apiConfig = [CMDefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Apikey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Apikey"];




CMVatLookupRequest* input = [[CMVatLookupRequest alloc] init]; // Input VAT code

CMVatApi*apiInstance = [[CMVatApi alloc] init];

// Lookup a VAT code
[apiInstance vatVatLookupWithInput:input
          completionHandler: ^(CMVatLookupResponse* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling CMVatApi->vatVatLookup: %@", error);
                        }
                    }];
# load the gem
require 'cloudmersive-validate-api-client'
# setup authorization
CloudmersiveValidateApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveValidateApiClient::VatApi.new

input = CloudmersiveValidateApiClient::VatLookupRequest.new # VatLookupRequest | Input VAT code


begin
  #Lookup a VAT code
  result = api_instance.vat_vat_lookup(input)
  p result
rescue CloudmersiveValidateApiClient::ApiError => e
  puts "Exception when calling VatApi->vat_vat_lookup: #{e}"
end