开发者

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

开发者 https://www.devze.com 2022-12-24 16:24 出处:网络
I\'m using UPS api(JSON) refer from the ups.com developer kit. 1)I need shipment rating list with \"Residential Shipment\".

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

精彩评论

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

关注公众号