All Projects → mattes → vat

mattes / vat

Licence: Unlicense license
EU VAT number validation in Go using VIES SOAP service

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to vat

vat-rates
💸 {Digital,Cloud,Electronic,Online} Services VAT Rate Database
Stars: ✭ 81 (+252.17%)
Mutual labels:  tax, vat-number
taxjar.net
Sales Tax API Client for .NET / C#
Stars: ✭ 21 (-8.7%)
Mutual labels:  tax
taxjar-woocommerce-plugin
WooCommerce Sales Tax Plugin by TaxJar
Stars: ✭ 26 (+13.04%)
Mutual labels:  tax
AvaTax-REST-V2-Ruby-SDK
Sales Tax API SDK for Ruby and AvaTax REST
Stars: ✭ 34 (+47.83%)
Mutual labels:  tax
taxjar-php
Sales Tax API Client for PHP 5.5+
Stars: ✭ 66 (+186.96%)
Mutual labels:  tax
taro-tax
taro版个税小程序
Stars: ✭ 12 (-47.83%)
Mutual labels:  tax
github-sponsors-tax
GitHub Sponsorsの確定申告手順
Stars: ✭ 125 (+443.48%)
Mutual labels:  tax
erpnextswiss
ERPNext application for Switzerland-specific use cases
Stars: ✭ 58 (+152.17%)
Mutual labels:  tax
BittyTax
Crypto-currency tax calculator for UK tax rules.
Stars: ✭ 304 (+1221.74%)
Mutual labels:  tax
SAF-T-AO
Official XSD from the Government of Angola for use in SAF-T AO
Stars: ✭ 42 (+82.61%)
Mutual labels:  tax
codice fiscale
A Ruby gem that calculates the Italian Tax ID (Codice Fiscale)
Stars: ✭ 17 (-26.09%)
Mutual labels:  tax
company-admin
Filling annual returns (through ACRA) and tax (through IRAS) for Singapore based small company
Stars: ✭ 23 (+0%)
Mutual labels:  tax
apple-slicer
Parses App Store Connect (formerly iTunes Connect) financial reports and splits sales by their legally accountable Apple subsidiaries
Stars: ✭ 34 (+47.83%)
Mutual labels:  tax
CoinTaxman
Calculate your taxes from cryptocurrency gains
Stars: ✭ 110 (+378.26%)
Mutual labels:  tax
taxjar-magento2-extension
Magento 2 Sales Tax Extension by TaxJar
Stars: ✭ 23 (+0%)
Mutual labels:  tax
jbanking
A Java banking API
Stars: ✭ 58 (+152.17%)
Mutual labels:  eu
quaderno-api
API documentation and wrappers for Quaderno.
Stars: ✭ 19 (-17.39%)
Mutual labels:  vat-number

Golang VAT number validation

Build Status GoDoc

Uses the official VIES VAT number validation SOAP web service to validate european VAT numbers.

Unfortunately their service is super unreliable.

Install

go get -u github.com/mattes/vat

Usage with Go

import "github.com/mattes/vat"

response, err := vat.CheckVAT("IE6388047V")
if err != nil {
  // do sth with err
}
fmt.Println(response.Name, response.Valid)

// or ...
valid, err := vat.IsValidVAT("IE6388047V")

// increase timeout (default 10 seconds)
vat.Timeout = 10

// get VAT rates for EU countries
rate, ok := vat.StandardRate("DE")

// get applicable tax and if reverse charge is allowed,
// depending on VAT number and country
// (use at own risk!)
rate, reverseCharge, err := GetApplicableTax("DE", "")
rate, reverseCharge, err := GetApplicableTax("IE", "IE6388047V")
rate, reverseCharge, err := GetApplicableTax("CH", "")

Usage via Console

There is a small cli included in this package.

Install with go get -u github.com/mattes/vat/vat-check

$ vat-check IE6388047V

Request date: 2015-03-06 00:00:00 +0100 CET
  VAT number: 6388047V
     Country: IE
        Name: GOOGLE IRELAND LIMITED
     Address: 3RD FLOOR ,GORDON HOUSE ,BARROW STREET ,DUBLIN 4

Success: The VAT number is valid!

Exit code is 0 if VAT number is valid.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].