#mo-daniel_api
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1366759809432551425
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π
I have utilized Stripe Calculation API and passed county information. But it calculates the stripe tax rate by City and State not county
Yeah because there is a difference between one US State and another for Taxes
Yes, I am using the same state. This is my test case. 451 E Washington St, Chagrin Falls, OH 44022, USA and 493 E Washington St, Chagrin Falls, OH 44022, USA. The first address falls in Cuyahoga county, with an 8.0 % tax rate, the second address is in Geauga county with 6.75% tax rate. My Stripe Tax API is calculationg it based on state which makes it inaccurate. This is my code and relevant screen shots:
@willow tapir if you have an example of a calculation you feel is incorrect we can work on investigating that
aha, let me take a look
thanks
You are welcome
i can send my Calculate Tax rate function separately if the image text is too small
Do you have an example invoice or tax calculation request ID you can share?
from the first image, for example
the req_123 or taxcalc_456 id
ok, this one is for the second address you shared, 493
do you have one for 451 also?
Hi, are you there
yes, looking at multiple things
thanks
The first address falls in Cuyahoga county, with an 8.0 % tax rate, the second address is in Geauga county with 6.75% tax rate. My Stripe Tax API is calculationg it based on state which makes it inaccurate.
The tax calculation considers all parts of the customer location, inluding county. looking at our side here both of these customer locations map to cuyahoga county.
having looked at the code you shared i'm a bit confused about your expectations and the mismatch here. you seem to be doing your own location info lookup to and basing your tax expectations on that.
So 493 E Washington St, Chagrin Falls, OH 44022, USA is on the border of Geauga county, before adding the calculations using Google MAPs API , I used the Stripe location calculation directly but the CEO of my company tested it out and pointed it out to me
Our tax calculation has both in cuyahoga
This aligns with other county checks i've found, for example: https://geocodify.com/what-county-am-i-in
This a real world edge case π
NP!
If there's some public information that suggests the address is in fact considered to be in Geauga, please do write in to support with that example so we can review. I expect we depend on some specific GIS resource internally for this and would need to chase down any mis-attribution to the source data.
okay i will
As another resource, this OH gov statemap delineates counties and has 44022 in Cuyahoga
https://web.archive.org/web/20120402094059/http://www.puc.state.oh.us/pucogis/STATEMAP/zip2008.pdf
so i think addresses belonging to the other would be 44023 or some other zip
(but thats my own interpretation)