openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 27.6 kB
JSON
{"openapi":"3.0.3","servers":[{"url":"https://api.taxrates.io/api"}],"info":{"contact":{},"description":"<h3>Introduction</h3>\n<p>Taxrates.io is a global tax rate service that automates the management of monitoring tax rates changes in 181 countries. We monitor over 14,000 US sales tax, VAT, GST rates for you and make updates via our API so you always have the most update tax rates.</p>\n<p>You can use Taxrates.io as a virtual sandbox where we provide you with 30 days free trial.</p>\n<h3>Countries</h3>\n<p>We currently support the following countries around the world. If you would like to request the addition of a new country, please email us at <a href=\"mailto:support@taxrates.io\">support@taxrates.io</a></p>\n<table>\n <tr><td>Afghanistan</td><td>Gambia</td><td>Nicaragua</td></tr>\n <tr><td>Albania</td><td>Georgia</td><td>Niger</td></tr>\n <tr><td>Andorra</td><td>Germany</td><td>Nigeria</td></tr>\n <tr><td>Angola</td><td>Ghana</td><td>North Korea</td></tr>\n <tr><td>Antigua and Barbuda</td><td>Greece</td><td>Norway</td></tr>\n <tr><td>Argentina</td><td>Grenada</td><td>Pakistan</td></tr>\n <tr><td>Armenia</td><td>Guam</td><td>Palestine</td></tr>\n <tr><td>Aruba</td><td>Guatemala</td><td>Panama</td></tr>\n <tr><td>Australia</td><td>Guinea</td><td>Papua New Guinea</td></tr>\n <tr><td>Austria</td><td>Guyana</td><td>Paraguay</td></tr>\n <tr><td>Azerbaijan</td><td>Haiti</td><td>Peru</td></tr>\n <tr><td>Bahamas</td><td>Honduras</td><td>Philippines</td></tr>\n <tr><td>Bangladesh</td><td>Hungary</td><td>Poland</td></tr>\n <tr><td>Barbados</td><td>Iceland</td><td>Portugal</td></tr>\n <tr><td>Belarus</td><td>India</td><td>Puerto Rico</td></tr>\n <tr><td>Belgium</td><td>Indonesia</td><td>Republic of the Congo</td></tr>\n <tr><td>Belize</td><td>Iran</td><td>Romania</td></tr>\n <tr><td>Benin</td><td>Ireland</td><td>Russian Federation</td></tr>\n <tr><td>Bhutan</td><td>Isle of Man</td><td>Rwanda</td></tr>\n <tr><td>Bolivia</td><td>Israel</td><td>Samoa</td></tr>\n <tr><td>Bonaire</td><td>Italy</td><td>Senegal</td></tr>\n <tr><td>Bosnia and Herzegovina</td><td>Japan</td><td>Serbia</td></tr>\n <tr><td>Botswana</td><td>Jersey</td><td>Seychelles</td></tr>\n <tr><td>Brazil</td><td>Jordan</td><td>Sierra Leone</td></tr>\n <tr><td>Bulgaria</td><td>Jordan</td><td>Singapore</td></tr>\n <tr><td>Burkina Faso</td><td>Kazakhstan</td><td>Slovakia</td></tr>\n <tr><td>Burundi</td><td>Kenya</td><td>Slovenia</td></tr>\n <tr><td>Cambodia</td><td>Kiribati</td><td>Solomon Islands</td></tr>\n <tr><td>Cameroon</td><td>Kosovo</td><td>Somalia</td></tr>\n <tr><td>Cape Verde</td><td>Kyrgyzstan</td><td>South Africa</td></tr>\n <tr><td>Central African Republic</td><td>Laos</td><td>South Korea</td></tr>\n <tr><td>Chad</td><td>Latvia</td><td>South Sudan</td></tr>\n <tr><td>Chile</td><td>Lebanon</td><td>Spain</td></tr>\n <tr><td>China</td><td>Lesotho</td><td>Sri Lanka</td></tr>\n <tr><td>Columbia</td><td>Liberia</td><td>St Lucia</td></tr>\n <tr><td>Comoros</td><td>Liechtenstein</td><td>Sudan</td></tr>\n <tr><td>Cook Islands</td><td>Lithuania</td><td>Suriname</td></tr>\n <tr><td>Costa Rica</td><td>Luxembourg</td><td>Swaziland</td></tr>\n <tr><td>Cote d'Ivoire</td><td>Macedonia</td><td>Sweden</td></tr>\n <tr><td>Croatia</td><td>Madagascar</td><td>Switzerland</td></tr>\n <tr><td>Cuba</td><td>Malawi</td><td>Tahiti</td></tr>\n <tr><td>Curacao</td><td>Malaysia</td><td>Taiwan</td></tr>\n <tr><td>Cyprus</td><td>Maldives</td><td>Tajikistan</td></tr>\n <tr><td>Czech Republic</td><td>Mali</td><td>Tanzania</td></tr>\n <tr><td>Democratic Republic of the Congo</td><td>Malta</td><td>Thailand</td></tr>\n <tr><td>Denmark</td><td>Mauritania</td><td>Togo</td></tr>\n <tr><td>Djbouti</td><td>Mauritius</td><td>Tonga</td></tr>\n <tr><td>Dominica</td><td>Mexico</td><td>Trinidad and Tobago</td></tr>\n <tr><td>Dominican Republic</td><td>Micronesia</td><td>Tunisia</td></tr>\n <tr><td>Ecuador</td><td>Moldova</td><td>Turkmenistan</td></tr>\n <tr><td>Egypt</td><td>Monaco</td><td>Tuvalu</td></tr>\n <tr><td>El Salvador</td><td>Mongolia</td><td>Uganda</td></tr>\n <tr><td>Equatorial Guinea</td><td>Montenegro</td><td>Ukraine</td></tr>\n <tr><td>Eritrea</td><td>Morocco</td><td>United Kingdom</td></tr>\n <tr><td>Estonia</td><td>Mozambique</td><td>United States</td></tr>\n <tr><td>Ethiopia</td><td>Myanmar</td><td>Uruguay</td></tr>\n <tr><td>Fiji</td><td>Namibia</td><td>Vanuatu</td></tr>\n <tr><td>Finland</td><td>Nepal</td><td>Venezuela</td></tr>\n <tr><td>France</td><td>Netherlands</td><td>Vietnam</td></tr>\n <tr><td>Gabon</td><td>New Zealand</td><td>Yemen</td></tr>\n</table>\n<h3>Products codes</h3>\n<p>The Taxrates.io API’s provides product-level tax rates for a subset of product codes. These codes are to be used for products that are either exempt from tax in some jurisdictions or are taxed at reduced rates.</p>\n<p>We will be expanding support for additional, less common categories over time. If you would like to request the addition of a new product category, please email us at <a href=\"mailto:support@taxrates.io\">support@taxrates.io</a></p>\n<p>Please select a product code/s when making a request to the Taxrates.io API</p>\n<table>\n <tr><th>Product code</th><th>Product Description</th></tr>\n <tr><td>C010</td><td>Services which are not subject to a service-specific tax</td></tr>\n <tr><td>C011</td><td>Software - Downloaded</td></tr>\n <tr><td>C012</td><td>Books - Downloaded</td></tr>\n <tr><td>C011</td><td>Music - Downloaded</td></tr>\n <tr><td>C011</td><td>Movies/Digital Video - Downloaded</td></tr>\n <tr><td>C011</td><td>Other Electronic Goods - Downloaded</td></tr>\n <tr><td>C011</td><td>Streaming Music/Audio Services new</td></tr>\n <tr><td>C011</td><td>Streaming Video Services new</td></tr>\n <tr><td>C018</td><td>Software as a Services, Generally (Remote Access to Hosted Software)</td></tr>\n <tr><td>C018</td><td>Remote Access to Hosted Software - Personal Use</td></tr>\n <tr><td>C018</td><td>Remote Access to Hosted Software - Business Use</td></tr>\n <tr><td>C021</td><td>Remote Access to Hosted Business Custom Applications</td></tr>\n <tr><td>C021</td><td>Personal Cloud Storage/Backup</td></tr>\n <tr><td>C021</td><td>Business Cloud Storage/Backup</td></tr>\n <tr><td>C021</td><td>Business Data Warehouses</td></tr>\n <tr><td>C022</td><td>Infrastructure as Service, Generally</td></tr>\n <tr><td>C022</td><td>Ecommerce Site/Webserver Hosting</td></tr>\n <tr><td>C022</td><td>Provision of Virtual Computing Capacity</td></tr>\n <tr><td>C022</td><td>Software - package or canned program</td></tr>\n <tr><td>C022</td><td>Software - modifications to canned program</td></tr>\n <tr><td>C022</td><td>Software - custom programs - material</td></tr>\n <tr><td>C022</td><td>Software - custom programs - professional serv.</td></tr>\n <tr><td>C022</td><td>Information services</td></tr>\n <tr><td>C022</td><td>Data processing services</td></tr>\n <tr><td>C022</td><td>Mainframe computer access and processing serv.</td></tr>\n <tr><td>C022</td><td>Online Data processing services</td></tr>\n</table>\n<h3>Filtering</h3>\n<p>When calling the API endpoints you can use 'filter' parameters to get tax rate for the selected type. You can get the following tax types (Each tax rate will always have one of following types)</p>\n<h3>US Sales tax Rates</h3>\n<ol>\n <li>CombinedRate</li>\n <li>StateRate</li>\n <li>CountyRate</li>\n <li>CityRate</li>\n <li>SpecialRate</li>\n</ol>\n<p>We recommend using <a href=\"https://www.getpostman.com/\">Postman</a> when discovering our API. Happy using!</p>\n<h3>Rate Limiting</h3>\n<p>We limit API requests.</p>\n<p>If you’re exceeding this rate and encountering 429 errors, review the following:</p>\n<ul>\n <li>Only make requests in states / regions where you have enabled.</li>\n <li>Cache responses if the order details haven’t changed since the last calculation at checkout.</li>\n</ul>\n<h3>Errors</h3>\n<p>The Taxrates.io API uses the following error codes:<p/>\n<table>\n <tr><th>Code</th><th>Error Message</th></tr>\n <tr><td>400</td><td>Bad Request – Your request format is bad.</td></tr>\n <tr><td>401</td><td>Unauthorized – Your API key is wrong.</td></tr>\n <tr><td>404</td><td>Not Found – The specified resource could not be found.</td></tr>\n <tr><td>405</td><td>Method Not Allowed – You tried to access a resource with an invalid method.</td></tr>\n <tr><td>429</td><td>Too Many Requests – You’re requesting too many resources! Slow down!</td></tr>\n <tr><td>500</td><td>Internal Server Error – We had a problem with our server. Try again later.</td></tr>\n <tr><td>503</td><td>Service Unavailable – We’re temporarily offline for maintenance. Try again later.</td></tr>\n</table>\n<p>Verify your API token is correct and make sure you’re correctly setting the <a href=\"#authentication\">Authorization header</a>.</p>\n<p>If you’re still not sure what’s wrong, <a href=\"mailto:support@taxrates.io\">contact us</a> and we’ll investigate.</p>\n<h3>Changelog</h3>\n<p>Stay on top of new developer-facing features, accuracy improvements, and bug fixes for our API. Have a request? Encounter an issue? <a href=\"mailto:support@taxrates.io\">We’d love to hear your feedback.</a></p>\n\n\nContact Support:\n Name: apiteam@taxrates.io","title":"Taxrates.io API","version":"1.0.0","x-apisguru-categories":["financial"],"x-logo":{"url":"https://pbs.twimg.com/profile_images/919999226955927553/lLFntE3W_400x400.jpg"},"x-origin":[{"format":"openapi","url":"https://www.postman.com/collections/10601972-0bdabb72-f66a-4b75-bb29-e1c01dc81baa-TVev6RW8","version":"3.0"}],"x-providerName":"taxrates.io"},"tags":[{"name":"v3/tax"},{"name":"v1/tax"}],"paths":{"/v1/tax/countrycode":{"get":{"description":"Get request. This method returns all tax rates for country discovered based on country code. The country code must be 2 letters ISO 3166-1 alfa-2 country code (see <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\">here</a> for more information). You can use 'filter' parameter to narrow results to selected type of tax\n<p>For US sales tax you can filter the tax rate you want for each state or zip code with one of the following: (they are case sensitive)</p>\n<ul>\n <li>CombinedRate</li>\n <li>StateRate</li>\n <li>CountyRate</li>\n <li>CityRate</li>\n <li>SpecialRate</li>\n</ul>\n<pre><code class=\"js\">var taxrates_endpoint = 'tax/countrycode';\n var taxrates_params = {'domain':'api.taxrates.io', 'country_code':'IE', 'product_code':'C010'};\n var taxrates_url = '/api/v1/';\n if ( localStorage.getItem(\"Taxrates_API_Client_Secret\") ){\n jQuery.support.cors = true;\n jQuery.ajax({\n url: taxrates_url+taxrates_endpoint,\n type: 'get',\n method: 'get',\n dataType: \"json\",\n data: taxrates_params,\n beforeSend: function (request) {\n request.withCredentials = true;\n request.setRequestHeader(\"Authorization\", \"Apikey \" + localStorage.getItem(\"Taxrates_API_Client_Secret\"));\n },\n headers: {\n \"accept\": \"application/json\"\n },\n contentType: 'application/json; charset=utf-8',\n success: function (data) {\n //Maintain errors inside success because the API may return 200 in general, but different code inside\n if(data.ErrorCode=='404' || data.ErrorCode=='500'){\n //Maintain errors here\n console.log(data.ErrorMessage);\n return false;\n }else{\n var rates = [];\n var i=0;\n jQuery.each(data, function(k, v) {\n if(v.hasOwnProperty(\"taxes\")){\n jQuery.each(v.taxes, function(m, w) {\n rates[i] = [];\n //Only showing standard rate type\n if( w.Type == \"standard\" ){\n rates[i][0] = w.Country;\n rates[i][1] = w.Type;\n rates[i][2] = w.data_value;\n i++;\n }\n });\n }\n //Now you have all your rates inside rates variable.\n }).fail(function(xhr) {\n //Maintain your errors here\n return false;\n });\n return true;\n }else{\n //Not logged into taxrates.io\n //Maintain your errors here\n return false;\n }</code></pre>\n","operationId":"taxRatesByCountryCode","parameters":[{"description":"Domain name: api.taxrates.io","in":"query","name":"domain","schema":{"example":"api.taxrates.io","type":"string"}},{"description":"Country code alpha 2","in":"query","name":"country_code","schema":{"example":"US","type":"string"}},{"description":"You can filter your taxes by one of following types: 'standard', 'reduced', 'second reduced', 'third reduced' and 'super reduced'.","in":"query","name":"filter","schema":{"example":"","type":"string"}},{"description":"You must provide a zip code if one of your selected countries is United States and you've had selected a state on your Taxrates.io member's dashboard.","in":"query","name":"zip","schema":{"example":"71642","type":"string"}},{"description":"Use one or many product code/s.","in":"query","name":"product_codes[]","schema":{"example":"C010","type":"string"}},{"description":"Use for Canada","in":"query","name":"province ","schema":{"example":"","type":"string"}},{"in":"query","name":"date","schema":{"example":"2025-04-15T13:50:54.955Z","type":"string"}}],"responses":{"200":{"content":{"application/json":{"examples":{"Success":{"value":{"country_name":"<string>","taxes":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}]}}},"schema":{"properties":{"country_name":{"example":"<string>","type":"string"},"taxes":{"example":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}],"items":{"properties":{"Country":{"example":"<string>","type":"string"},"Type":{"example":"<string>","type":"string"},"data_name":{"example":"<string>","type":"string"},"data_value":{"example":"<string>","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"Success"},"404":{"content":{"text/plain":{"examples":{"Country not found. Have you provided correct alpha-2 country code?":{"value":""}}}},"description":"Country not found. Have you provided correct alpha-2 country code?"},"500":{"content":{"application/json":{"examples":{"Unexpected error":{"value":{"code":"<integer>","fields":"<string>","message":"<string>"}}},"schema":{"properties":{"code":{"example":"<integer>","type":"string"},"fields":{"example":"<string>","type":"string"},"message":{"example":"<string>","type":"string"}},"type":"object"}}},"description":"Unexpected error"}},"summary":"Tax rates by Country Code","tags":["v1/tax"]}},"/v1/tax/ip":{"get":{"description":"Get request. This method returns all tax rates for country discovered on either your IP address or IP address param. The IP param is not required. When empty, the taxrates.io will try to discover your IP address and based on this will retrieve the tax rates. You can use 'filter' parameter to narrow results to selected type of tax\n<p>For US sales tax you can filter the tax rate you want for each state or zip code with one of the following: (they are case sensitive)</p>\n<ul>\n <li>CombinedRate</li>\n <li>StateRate</li>\n <li>CountyRate</li>\n <li>CityRate</li>\n <li>SpecialRate</li>\n</ul>\n<pre><code class=\"js\">var taxrates_endpoint = 'tax/ip';\n var taxrates_params = {'domain':'api.taxrates.io', 'ip':'208.80.152.201', 'product_code':'C010'};\n var taxrates_url = '/api/v1/';\n if ( localStorage.getItem(\"Taxrates_API_Client_Secret\") ){\n jQuery.support.cors = true;\n jQuery.ajax({\n url: taxrates_url+taxrates_endpoint,\n type: 'get',\n method: 'get',\n dataType: \"json\",\n data: taxrates_params,\n beforeSend: function (request) {\n request.withCredentials = true;\n request.setRequestHeader(\"Authorization\", \"Apikey \" + localStorage.getItem(\"Taxrates_API_Client_Secret\"));\n },\n headers: {\n \"accept\": \"application/json\"\n },\n contentType: 'application/json; charset=utf-8',\n success: function (data) {\n //Maintain errors inside success because the API may return 200 in general, but different code inside\n if(data.ErrorCode=='404' || data.ErrorCode=='500'){\n //Maintain errors here\n console.log(data.ErrorMessage);\n return false;\n }else{\n var rates = [];\n var i=0;\n jQuery.each(data, function(k, v) {\n if(v.hasOwnProperty(\"taxes\")){\n jQuery.each(v.taxes, function(m, w) {\n rates[i] = [];\n //Only showing standard rate type\n if( w.Type == \"standard\" ){\n rates[i][0] = w.Country;\n rates[i][1] = w.Type;\n rates[i][2] = w.data_value;\n i++;\n }\n });\n }\n //Now you have all your rates inside rates variable.\n }).fail(function(xhr) {\n //Maintain your errors here\n return false;\n });\n return true;\n }else{\n //Not logged into taxrates.io\n //Maintain your errors here\n return false;\n }</code></pre>\n","operationId":"taxRatesByIpAddress","parameters":[{"description":"Domain name: api.taxrates.io","in":"query","name":"domain","schema":{"example":"api.taxrates.io","type":"string"}},{"description":"Customer's IP address","in":"query","name":"ip","schema":{"example":"86.139.70.49","type":"string"}},{"description":"For US sales tax you can filter the tax type","in":"query","name":"filter","schema":{"example":"","type":"string"}},{"description":"For US sales tax a Zipcode must be proivded","in":"query","name":"zip","schema":{"example":"","type":"string"}},{"description":"Your can filter your taxes by product code","in":"query","name":"product_code","schema":{"example":"C010","type":"string"}}],"responses":{"200":{"content":{"application/json":{"examples":{"An array of tax rates for VAT, GST & TAX":{"value":[{"country_name":"<string>","taxes":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}]},{"country_name":"<string>","taxes":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}]}]}},"schema":{"example":[{"country_name":"<string>","taxes":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}]},{"country_name":"<string>","taxes":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}]}],"items":{"properties":{"country_name":{"example":"<string>","type":"string"},"taxes":{"example":[{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"},{"Country":"<string>","Type":"<string>","data_name":"<string>","data_value":"<string>"}],"items":{"properties":{"Country":{"example":"<string>","type":"string"},"Type":{"example":"<string>","type":"string"},"data_name":{"example":"<string>","type":"string"},"data_value":{"example":"<string>","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"type":"array"}}},"description":"An array of tax rates for VAT, GST & TAX"},"404":{"content":{"text/plain":{"examples":{"Geolocation can not be processed/No matching country found":{"value":""}}}},"description":"Geolocation can not be processed/No matching country found"},"500":{"content":{"application/json":{"examples":{"Unexpected error":{"value":{"code":"<integer>","fields":"<string>","message":"<string>"}}},"schema":{"properties":{"code":{"example":"<integer>","type":"string"},"fields":{"example":"<string>","type":"string"},"message":{"example":"<string>","type":"string"}},"type":"object"}}},"description":"Unexpected error"}},"summary":"Tax rates by IP address","tags":["v1/tax"]}},"/v3/tax/rates":{"get":{"description":"<p>Get request. This method returns all tax rates configured on your account. Based on your country selection the endpoint will return all taxes for all countries. You can use the 'filter' parameter to narrow results to selected type of tax. Use 'zip' parameter when you have selected the United States.</p>\n<p>We have development an easy to use scheduler so you can call the API to get the rates every hour or day. Please click on the following link to see the <a href=\"https://gist.github.com/gregbird/cd904ff230cdf86253716aa351154edb\">code on Github</a>.</p>\n<p><b>Please note</b> in cases when a US state doesn't have sales tax and when a product is tax exempt for a zip code or for a state the API response will be \"null\"</p>\n<p>To get a response you need to have selected a product code in your Taxrates.io dashboard, please see the Introduction section above for description of the different types of product codes.</p>\n<p>For US sales tax you can filter the tax rate you want for each state or zip code with one of the following: (they are case sensitive)</p>\n<ul>\n <li>CombinedRate</li>\n <li>StateRate</li>\n <li>CountyRate</li>\n <li>CityRate</li>\n <li>SpecialRate</li>\n</ul>\n<pre><code class=\"js\">\n var taxrates_endpoint = 'tax/rates';\n var taxrates_params = {'domain':'api.taxrates.io'};\n var taxrates_url = '/api/v3/';\n if ( localStorage.getItem(\"Taxrates_API_Client_Secret\") ){\n jQuery.support.cors = true;\n jQuery.ajax({\n url: taxrates_url+taxrates_endpoint,\n type: 'get',\n method: 'get',\n dataType: \"json\",\n data: taxrates_params,\n beforeSend: function (request) {\n request.withCredentials = true;\n request.setRequestHeader(\"Authorization\", \"Apikey \" + localStorage.getItem(\"Taxrates_API_Client_Secret\"));\n },\n headers: {\n \"accept\": \"application/json\"\n },\n contentType: 'application/json; charset=utf-8',\n success: function (data, textStatus, jqXHR) {\n //Maintain errors inside success because the API may return 200 in general, but different code inside\n if(data.ErrorCode=='404' || data.ErrorCode=='500'){\n //Maintain errors here\n console.log(data.ErrorMessage);\n return false;\n }else{\n var rates = [];\n var i=0;\n var taxrates_range = '';\n jQuery.each(data, function(k, v) {\n if(v.hasOwnProperty(\"rates\")){\n jQuery.each(v.rates, function(m, w) {\n rates[i] = [];\n //Only showing standard rate type\n if( w.Type == \"standard\" ){\n rates[i][0] = w.Type;\n rates[i][1] = w.data_value;\n rates[i][2] = w.product_code;\n i++;\n }\n });\n }\n }).fail(function(xhr) {\n //Maintain your errors here\n return false;\n });\n var cursor = jqXHR.getResponseHeader('X-Cursor-Next');\n if (cursor) {\n // get next page...\n }\n return true;\n }else{\n //Not logged into taxrates.io\n //Maintain your errors here\n return false;\n }</code></pre>\n","operationId":"allTaxRates","parameters":[{"description":"Domain name: api.taxrates.io","in":"query","name":"domain","schema":{"example":"<string>","type":"string"}},{"description":"You can filter your taxes by one of following types: 'standard', 'CombinedRate', 'CountyRate', 'CityRate', 'SPDRate' and 'MTARate'.","in":"query","name":"filter","schema":{"example":"","type":"string"}},{"description":"Cursor shows from which record you want to get information. Default value is 0, next value can be retrieved from X-Cursor-Next header.","in":"query","name":"cursor","schema":{"example":"","type":"string"}},{"in":"query","name":"Product_code","schema":{"example":"C012","type":"string"}}],"responses":{"200":{"content":{"application/json":{"examples":{"An array of locations with tax rates":{"value":[{"id":"<integer>","name":"<string>","rates":[{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"},{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"}],"state":"<string>","zip":"<string>"},{"id":"<integer>","name":"<string>","rates":[{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"},{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"}],"state":"<string>","zip":"<string>"}]}},"schema":{"example":[{"id":"<integer>","name":"<string>","rates":[{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"},{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"}],"state":"<string>","zip":"<string>"},{"id":"<integer>","name":"<string>","rates":[{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"},{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"}],"state":"<string>","zip":"<string>"}],"items":{"properties":{"id":{"example":"<integer>","type":"string"},"name":{"example":"<string>","type":"string"},"rates":{"example":[{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"},{"data_name":"<string>","data_value":"<string>","product_code":"<string>","type":"<string>"}],"items":{"properties":{"data_name":{"example":"<string>","type":"string"},"data_value":{"example":"<string>","type":"string"},"product_code":{"example":"<string>","type":"string"},"type":{"example":"<string>","type":"string"}},"type":"object"},"type":"array"},"state":{"example":"<string>","type":"string"},"zip":{"example":"<string>","type":"string"}},"type":"object"},"type":"array"}}},"description":"An array of locations with tax rates"},"404":{"content":{"text/plain":{"examples":{"No configured tax rates found. Have you added any country to your account?":{"value":""}}}},"description":"No configured tax rates found. Have you added any country to your account?"},"500":{"content":{"application/json":{"examples":{"Unexpected error":{"value":{"code":"<integer>","fields":"<string>","message":"<string>"}}},"schema":{"properties":{"code":{"example":"<integer>","type":"string"},"fields":{"example":"<string>","type":"string"},"message":{"example":"<string>","type":"string"}},"type":"object"}}},"description":"Unexpected error"}},"summary":"All tax rates","tags":["v3/tax"]}}}}