A microservice for looking up US sales tax rates from a street address. Uses the Washington State Sales Tax Library for WA rate lookups and TaxJar for out of state lookups.
Out of WA state sales tax rate lookups make use of TaxJar and therefore require a TaxJar API key.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<appSettings>
<add key="TaxService.Url" value="https://api.taxjar.com/v2/rates/" />
<add key="TaxService.ApiKey" value="" />
</appSettings>
</configuration>
Request
curl -X GET -H "Accept: application/json"
"http://localhost:1337/rates?street=1225%204th%20Ave&city=Seattle&state=WA&zip=98101"
Response
{
"locationCode": "1726",
"locationName": "SEATTLE",
"totalRate": 0.096
}