Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.05 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.05 KB

Etalify.SalesTax

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.

Configuration

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>

Example

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
}