文档中心 > API类目 > 电子面单API

taobao.wlb.waybill.i.product (商家查询物流商产品类型接口)

商家可以查询物流商的产品类型和服务能力。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
waybill_product_type_request WaybillProductTypeRequest 必须 查询物流商电子面单产品类型入参
  • └ cp_code
  • String
  • 必须
  • ZTO
  • 物流商编码CODE

响应参数

名称 类型 示例值 描述
product_types WaybillProductType [] 产品类型返回
  • └ code
  • String
  • STANDARD_EXPRESS
  • 物流产品类型编码
  • └ name
  • String
  • 标准快递
  • 物流产品类型名称
  • service_types
  • WaybillServiceType []
  • 物流服务类型列表
  • └ code
  • String
  • SVC-COD
  • 物流服务能力编码
  • └ name
  • String
  • 货到付款
  • 物流服务能力名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WlbWaybillIProductRequest req = new WlbWaybillIProductRequest();
WlbWaybillIProductRequest.WaybillProductTypeRequest obj1 = new WlbWaybillIProductRequest.WaybillProductTypeRequest();
obj1.setCpCode("ZTO");
req.setWaybillProductTypeRequest(obj1);
WlbWaybillIProductResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wlb_waybill_i_product_response>
    <product_types>
        <waybill_product_type>
            <code>STANDARD_EXPRESS</code>
            <name>标准快递</name>
            <service_types>
                <waybill_service_type>
                    <code>SVC-COD</code>
                    <name>货到付款</name>
                </waybill_service_type>
            </service_types>
        </waybill_product_type>
    </product_types>
</wlb_waybill_i_product_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

返回
顶部