如何在 UPS API 中指定货件是否为住宅货件? [英] How do I specify if the shipment is Residential in UPS API?

查看:31
本文介绍了如何在 UPS API 中指定货件是否为住宅货件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是来自 ups.com 开发工具包的 UPS api(JSON).

I'm using UPS api(JSON) refer from the ups.com developer kit.

1)我需要带有Residential Shipment"的货件评级清单.2)我需要添加带有居住地址"的货件.

1)I need shipment rating list with "Residential Shipment". 2)I need Add shipment with "Residential Address".

我将 ResidentialAddressIndicator 添加为 ShipTo 地址中的 1.(我是从 UPS 文档中引用的.)但是失败了.

I am add ResidentialAddressIndicator as 1 in ShipTo address.(I am refer from UPS doc.) But it's failed.

2)示例代码:

...........
...........
 "ShipTo": {
    "Name": "Ship To Name",
    "AttentionName": "Ship To Attn Name",
    "Phone": {
      "Number": "1234567890"
    },
    "Address": {
      "AddressLine": "195 N main st",
      "City": "Sebastopol",
      "StateProvinceCode": "CA",
      "PostalCode": "95472",
      "CountryCode": "US",
      "ResidentialAddressIndicator":"1" //I am refer from UPS doc.        
    }       
  },
..........
..........

非常感谢您的回答!

推荐答案

在 <ShipTo>元素添加 <Residential Address/>,您可以在 UPS 提供的运输包裹 XML 开发人员指南中找到它.

in the <ShipTo> element add <Residential Address/>, you can find this in the Shipping Package XML Developers Guide that UPS provides.

这篇关于如何在 UPS API 中指定货件是否为住宅货件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆