How To Create Instant VAT Number Validation Service For Node.js And Windows

VATLayer – VAT number lookup for business customers. VATLayer API is a real-time VAT number checking API for B2B services. 

If you manage customer data and if that information is outdated, it costs you money. For instance, if your customer’s VAT number expires you should ask for their new VAT number. Otherwise, the reverse-charge mechanism no longer applies, and you have to start charging VAT at your customer’s local rate. 

VATLayer API – is here to help you to automate VAT number validation and lookup for your services. 

And in this demonstration, we will create two different demos to show you how to integrate the VATLayer API into our cross-platform native application using Delphi and web app using Node.js (Express)

Here are our cross-platform app built with Delphi FireMonkey (which supports Android, iOS, macOS, Windows, and Linux) and web app built with Node.js:

What is VATLayer?

VATLayer is a simple JSON-based RESTful web service that provides fast API enabling you to validate VAT numbers, retrieve all or single EU VAT rates based on IP address or country code, convert prices in compliance with EU VAT rates and types, and more.

Why VATLayer API?

  • Simple & Secure API
  • Easy on your Budget
  • Advanced Features
  • Reliable up-to-date EU VAT rates
  • Advanced VAT Information
  • and more

If you are more interested in learning the whole service before start using it, you can head over and learn more about why VATLayer API is the best!

https://blog.apilayer.com/vatlayer-vs-vatapi-which-is-better/
Learn more about VATLayer API

How to use VATLayer API?

The VAT Layer API offers main 4 main data endpoints.

 

How to integrate VATLayer API into a native Windows app using Delphi FireMonkey?

RAD Studio provides several tools to swiftly integrate various services, one of them is the REST Debugger. REST Debugger helps to connect any kind of RESTful web service in several steps.

Here you can see you can provide the RESTful web service endpoint and copy configured components to use in Delphi FireMonkey project.

This is our Delphi FireMonkey demo user interface structure.

These are two functions that fetch data based on the VAT number and another one fetches data based on the user IP address.

How to integrate VATLayer API into Node.js (Express) Web App?

As you can see, this is our Node.js (Express) web app structure, and here is our main source code. 

The whole project is provided in this repository which also provides how to set up the project environment and run the application in the read me section!

I hope you have enjoyed the demonstration here. Yeah, we have not played with the API so much, but you now have a full vision of the VATLayer API.

Watch the demos in action.

https://youtu.be/Z5Yi2QMUskA

Check out the full source code in this repository.

If you are planning to integrate VAT number lookup into your system, just go with the quick and cost-effective VATLayer API.

Ready to get started with VATLayer? Sign up!