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

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

问题描述

我正在使用ups.com开发人员工具包中的 UPS API (JSON).

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

1)我需要带有住宅货运"的货运等级列表. 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>中元素添加<住宅地址/> ;,则可以在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天全站免登陆