This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
185 lines (151 loc) · 10.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EU VAT Rates Web Service</title>
<meta name="description" content="Simple Web Service to load the VAT Rates for all countries in the European Union from official sources.">
<meta name="author" content="Mark Hamstra">
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
html, body {
font-size: 16px;
margin: 0;
padding: 0;
width: 100%;
min-height: 100%;
background: #1f4a7f -webkit-gradient(linear,left top,left bottom,color-stop(0,#2d5586),color-stop(1,#1d4475));
background: #1f4a7f -webkit-linear-gradient(top,#2d5586 0,#1d4475 100%);
background: #1f4a7f -moz-linear-gradient(top,#2d5586 0,#1d4475 100%);
background: #1f4a7f -o-linear-gradient(top,#2d5586 0,#1d4475 100%);
background: #1f4a7f -ms-linear-gradient(top,#2d5586 0,#1d4475 100%);
background: #1f4a7f linear-gradient(top,#2d5586 0,#1d4475 100%);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#2d5586, endColorstr=#1d4475)";
}
.main {
max-width: 40em;
margin: 0 auto;
-webkit-box-shadow: 0 10px 10px 5px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0 10px 10px 5px rgba(50, 50, 50, 0.75);
box-shadow: 0 10px 10px 5px rgba(50, 50, 50, 0.75);
padding: 2em;
background: #fff;
}
.divide {
padding-bottom: 1em;
}
.divide:after {
content:"";
display:table;
clear:both;
}
@media (min-width: 400px) {
.divide section {
width: 50%;
float: left;
}
.divide aside {
width: 48%;
float: right;
padding-left: 2%;
}
}
h1, h2 {
font-family: Georgia, Gentium, "Times New Roman", Times, serif;
color: #1f4a7f;
}
h1 {
margin-top: 0;
}
a {
color: #1f4a7f;
}
a:hover {
color: #1d4475;
}
#mc_embed_signup{
background:#fff;
clear:left;
}
#mc_embed_signup form {
padding: 0;
}
code {
font-family: "Courier New", Courier, monospace;
background-color: #eee;
color: #1f4a7f;
}
</style>
</head>
<body>
<section class="main">
<h1>Welcome to the EU VAT Rates Web Service</h1>
<p>This static web service provides a simple to consume JSON document, containing a list of VAT rates per country in the European Union. It can be used to automatically grab the right VAT right to comply with the 2015 EU VAT Changes. As it's a free service, use is at your own risk. This project is licensed under the MIT License.</p>
<p><a href="https://github.com/modmore/euvatrates.com" target="_blank">You can contribute to this service on Github!</a> Please <a href="#subscribe">subscribe to the newsletter</a> to receive important information about the service (such as VAT or format changes). </p>
<h2>How it works</h2>
<p>Simply load <code>https://euvatrates.com/rates.json</code> (<a href="rates.json" target="_blank">Click!</a>) and use the data to apply the proper VAT rates in your cart or checkout system. </p>
<p>Considering these VAT rates rarely change, <b>cache the data on your system</b>. If you repeatedly hit the server and steal up the bandwidth, you risk getting blocked from accessing this free service. Alternatively, if you'd like to self-host the rates.json file, it's possible to <a href="https://github.com/modmore/euvatrates.com">clone the repository</a> or to install it into your project with <a href="http://bower.io">Bower</a>: <code>bower install euvatrates.com</code></p>
<p>The data structure is pretty self explanatory JSON. There's a <code>last_updated</code> ISO 8601 timestamp in the root that tells you when the last VAT change (or bug fix) was made, and there is a disclaimer. The <code>rates</code> object contains all the different rates per country, based on its 2 character country code. </p>
<p>The rate object contains the country name, and a couple of different tax rates that exist in the country. The currently returned rate types are <code>standard_rate</code>, <code>reduced_rate</code>, <code>reduced_rate_alt</code>, <code>super_reduced_rate</code> and <code>parking_rate</code>. The values are always numeric (with decimals), or a boolean <code>false</code> if the rate is not used in the country.</p>
<p>Which VAT rate you need to use, depends on the type of product or service you are providing and to whom you are providing it. It is best to consult someone knowledgeable, like your accountant on that. <a href="http://ec.europa.eu/taxation_customs/resources/documents/taxation/vat/how_vat_works/rates/vat_rates_en.pdf" target="_blank">This official EU Document also contains a table indicating what rates to apply.</a> Exceptions or exemptions may apply per country.</p>
<p>For convenience, the United Kingdom and Greece are included both by their EU country code (UK and EL), as well as their ISO country code (GB and GR). The ISO duplicates contain a <code>iso_duplicate_of</code> element referring to the EU country code, and the originals contain a <code>iso_duplicate</code> element that contains the ISO Country code.</p>
<section class="divide">
<section>
<h2 id="subscribe">Subscribe to Updates</h2>
<p>Receive an email with important news, such as VAT rate changes and changes to the format or available features. </p>
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//markhamstra.us2.list-manage.com/subscribe/post?u=f70125e94ef1181a22558acd5&id=afa32423f6" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address </label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
<label for="mce-FNAME">First Name </label>
<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
</div>
<div class="mc-field-group">
<label for="mce-LNAME">Last Name </label>
<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;"><input type="text" name="b_f70125e94ef1181a22558acd5_afa32423f6" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
</section>
<aside>
<h2>Contact</h2>
<p>Find me on Twitter <a href="https://twitter.com/mark_hamstra">@mark_hamstra</a> or email hello [youknowhatgoeshere] markhamstra.com</p>
<!--End mc_embed_signup-->
<h2>Data Sources</h2>
<ul>
<li><a href="http://ec.europa.eu/taxation_customs/resources/documents/taxation/vat/how_vat_works/rates/vat_rates_en.pdf" target="_blank">VAT Rates Applied in the Member States of the European Union</a> (PDF, retrieved October 20th, 2014)</li>
<li><a href="http://www.vatlive.com/vat-rates/european-vat-rates/eu-vat-rates/">Avalara VATlive</a></li>
</ul>
<h2>Make a Donation</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RXUGWVFHHUHNS">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
</form>
</aside>
</section>
<h2>Recent Changes</h2>
<ul>
<li>[2016-01-01] Updated Romanian VAT rate, and re-ordered countries in the list to be alphabetical-ish (<a href="https://github.com/modmore/euvatrates.com/pull/5">#5</a>)</li>
<li>[2015-09-21] Updated VAT rate for Greece (<a href="https://github.com/modmore/euvatrates.com/pull/4">#4</a>)</li>
<li>[2015-01-02] Update Luxembourg VAT rates (<a href="https://github.com/modmore/euvatrates.com/pull/3">#3</a>, <a href="http://www.vatlive.com/european-news/luxembourg-vat-rise-17-2015/">source</a>)</li>
<li>[2014-12-30] <code>last_updated</code> timestamp is now formatted according to ISO 8601</li>
<li>[2014-12-30] Include <code>GB</code> and <code>GR</code> rates elements as duplicates of the <code>UK</code> and <code>EL</code> elements to deal with how differences in how the EU and ISO hav determined country codes. The duplicates (the ISO representation: GB and GR) contain a new <code>iso_duplicate_of</code> element referring to the EU-style country code. The originals (the EU representation: UK and EL) contain a new <code>iso_duplicate</code> element, referring to the ISO-style country code.</li>
<li>[2014-12-30] Remove "The" from "The Netherlands" again (#1)</li>
<li>[2014-11-07] Fix typo in Finland, add "The" to "The Netherlands"</li>
</ul>
</section>
</body>
</html>