如何根据邮政编码获取税率
我正在构建一个自定义电子商务系统。如何根据邮政编码获取最新的税率?我想只创建一个表格并列出所有州税率,但问题是信息每年都会变化,可能很难跟踪和更新。 他们有我可以使用的 API 吗?顺便说一句,我使用 php,
购买产品时我需要明确的一件事是,税费仅适用于运输吗?或者它也需要应用于该项目?
那么总数是这样计算的吗?
产品:100 美元
运费(地面)4.75 美元
税(加拿大):5%
总计:104.99
i am building a custom ecommerce system. how do i get the most current tax rates based on the zipcode? i was thinking of just creating a table and listing all the state tax rates but the thing is the info changes yearly and it might be hard to track and update.
would their be any apis that i can use? btw im using php
the one thing i need to be clear in us when a product is purchased, is the taxes applied only for shipping? or it needs to be applied for the item as well?
so would the total be calculated like this?
product: $100
shipping(ground) $4.75
tax(ca): 5%
total: 104.99
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它比邮政编码和税率稍微复杂一些。查看 zip 2 税。税率还受到您销售的商品的影响。有些地方不对食品征收销售税。有些地方对“热”食物征税,但对带回家做饭的食物不征税。因此,杂货店对面条收取的税率与熟食店预煮鸡肉的税率不同。有些地方对垃圾食品征税——任何含糖量超过 X% 的食物。它可能因县而异。它可能会因位置而异,有些人在城市,而另一些人不在同一县的城市。
It is a little more complicated than just a zip code to a tax rate. Take a look at zip 2 tax. The tax rate is also effected by what you are selling. Some places do not place a sales tax on food. Some places tax "hot" food but not food that you take home to cook. So a grocery store will charge a tax rate for noodles that is different than a pre-cooked chicken from the Deli. Some places have a tax on junk food - any food that is more than X % sugar. It can vary by county. It can vary by location where some people are in a city and other are not in the city in the same county.
尝试此服务
http://dor.wa.gov/Content/FindTaxesAndRates /RetailSalesTax/DestinationBased/ClientInterface.aspx
Try this service
http://dor.wa.gov/Content/FindTaxesAndRates/RetailSalesTax/DestinationBased/ClientInterface.aspx