#mo-daniel_api

1 messages Β· Page 1 of 1 (latest)

unreal iglooBOT
#

πŸ‘‹ 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.

fast beacon
#

πŸ‘‹

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

unreal iglooBOT
willow tapir
#

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:

zealous mason
#

@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

willow tapir
#

You are welcome

#

i can send my Calculate Tax rate function separately if the image text is too small

zealous mason
#

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

willow tapir
#

yes

#

"id": "taxcalc_1RJDkhL4Apfo02MrnDOeHGuP",

#

req_f4h68byTJmyNes

zealous mason
#

ok, this one is for the second address you shared, 493

#

do you have one for 451 also?

willow tapir
#

yes

#

req_JprNxYrm8YbdXA

#

"taxcalc_1RJDN9L4Apfo02MrqMA7zdGo"

willow tapir
#

Hi, are you there

zealous mason
#

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.

willow tapir
#

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

zealous mason
#

Our tax calculation has both in cuyahoga

#

This a real world edge case πŸ˜„

willow tapir
#

Yes it isπŸ˜„

#

Thank you for clarifying, i will explain that to my boss

zealous mason
#

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.

willow tapir
#

okay i will

zealous mason
#

so i think addresses belonging to the other would be 44023 or some other zip

#

(but thats my own interpretation)

willow tapir
#

okay

#

thank you so much

#

You are right, 44022 it is directly in the boarder