#marcfowler

1 messages · Page 1 of 1 (latest)

snow sparrowBOT
craggy leaf
#

The IOS 3166-2 is not US-only, for example this wiki pages shows the codes for Canada https://en.wikipedia.org/wiki/ISO_3166-2:CA

ISO 3166-2:CA is the entry for Canada in ISO 3166-2, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), which defines codes for the names of the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1.
Currently for Canada, ISO 3166-2 codes are defined for 10 provi...

proud storm
#

Thanks for the reply @craggy leaf ! What do we do in the case of Australia where there's ACT, NSW etc? (https://en.wikipedia.org/wiki/ISO_3166-2:AU)

ISO 3166-2:AU is the entry for Australia in ISO 3166-2, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), which defines codes for the names of the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1.
Currently for Australia, ISO 3166-2 codes are defined for 6 ...

craggy leaf
#

I believe you've found codes? What's your concern on this page?

proud storm
#

When we send in a 3-character code to that field, we get an error that it must be at most 2 characters long

#

It looks like Canada has 2 character ones, but Australia has 3 character ones like NSW and ACT, and these return an error when we pass those through

#

So I just want to know how to handle this and make sure we pass through the appropriate info

craggy leaf
#

Can you share with me the request ID that you made with 3-character codes?

proud storm
#

Sorry, I don't have that to hand - I can submit another request if you bear with me for a few minutes!

craggy leaf
#

Don't worry. I just did a quick test and I can reproduce the same issue.

#

Thanks a lot for your feedback. I'll report this issue to the owning team.

proud storm
#

In the mean time, is there a negative to us excluding the 'state' field for non-US tax rates?

craggy leaf
#

The API still accept 2-letter state codes such as NT, WA and SA. So you can still apply state code for these states.

proud storm
#

But in the case of New South Wales for example in Australia, what should we provide there?

craggy leaf
#

You can ignore the state code in this case, and I don't think it would impact the tax calculation.

proud storm
#

And if we had 2 tax rates created, let's say both of them were for 10%, both for AU as the country, that shouldn't be a problem either so long as we refer to them by their txr_xyz ID when applying them?

craggy leaf
#

Yes you are right.

proud storm
#

Perfect

#

Thanks very much for your help, I really appreciate it 🙂

craggy leaf
#

No problem! happy to help.

proud storm
#

Cheers!