Skip to content

A go library that wraps the new (REST) eVatR API of the BZSt to validate European VAT ID numbers.

License

Notifications You must be signed in to change notification settings

hostwithquantum/go-evatr

Repository files navigation

go-evatr

Go Reference OpenSSF Scorecard

Go client library for the eVatR API (German VAT ID validation system) of the BZSt.

Features

  • Simple and qualified VAT ID validation
  • EU member state information and VIES availability
  • Type-safe error handling with status codes
  • Context-aware API calls

Installation

go get github.com/hostwithquantum/go-evatr

Documentation

Optional Configuration

httpClient := &http.Client{
    Timeout: 30 * time.Second,
    Transport: customTransport,
}

client := evatr.NewClient(
    evatr.WithBaseURL("https://custom.api.url"),
    evatr.WithTimeout(60 * time.Second),
    evatr.WithHTTPClient(httpClient),
)

Usage

The API advertises a daily maintenance window from 23:00 - 5:00 (local). Run potential jobs during the workday to avoid issues — see our dependabot and workflow configuration for examples.

License

mpl-2.0

Links

About

A go library that wraps the new (REST) eVatR API of the BZSt to validate European VAT ID numbers.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •  

Languages