#sai_invoice-tax
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/1293236077729153158
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Thanks @lofty olive
Looks like your address isn't valid.
You have city: Texas
and an incomplete postal code
Try fixing that stuff and let me know if you still see requires_location_inputs
Ah yes my mistake on the postal code, but regarding the city is Texas not a valid value?
No... that would be state
Haha sorry my geography of America isn't great as you can see, will try again!
And to be clear, even in Test mode, we require real information to calculate tax. As the developer you need to make sure you look up reasonable examples that map to realistic customers you could have.
What I usually do is look for the address of a Starbucks or a Mc Donald's since they are in so many cities/countries
That's a good tip thanks! And just to double check, the minimal address for the US is country and postal code correct?
yes though we recommend collecting the full address, see https://docs.stripe.com/tax/customer-locations
Okay, I just tried again and I am still getting the same response, let me get you the request id
req_9a1xTvGRuYyZ7v
Address is for a starbucks in Austin
Okay do you know much about Texas? There are really complex tax logic all around the US and Texas is well known to have complex tax logic and you need to have the right tax product code, etc.
Are you mostly just guessing and putting fake data even for your product tax code?
No, so I can see under registrations we've got Texas registered so I guessed postal code should be sufficient for it to work. I tested previously with an IP address in Texas and I do get tax calculated so I just wanted to test with more accurate information to see if the invoice is calculating tax correctly.
Can you create a real Invoice instead of a preview and finalize it so I can have a look?
I'm currently using test mode, do you mean to create a customer/subscription etc.. then create an invoice through dashboard?
๐
Use your API key to create a Customer and a real Invoice in Test mode. It doesn't matter if it's a Subscription or a one-off Invoice. Preferably write real code to be able to repeat this multiple times instead of doing it by hand in the Dashboard. Or use whatever you're using to create that Invoice Preview.
Right is this okay? in_1Q7g8DKl7yri9QNLDG5Qra8q
I used the same address for the customer billing adress
okay so that one has real tax right?
Yes correct, it seems to be calculating correctly on the invoice
you're using a different Price between the 2 is that normal?