ERP调用打印面单取号接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
waybill_query_request | Waybillqueryrequest | 可选 | 查询面单请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
waybill_query_response | ResultWrapper | 返回值包装,result为返回具体消息内容 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 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()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | < 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 > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|