Skip to content
/ evatr Public

eVatR: Bestätigung von ausländischen Umsatzsteuer-Identifikationsnummern

Notifications You must be signed in to change notification settings

mllrsohn/evatr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eVatR: Bestätigung von ausländischen Umsatzsteuer-Identifikationsnummern

Validate EU Vat Numbers with a valid German VAT Number

Uses the official API from the Bundeszentralamt für Steuern. It has a simple and qualified Check. In the qualified check the Status Code might be 200 even if other params don't match.

Install

go get -u github.com/mllrsohn/evatr

Usage with Go

import "github.com/mllrsohn/evatr"

input := &EvatrSimpleInput{
	OwnVatNumber:      "DEXXXXXXX",
	ValidateVatNumber: "LU26375245",
}
resp, err := CheckSimple(input)
if err != nil {
  // do sth with err
}

fmt.Println("isValid", resp.Valid)
	
import "github.com/mllrsohn/evatr"

input := &EvatrQualifiedInput{
	OwnVatNumber:      "DEXXXXX",
    ValidateVatNumber: "LU26375245",
	ValidateName:      "AMAZON EUROPE CORE S.A R.L.",
	ValidateCity:      "Luxembourg",
}
resp, err := CheckQualified(input)
if err != nil {
  // do sth with err
}

if resp.MatchedName == EvatrResponseMatched {
    fmt.Println("Name and ID are a matching")
}
	

About

eVatR: Bestätigung von ausländischen Umsatzsteuer-Identifikationsnummern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published