pvWay.ViesApi.Core 1.0.1

Install-Package pvWay.ViesApi.Core -Version 1.0.1
dotnet add package pvWay.ViesApi.Core --version 1.0.1
<PackageReference Include="pvWay.ViesApi.Core" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add pvWay.ViesApi.Core --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: pvWay.ViesApi.Core, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install pvWay.ViesApi.Core as a Cake Addin
#addin nuget:?package=pvWay.ViesApi.Core&version=1.0.1

// Install pvWay.ViesApi.Core as a Cake Tool
#tool nuget:?package=pvWay.ViesApi.Core&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Vies API for dotNet Core by pvWay

Tiny async service that checks a VAT number against the European Vat Number database and returns whether or not the number is valid and - when available - the name and the address of the registered company



    public interface IViesResult
        bool Success { get; }
        bool Failure { get; }

        /// <summary>
        /// Exception is only set on Failure
        /// </summary>
        Exception Exception { get; }

        /// <summary>
        /// Data is only set on Success
        /// </summary>
        IViesData Data { get; }


    public interface IViesData
        bool Valid { get; }
        string CountryCode { get; }
        string VatNumber { get; }
        string Name { get; }
        string Address { get; }


    public interface IViesService
        Task<IViesResult> CheckVatAsync(
            string countryCode, string vatNumber);


using System;
using pvWay.MethodResultWrapper.Core;
using pvWay.ViesApi.Core;

namespace ViesApiConsumer.Core
    internal static class Program
        private static void Main(/*string[] args*/)
            var viesService = new ViesService();
            var checkVat = viesService.CheckVatAsync("BE", "0459415853").Result;
            if (checkVat.Failure)
                var viesRes = checkVat.Data;

Happi Coding

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 565 9/19/2020
1.0.0 264 6/20/2020

remove dependency with MethodResult