用 UPS 费率 API 表示居住地址

Indicate residential address with UPS Rate API

如何表明货件是发往具有 UPS 费率 API 的居住地址?我想获得与 UPS 网站计算器相同的价格 https://wwwapps.ups.com/ctc

我都试过了:

<ns2:ResidentialAddressIndicator></ns2:ResidentialAddressIndicator>

 <ResidentialAddressIndicator></ResidentialAddressIndicator>

并尝试将它们都作为兄弟姐妹和 child 到

<ns2:ShipTo>

这是我用 API 下载的 "Rating Package - Web Services Developers Guide.pdf"。 (他们下载的示例 XML 请求已过时,我不得不写信来支持并获得新的示例 XML 请求文件。所以也许其他东西也已过时?)

响应始终与商业价格相符,如 UPS 网站上所示。我认为我的其他设置是正确的,因为价格与网站的商业价格相符(不是完全不同的东西)。

请注意,这个答案 How do I specify if the shipment is Residential in UPS API? 已有 5 年历史了,ow 给出了一个错误。

标签需要再向下一层并嵌套在地址标签中:

<ns2:Address>
   ...
   <ns2:ResidentialAddressIndicator></ns2:ResidentialAddressIndicator>

如果您传递的是完整地址(为了获得准确的评级,您应该这样做),UPS 评级 API 将自动对货件重新评级,而不管住宅指标值如何。您将收到警告回复以及表明已重新分类的费率。