taobao.wlb.import.threepl.resource.get (3PL直邮获取资源列表)

获取3pl直邮的发货可用资源

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
type String 必须 ONLINE ONLINE或者OFFLINE
from_id Number 必须 228 发货地区域id
to_address AddressDto 必须 收件人地址
  • └ county
  • String
  • 可选
  • 西湖区
  • 区级地址
  • └ province
  • String
  • 必须
  • 浙江省
  • 省级地址
  • └ town
  • String
  • 可选
  • 蒋村街道
  • 街道地址
  • └ detail_address
  • String
  • 可选
  • 浙江省杭州市西湖区蒋村街道200号
  • 详细地址
  • └ city
  • String
  • 可选
  • 杭州市
  • 市级地址
  • └ country
  • String
  • 必须
  • 中国
  • 国家地址

响应参数

名称 类型 示例值 描述
result TopResult result
  • resources
  • ThreePlConsignResourceDto []
  • 资源列表
  • └ broken_compensate_price
  • Number
  • 123.2
  • 破损赔付
  • └ basic_weight
  • Number
  • 123
  • 首重价格
  • └ delivery_time
  • Number
  • 123
  • 达成时效
  • └ step_weight
  • Number
  • 123
  • 续重价格
  • └ basic_weight_price
  • Number
  • 123
  • 首重价格
  • └ res_code
  • String
  • 123
  • 资源code
  • └ res_name
  • String
  • 123
  • 资源名称
  • └ achieving_rate
  • Number
  • 123.2
  • 达成率
  • └ step_weight_price
  • Number
  • 123.2
  • 续重价格
  • └ res_id
  • Number
  • 123
  • 配送资源id
  • └ missing_compensate_price
  • Number
  • 12.2
  • 丢失赔付价格
  • └ sub_error_msg
  • String
  • 错误信息
  • 错误信息
  • └ error_code
  • String
  • S_SYS_ERROR
  • 错误代码
  • └ sub_error_code
  • String
  • 错误code
  • 错误代码
  • └ error_msg
  • String
  • 错误信息
  • 错误信息
  • └ success
  • Boolean
  • false
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WlbImportThreeplResourceGetRequest req = new WlbImportThreeplResourceGetRequest();
req.setType("ONLINE");
req.setFromId(228L);
WlbImportThreeplResourceGetRequest.AddressDto obj1 = new WlbImportThreeplResourceGetRequest.AddressDto();
obj1.setCounty("西湖区");
obj1.setProvince("浙江省");
obj1.setTown("蒋村街道");
obj1.setDetailAddress("浙江省杭州市西湖区蒋村街道200号");
obj1.setCity("杭州市");
obj1.setCountry("中国");
req.setToAddress(obj1);
WlbImportThreeplResourceGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wlb_import_threepl_resource_get_response>
    <result>
        <resources>
            <three_pl_consign_resource_dto>
                <broken_compensate_price>123.2</broken_compensate_price>
                <basic_weight>123</basic_weight>
                <delivery_time>123</delivery_time>
                <step_weight>123</step_weight>
                <basic_weight_price>123</basic_weight_price>
                <res_code>123</res_code>
                <res_name>123</res_name>
                <achieving_rate>123.2</achieving_rate>
                <step_weight_price>123.2</step_weight_price>
                <res_id>123</res_id>
                <missing_compensate_price>12.2</missing_compensate_price>
            </three_pl_consign_resource_dto>
        </resources>
        <sub_error_msg>错误信息</sub_error_msg>
        <error_code>S_SYS_ERROR</error_code>
        <sub_error_code>错误code</sub_error_code>
        <error_msg>错误信息</error_msg>
        <success>false</success>
    </result>
</wlb_import_threepl_resource_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部