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

taobao.wlb.waybill.i.print (打印确认接口v1.0)

打印面单前的校验接口,判断面单号信息与订单信息是否匹配。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
waybill_apply_print_check_request WaybillApplyPrintCheckRequest 必须 打印请求
  • └ cp_code
  • String
  • 必须
  • HTKY
  • 物流服务商Code
  • print_check_info_cols
  • PrintCheckInfo []
  • 必须
  • 面单详情信息
  • consignee_address
  • WaybillAddress
  • 必须
  • 收\发货地址
  • └ address_detail
  • String
  • 必须
  • 朝阳路高井,财满街,财经中心9号楼21单元6013
  • 详细地址
  • └ area
  • String
  • 可选
  • 朝阳区
  • 区名称(三级地址)
  • └ city
  • String
  • 可选
  • 北京市
  • 市名称(二级地址)
  • └ division_id
  • Number
  • 可选
  • 123
  • 末级地址
  • └ province
  • String
  • 必须
  • 北京
  • 省名称(一级地址)
  • └ town
  • String
  • 可选
  • 八里庄
  • 街道\镇名称(四级地址)
  • └ consignee_branch_code
  • String
  • 可选
  • 12321
  • 收货网点编码
  • └ consignee_branch_name
  • String
  • 可选
  • 一网点
  • 收货网点信息
  • └ consignee_name
  • String
  • 必须
  • 张三
  • 收件人姓名
  • └ consignee_phone
  • String
  • 必须
  • 13264528362
  • consigneePhone
  • logistics_service_list
  • LogisticsService []
  • 可选
  • 物流服务能力集合
  • └ service_code
  • String
  • 可选
  • SVC-DELIVERY-ENV
  • 服务编码
  • └ service_value4_json
  • String
  • 可选
  • { "value": "100.00","currency": "CNY","ensure_type": "0"}
  • 服务类型值,json格式表示
  • └ package_center_code
  • String
  • 可选
  • 123456
  • 集包地、目的地中心代码。打 印时根据该 code 生成目的地 中心的条码,条码生成的算法 与对应的电子面单条码一致
  • └ package_center_name
  • String
  • 可选
  • 浙江杭州
  • 集包地、目的地中心名称
  • └ print_config
  • String
  • 可选
  • DSFASFDASFDSAFDSAFA
  • 打标设置字段,直接传给ali-lodop。不用管具体含义。
  • └ product_type
  • String
  • 可选
  • STANDARD_EXPRESS
  • 快递服务产品类型编码
  • └ send_name
  • String
  • 可选
  • 李四
  • 发件人姓名
  • └ send_phone
  • String
  • 可选
  • 12312312311
  • 发件人联系方式
  • shipping_address
  • WaybillAddress
  • 必须
  • 收\发货地址
  • └ address_detail
  • String
  • 必须
  • 朝阳路高井,财满街,财经中心9号楼21单元6013
  • 详细地址
  • └ area
  • String
  • 可选
  • 朝阳区
  • 区名称(三级地址)
  • └ city
  • String
  • 可选
  • 北京市
  • 市名称(二级地址)
  • └ division_id
  • Number
  • 可选
  • 123
  • 末级地址
  • └ province
  • String
  • 必须
  • 北京
  • 省名称(一级地址)
  • └ town
  • String
  • 可选
  • 八里庄
  • 街道\镇名称(四级地址)
  • └ shipping_branch_code
  • String
  • 可选
  • 2323
  • 发货网点编码
  • └ shipping_branch_name
  • String
  • 可选
  • 二网点
  • 发货网点信息
  • └ short_address
  • String
  • 可选
  • 余杭
  • 拣货规则(大头笔信息)
  • └ real_user_id
  • Number
  • 可选
  • 123
  • 使用者ID
  • └ volume
  • Number
  • 可选
  • 123
  • 包裹体积 单位为ML(毫升)或立方厘米
  • └ waybill_code
  • String
  • 必须
  • 132121
  • 电子面单单号
  • └ weight
  • Number
  • 可选
  • 123
  • 包裹重量 单位为G(克)

响应参数

名称 类型 示例值 描述
waybill_apply_print_check_infos WaybillApplyPrintCheckInfo [] 面单打印信息
  • └ notice_code
  • String
  • detail status picked up or signed
  • 打印提示信息编码
  • └ notice_message
  • String
  • 面单已经揽收或揽收,此面单属于重复打印
  • 打印提示信息
  • └ print_quantity
  • Number
  • 123
  • 打印次数
  • └ waybill_code
  • String
  • 123123213
  • 电子面单号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WlbWaybillIPrintRequest req = new WlbWaybillIPrintRequest();
WlbWaybillIPrintRequest.WaybillApplyPrintCheckRequest obj1 = new WlbWaybillIPrintRequest.WaybillApplyPrintCheckRequest();
obj1.setCpCode("HTKY");
List<WlbWaybillIPrintRequest.PrintCheckInfo> list3 = new ArrayList<WlbWaybillIPrintRequest.PrintCheckInfo>();
WlbWaybillIPrintRequest.PrintCheckInfo obj4 = new WlbWaybillIPrintRequest.PrintCheckInfo();
list3.add(obj4);
WlbWaybillIPrintRequest.WaybillAddress obj6 = new WlbWaybillIPrintRequest.WaybillAddress();
obj6.setAddressDetail("朝阳路高井,财满街,财经中心9号楼21单元6013");
obj6.setArea("朝阳区");
obj6.setCity("北京市");
obj6.setDivisionId(123L);
obj6.setProvince("北京");
obj6.setTown("八里庄");
list5.setConsigneeAddress(obj6);
obj4.setConsigneeBranchCode("12321");
obj4.setConsigneeBranchName("一网点");
obj4.setConsigneeName("张三");
obj4.setConsigneePhone("13264528362");
List<WlbWaybillIPrintRequest.LogisticsService> list9 = new ArrayList<WlbWaybillIPrintRequest.LogisticsService>();
WlbWaybillIPrintRequest.LogisticsService obj10 = new WlbWaybillIPrintRequest.LogisticsService();
list9.add(obj10);
obj10.setServiceCode("SVC-DELIVERY-ENV");
obj10.setServiceValue4Json("{ \"value\": \"100.00\",\"currency\": \"CNY\",\"ensure_type\": \"0\"}");
list7.setLogisticsServiceList(list9);
obj4.setPackageCenterCode("123456");
obj4.setPackageCenterName("浙江杭州");
obj4.setPrintConfig("DSFASFDASFDSAFDSAFA");
obj4.setProductType("STANDARD_EXPRESS");
obj4.setSendName("李四");
obj4.setSendPhone("12312312311");
WlbWaybillIPrintRequest.WaybillAddress obj12 = new WlbWaybillIPrintRequest.WaybillAddress();
obj12.setAddressDetail("朝阳路高井,财满街,财经中心9号楼21单元6013");
obj12.setArea("朝阳区");
obj12.setCity("北京市");
obj12.setDivisionId(123L);
obj12.setProvince("北京");
obj12.setTown("八里庄");
list11.setShippingAddress(obj12);
obj4.setShippingBranchCode("2323");
obj4.setShippingBranchName("二网点");
obj4.setShortAddress("余杭");
obj4.setRealUserId(123L);
obj4.setVolume(123L);
obj4.setWaybillCode("132121");
obj4.setWeight(123L);
obj1.setPrintCheckInfoCols(list3);
req.setWaybillApplyPrintCheckRequest(obj1);
WlbWaybillIPrintResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wlb_waybill_i_print_response>
    <waybill_apply_print_check_infos>
        <waybill_apply_print_check_info>
            <notice_code>detail status picked up or signed</notice_code>
            <notice_message>面单已经揽收或揽收,此面单属于重复打印</notice_message>
            <print_quantity>123</print_quantity>
            <waybill_code>123123213</waybill_code>
        </waybill_apply_print_check_info>
    </waybill_apply_print_check_infos>
</wlb_waybill_i_print_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

返回
顶部