🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

Valdit.Api.Client.VatValidation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Valdit.Api.Client.VatValidation

A client library for the Valdit VAT Number Validation API. The Valdit VAT Number Validation API offers real-time validation of European VAT-numbers, using the VAT-VIES service as source. Typical use cases for the Valdit VAT Number Validation API are: - One-time or repetitive validation of large amounts of EU VAT numbers - Business Validation during registration on B2B E-Commerce platforms (e.g. web shops) - Repeated use of VAT Number Validation records in different phases of the ‘Customer Journey’ (offer, purchase, billing etc.) and by different Line of Business systems (e.g. E-commerce, CRM, Order2Cash, Accounting) When using the API to validate one single or a series of VAT numbers, you will benefit from Valdit's records management features that simplify meeting the compliancy requirements of national Tax Services. Please note that usage of the Valdit VAT Number Validation API requires a subscription. Please contact us on valdit@valdit.com for more information.

1.2.0
NuGet
Version published
Maintainers
1
Created
Source

Thanks for installing the Valdit VAT Number Validation API Client!

Getting started

Adding Validation of an European VAT-number requires only a few lines of code. In C#:

// Create a VatValidation API Client var client = new VatValidationClient();

// Setup the Vat Validation API Client with Client Credentials, point it to the API Production Endpoint client.Init("[insert_client_id]", "[insert_client_secret]", EndpointType.Production);

// Check a VAT-number var result = client.Create(VatCountryCode.NL, "806570994B01");

// The result will contain all info you need on the VAT-number, for example to access the address info use: Debug.WriteLine(result.ValditBusinessEntity.BusinessAddress.Street);

Or, in Visual Basic:

' Create a VatValidation API Client Dim client As New Valdit.Api.Client.VatValidation.VatValidationClient

' Setup the Vat Validation API Client with Client Credentials, point it to the API Sandbox Endpoint client.Init("[insert_client_id]", "[insert_client_secret]", Valdit.Api.Client.Common.EndPoints.EndpointType.SandBox)

' Check a VAT-number Dim result As Valdit.Api.Client.VatValidation.BusinessEntityInfo result = client.Create(Valdit.Api.Client.VatValidation.VatCountryCode.NL, "806570994B01")

' The result will contain all info you need on the VAT-number, for example to access the address info use Debug.WriteLine(result.ValditBusinessEntity.BusinessAddress.Street)

Optional usage of a Proxy: If you need to use a Proxy to access the Internet, you can add an additional parameter to the Init call:

// Setup a standard .Net WebProxy (1.2.3.4 just being an example IP address!!) var proxy = new WebProxy("http://1.2.3.4:8080");

// Create a VatValidation API Client var client = new VatValidationClient();

// Setup the Vat Validation API Client with Client Credentials, point it to the API Production Endpoint client.Init("[insert_client_id]", "[insert_client_secret]", EndpointType.Production, proxy);

Environments

Two separate publicly available environments are available for the Valdit VAT Number Validation API:

  • For development and testing, a ‘Developer Sandbox’ is offered that runs an exact copy of the production software. The Sandbox can be used while developing your integration with the API. To use the SandBox, set the Endpoint using EndpointType.SandBox (as in the example code above).
  • The Production environment is used for regular operation. You will need a subscription to use the Valdit VAT Number Validation API Production environment. For Production, set the Endpoint using EndpointType.Production.

Client Credentials

You will need a set of "client credentials", in the form of a client identifier and a client secret, to work with the API Client. If you don’t have client credentials yet, you can request them by sending an email to support@valdit.com using ‘Request for Sandbox Client Credentials’ as subject. Make sure you include your own VAT Number. We will send you a reply within two business hours.

Technical Documentation

The latest technical documentation can be obtained here: https://www.valdit.com/developers/api-documentation

Contact us

Do you have a technical question on using the library? Suggestions for improving this Technical Documentation? Contact our DevOps Team at devops@valdit.com. We value your input!

Keywords

Valdit

FAQs

Package last updated on 02 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts