#iam2327_code

1 messages · Page 1 of 1 (latest)

floral raptorBOT
#

👋 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/1230170313967271956

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

severe pecanBOT
heady sapphire
#

value of this variable "address.province" is 'ON'

hollow iris
#

Ah, that error is a bit confusingly worded but basically the API is expecting you to pass in another parameter named province_standard and that parameter takes an object of this shape https://docs.stripe.com/api/tax/registrations/create#tax_registration_create-country_options-ca-province_standard

heady sapphire
#

let me try that

#

Now I am getting this:
Request req_euBhGgLJ2T6AZv: Province 'ON' has no Sales Tax.
with this payload:
{'country': 'CA', 'country_options': {'ca': {'type': 'province_standard', 'province_standard': {'province': 'ON'}}}, 'active_from': 'now'}

is this correct with this province or I am not doing it the right way

hollow iris
#

@heady sapphire really sorry for missing your followup. Your API call looks fine as far as I can see. I will consult my colleagues on this and get back to you

heady sapphire
#

Yeah no worries, till now what I think is it's not working for Ontario there might be something with this province but it is working fine for other provinces not sure for how many but for now I have added an exception to handle such scenario but your guide will be really appreciated thanks for the help really appreciated☺️

hollow iris
#

Ah so it looks like Ontario's sales tax is HST, which would be one of the other two options

#

Can you try with one of those values and see if it works here?

severe pecanBOT