valeriansaliou / node-sales-tax

:moneybag: International sales tax calculator for Node (offline, but provides optional online VAT number fraud check). Tax rates are kept up-to-date.
https://www.npmjs.com/package/sales-tax
MIT License
306 stars 48 forks source link

Zip Code-dependant tax rates (ie. US sales tax rates vary per-city in some states) #21

Open jsgphd opened 4 years ago

jsgphd commented 4 years ago

Hi, thank you for all your effort! A questions...

In Philadelphia the sales tax rate is 8%, Pittsburgh it is 7%, and most of PA it is only 6%. Is there a way you can address this with zipcode lookups? I am sure some other states have this city vs non-city difference too, I just happen to know PA.

Thank you, Jason

dtfinch commented 4 years ago

I only have experience with California and Washington, but they're messy like that too. Rates aren't even clearly defined by cities or zip codes (many cities are split into incorporated/unincorporated regions), so we have supply the full street address to their lookup services.

valeriansaliou commented 4 years ago

Hello there! As this library was built for our needs at Crisp to process VAT down to the country level (not region or city level), it's not been included. Still, I accept PRs on this :)