文档中心 > API类目 > 新零售供应链API

alibaba.ascp.uop.self.supplier.waybill.query (商家仓自营配电子面单取号)

ERP调用打印面单取号接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
waybill_query_request Waybillqueryrequest 可选 查询面单请求参数
  • └ operator
  • String
  • 可选
  • 1111
  • 操作人id
  • └ operator_name
  • String
  • 可选
  • 李四
  • 操作人名称
  • └ supplier_id
  • String
  • 必须
  • 11121
  • 供应商id
  • └ service_code
  • String
  • 可选
  • 1234
  • 物流服务编码
  • └ consign_lp_order_code
  • String
  • 必须
  • LP1001
  • 发货LP单号
  • packages
  • WaybillQueryRequestData []
  • 必须
  • 包裹列表
  • └ code
  • String
  • 必须
  • 1111
  • 包裹code,同一个订单唯一,同一个lp单号多次或同一次传重复的包裹号会被幂等
  • └ description
  • String
  • 可选
  • 111
  • 包裹描述信息
  • └ total_package_count
  • String
  • 可选
  • 1
  • 子包裹数,在快运取号场景可能会用到
  • └ weight
  • String
  • 可选
  • 1
  • 包裹重量,单位克
  • └ volume
  • String
  • 可选
  • 1
  • 包裹体积,单位立方厘米
  • └ length
  • String
  • 可选
  • 1
  • 长,单位mm
  • └ width
  • String
  • 可选
  • 1
  • 宽,单位mm
  • └ height
  • String
  • 可选
  • 1
  • 高,单位mm
  • items
  • WaybillQueryPackageItem []
  • 可选
  • 商品信息
  • └ item_name
  • String
  • 可选
  • aaa
  • 商品名称
  • └ item_code
  • String
  • 必须
  • 123
  • 商品code
  • └ item_count
  • String
  • 必须
  • 1
  • 商品数量
  • └ business_model
  • String
  • 可选
  • 1
  • 自营接口配业务模式,默认为1代表商家仓自营配 (为1时会强制校验发货的配CP和单号必须与取号时一致,且多包裹必须一次性发货)

响应参数

名称 类型 示例值 描述
waybill_query_response ResultWrapper 返回值包装,result为返回具体消息内容
  • └ error_code
  • String
  • 500
  • 系统自动生成
  • └ error_message
  • String
  • error
  • 系统自动生成
  • └ success
  • Boolean
  • true
  • 返回是否成功
  • data
  • WaybillQueryResponseData
  • obj
  • data对象
  • └ cp_res_code
  • String
  • 111
  • 配资源code
  • └ cp_res_name
  • String
  • aaa
  • 配资源名称
  • └ cp_brand_code
  • String
  • aaa
  • 配资源品牌code
  • └ logistics_company
  • String
  • 111
  • 物流公司名称
  • waybill_cloud_print_dto_list
  • WaybillCloudPrintDTO []
  • 电子面单信息
  • └ package_code
  • String
  • aaa
  • 对应传入的packageCode
  • └ waybill_code
  • String
  • aaa
  • 面单号
  • └ parent_waybill_code
  • String
  • aaa
  • 父面单号 本次没有,为子母单预留
  • └ print_data
  • String
  • aaa
  • 面单信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpUopSelfSupplierWaybillQueryRequest req = new AlibabaAscpUopSelfSupplierWaybillQueryRequest();
AlibabaAscpUopSelfSupplierWaybillQueryRequest.Waybillqueryrequest obj1 = new AlibabaAscpUopSelfSupplierWaybillQueryRequest.Waybillqueryrequest();
obj1.setOperator("1111");
obj1.setOperatorName("李四");
obj1.setSupplierId("11121");
obj1.setServiceCode("1234");
obj1.setConsignLpOrderCode("LP1001");
List<AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryRequestData> list3 = new ArrayList<AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryRequestData>();
AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryRequestData obj4 = new AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryRequestData();
list3.add(obj4);
obj4.setCode("1111");
obj4.setDescription("111");
obj4.setTotalPackageCount("1");
obj4.setWeight("1");
obj4.setVolume("1");
obj4.setLength("1");
obj4.setWidth("1");
obj4.setHeight("1");
List<AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryPackageItem> list7 = new ArrayList<AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryPackageItem>();
AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryPackageItem obj8 = new AlibabaAscpUopSelfSupplierWaybillQueryRequest.WaybillQueryPackageItem();
list7.add(obj8);
obj8.setItemName("aaa");
obj8.setItemCode("123");
obj8.setItemCount("1");
list5.setItems(list7);
obj1.setPackages(list3);
obj1.setBusinessModel("1");
req.setWaybillQueryRequest(obj1);
AlibabaAscpUopSelfSupplierWaybillQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_uop_self_supplier_waybill_query_response>
    <waybill_query_response>
        <error_code>500</error_code>
        <error_message>error</error_message>
        <success>true</success>
        <data>
            <cp_res_code>111</cp_res_code>
            <cp_res_name>aaa</cp_res_name>
            <cp_brand_code>aaa</cp_brand_code>
            <logistics_company>111</logistics_company>
            <waybill_cloud_print_dto_list>
                <waybill_cloud_print_d_t_o>
                    <package_code>aaa</package_code>
                    <waybill_code>aaa</waybill_code>
                    <parent_waybill_code>aaa</parent_waybill_code>
                    <print_data>aaa</print_data>
                </waybill_cloud_print_d_t_o>
            </waybill_cloud_print_dto_list>
        </data>
    </waybill_query_response>
</alibaba_ascp_uop_self_supplier_waybill_query_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

返回
顶部