USPS没有为这39个国家/地区返回正确的运费

时间:2016-07-21 18:38:56

标签: usps

我正在尝试通过USPS api处理国际运输请求。

我发现这36个国家(?)没有退回运费。 事实上,我似乎无法找到USPS航运api接受的一个体面的国家名单,总有国家返回错误。

我尝试了https://www.iso.org/obp/ui/#search

有什么想法吗?

connection = pyodbc.connect(r'DRIVER={SQL Server};SERVER=ServerName;database=DatabaseName;Trusted_Connection=True;unicode_results=True')

在删除括号时我做了另一个国家/地区列表,并提出了失败国家/地区的列表:

Object {country: "Åland Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "American Samoa", shipping_price: false, cart: Object}
products.js:195 Object {country: "Antarctica", shipping_price: false, cart: Object}
products.js:195 Object {country: "Bonaire, Saint Eustatius and Saba", shipping_price: false, cart: Object}
products.js:195 Object {country: "Bouvet Island", shipping_price: false, cart: Object}
products.js:195 Object {country: "British Indian Ocean Territory", shipping_price: false, cart: Object}
products.js:195 Object {country: "Congo, the Democratic Republic of the", shipping_price: false, cart: Object}
products.js:195 Object {country: "Côte d’Ivoire", shipping_price: false, cart: Object}
products.js:195 Object {country: "Cocos (Keeling) Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "French Southern Territories", shipping_price: false, cart: Object}
products.js:195 Object {country: "Heard Island and McDonald Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "Holy See (Vatican City State)", shipping_price: false, cart: Object}
products.js:195 Object {country: "Iran, Islamic Republic of", shipping_price: false, cart: Object}
products.js:195 Object {country: "Lao People’s Democratic Republic", shipping_price: false, cart: Object}
products.js:195 Object {country: "Libyan Arab Jamahiriya", shipping_price: false, cart: Object}
products.js:195 Object {country: "Macedonia, the former Yugoslav Republic of", shipping_price: false, cart: Object}
products.js:195 Object {country: "Micronesia, Federated States of", shipping_price: false, cart: Object}
products.js:195 Object {country: "Moldova, Republic of", shipping_price: false, cart: Object}
products.js:195 Object {country: "Marshall Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "Northern Mariana Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "Palestinian Territory, Occupied", shipping_price: false, cart: Object}
products.js:195 Object {country: "Russian Federation", shipping_price: false, cart: Object}
products.js:195 Object {country: "Saint Barthélemy", shipping_price: false, cart: Object}
products.js:195 Object {country: "Saint Martin (French part)", shipping_price: false, cart: Object}
products.js:195 Object {country: "Sint Maarten (Dutch part)", shipping_price: false, cart: Object}
products.js:195 Object {country: "Somalia", shipping_price: false, cart: Object}
products.js:195 Object {country: "Saint Helena, Ascension and Tristan da Cunha", shipping_price: false, cart: Object}
products.js:195 Object {country: "South Georgia and the South Sandwich Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "Svalbard and Jan Mayen", shipping_price: false, cart: Object}
products.js:195 Object {country: "Syrian Arab Republic", shipping_price: false, cart: Object}
products.js:195 Object {country: "Tanzania, United Republic of", shipping_price: false, cart: Object}
products.js:195 Object {country: "Taiwan, Province of China", shipping_price: false, cart: Object}
products.js:195 Object {country: "United States Minor Outlying Islands", shipping_price: false, cart: Object}
products.js:195 Object {country: "Virgin Islands, British", shipping_price: false, cart: Object}
products.js:195 Object {country: "Virgin Islands, U.S.", shipping_price: false, cart: Object}
products.js:195 Object {country: "Wallis and Futuna", shipping_price: false, cart: Object}
products.js:195 Object {country: "Western Sahara", shipping_price: false, cart: Object}
products.js:195 Object {country: "Yemen", shipping_price: false, cart: Object}
products.js:195 Object {country: "Venezuela, Bolivarian Republic of", shipping_price: false, cart: Object}

1 个答案:

答案 0 :(得分:0)

这是我找到的已接受的USPS区域设置名称的最佳列表。

您的列表中的许多条目都可以在此处找到正确的措辞。

一些(如斯瓦尔巴特群岛)不在名单上。

即使使用列出的名称形式,有些仍然会被破坏。

http://pe.usps.com/text/Imm/immctry.htm

<强>更新 如果您使用上面链接中的USPS名称,则以下内容仍然会失败(包括解决方法,如果有的话):

Cote d'Ivoire:替换&#34;'&#34;空间或使用&#34;象牙海岸&#34;

海峡群岛(泽西岛,根西岛,奥尔德尼岛和萨克岛)(英国和北爱尔兰):删除逗号&#34; Alderney&#34;或使用个别岛名

东帝汶(东帝汶):使用&#34;东帝汶&#34;或者&#34;东帝汶&#34;

几内亚比绍:用连字符替换n破折号

象牙海岸(科特迪瓦):见上文

韩国,民主人民共和国(朝鲜):使用&#34;朝鲜&#34;

此外,一些人(危地马拉,索马里,叙利亚,也门)将返回错误,解释说该国没有USPS服务。