#sai_invoice-tax

1 messages ยท Page 1 of 1 (latest)

upbeat dustBOT
#

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

lofty olive
#

Hello

#

Taking a look

junior kayak
#

Thanks @lofty olive

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

junior kayak
#

Ah yes my mistake on the postal code, but regarding the city is Texas not a valid value?

lofty olive
#

No... that would be state

upbeat dustBOT
inner cipher
#

well Texas is more a rock band

#

sai_invoice-tax

junior kayak
#

Haha sorry my geography of America isn't great as you can see, will try again!

inner cipher
#

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

junior kayak
#

That's a good tip thanks! And just to double check, the minimal address for the US is country and postal code correct?

inner cipher
junior kayak
#

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

inner cipher
#

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?

junior kayak
#

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.

inner cipher
#

Can you create a real Invoice instead of a preview and finalize it so I can have a look?

junior kayak
#

I'm currently using test mode, do you mean to create a customer/subscription etc.. then create an invoice through dashboard?

inner cipher
#

๐Ÿ˜…

#

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.

junior kayak
#

Right is this okay? in_1Q7g8DKl7yri9QNLDG5Qra8q

#

I used the same address for the customer billing adress

inner cipher
#

okay so that one has real tax right?

junior kayak
#

Yes correct, it seems to be calculating correctly on the invoice

inner cipher
#

you're using a different Price between the 2 is that normal?

junior kayak
#

No let me try again with the preview price

#

I'll have to take this up tomorrow, could I reopen the thread?