{"id":15654554,"url":"https://github.com/mattes/vat","last_synced_at":"2025-08-13T20:07:25.156Z","repository":{"id":28263596,"uuid":"31773829","full_name":"mattes/vat","owner":"mattes","description":"EU VAT number validation in Go using VIES SOAP service","archived":false,"fork":false,"pushed_at":"2020-06-08T18:03:36.000Z","size":16,"stargazers_count":26,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T09:45:52.298Z","etag":null,"topics":["eu","go","tax","vat-number","vies-soap-service"],"latest_commit_sha":null,"homepage":"http://ec.europa.eu/taxation_customs/vies/vatRequest.html","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-06T14:49:54.000Z","updated_at":"2024-11-19T10:03:19.000Z","dependencies_parsed_at":"2022-08-31T06:30:21.166Z","dependency_job_id":null,"html_url":"https://github.com/mattes/vat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mattes/vat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fvat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fvat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fvat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fvat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattes","download_url":"https://codeload.github.com/mattes/vat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fvat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305255,"owners_count":24562087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eu","go","tax","vat-number","vies-soap-service"],"created_at":"2024-10-03T12:52:26.060Z","updated_at":"2025-08-13T20:07:25.112Z","avatar_url":"https://github.com/mattes.png","language":"Go","readme":"# Golang VAT number validation\n\n\n[![Build Status](https://travis-ci.org/mattes/vat.svg?branch=master)](https://travis-ci.org/mattes/vat)\n[![GoDoc](https://godoc.org/github.com/mattes/vat?status.svg)](https://godoc.org/github.com/mattes/vat)\n\n\nUses the official [VIES VAT number validation SOAP web service](http://ec.europa.eu/taxation_customs/vies/vatRequest.html?locale=en)\nto validate european VAT numbers.\n\nUnfortunately their service is super unreliable.\n\n\n## Install\n\n```\ngo get -u github.com/mattes/vat\n```\n\n\n## Usage with Go\n\n```go\nimport \"github.com/mattes/vat\"\n\nresponse, err := vat.CheckVAT(\"IE6388047V\")\nif err != nil {\n  // do sth with err\n}\nfmt.Println(response.Name, response.Valid)\n\n// or ...\nvalid, err := vat.IsValidVAT(\"IE6388047V\")\n\n// increase timeout (default 10 seconds)\nvat.Timeout = 10\n\n// get VAT rates for EU countries\nrate, ok := vat.StandardRate(\"DE\")\n\n// get applicable tax and if reverse charge is allowed,\n// depending on VAT number and country\n// (use at own risk!)\nrate, reverseCharge, err := GetApplicableTax(\"DE\", \"\")\nrate, reverseCharge, err := GetApplicableTax(\"IE\", \"IE6388047V\")\nrate, reverseCharge, err := GetApplicableTax(\"CH\", \"\")\n```\n\n## Usage via Console\n\nThere is a small cli included in this package. \n\nInstall with ``go get -u github.com/mattes/vat/vat-check``\n\n```\n$ vat-check IE6388047V\n\nRequest date: 2015-03-06 00:00:00 +0100 CET\n  VAT number: 6388047V\n     Country: IE\n        Name: GOOGLE IRELAND LIMITED\n     Address: 3RD FLOOR ,GORDON HOUSE ,BARROW STREET ,DUBLIN 4\n\nSuccess: The VAT number is valid!\n```\n\nExit code is 0 if VAT number is valid.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattes%2Fvat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattes%2Fvat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattes%2Fvat/lists"}