Skip to content

eurovalidate/go-vat-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go EU VAT Validation Client

EuroValidate

Go client library for EuroValidate API — validate EU VAT, IBAN, EORI

Quick Start

  1. Get a free API key at eurovalidate.com
  2. Clone this repo: git clone https://github.com/eurovalidate/go-vat-client.git
  3. Copy .env.example to .env and add your API key
  4. Install dependencies and run (see below)

Setup

go run main.go

What This Does

Go client library for EuroValidate API — validate EU VAT, IBAN, EORI. Uses the EuroValidate API for real-time validation against official EU government sources (VIES, HMRC, GLEIF).

API Response Example

{
  "vat_number": "NL820646660B01",
  "country_code": "NL",
  "status": "valid",
  "company_name": "ABN AMRO BANK N.V.",
  "meta": {
    "confidence": "high",
    "source": "vies_cached",
    "cached": true,
    "response_time_ms": 2
  }
}

Test VAT Numbers

VAT Country Expected
NL820646660B01 Netherlands Valid
FR40303265045 France Valid
IT00159560366 Italy Valid
DE000000000 Germany Invalid

Links

License

MIT

About

Go client library for EuroValidate API — validate EU VAT, IBAN, EORI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages