- Issue created by @rhovland
- πΊπΈUnited States rhovland Oregon
Still cannot find a list of two letter codes anywhere. The ISO documents are all 2-3 letter codes. Fedex publishes some but not all at https://developer.fedex.com/api/en-us/guides/api-reference.html#canadapr...
- πΊπΈUnited States rhovland Oregon
There doesn't seem to be a problem truncating codes to 2 characters as a fallback
$fedex_rest_address->setStateOrProvince($address->getAdministrativeArea())
to
$fedex_rest_address->setStateOrProvince(substr($address->getAdministrativeArea(),0,2))
- πΊπΈUnited States rhovland Oregon
So I got in contact with the API team and they told me that state code is required for US, CA, PR and not required for other countries. The field can just be left blank if it's not one of the countries that require it.