开发者

How do I specify if the shipment is Residential in UPS API?

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

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

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

2)Sample code:

...........
...........
 "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",
      "ResidentialAddressIn开发者_开发知识库dicator":"1" //I am refer from UPS doc.        
    }       
  },
..........
..........

Your answers are highly appreciated!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜