查询一个协同单据的明细信息
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| ref_ent_id | String | 必须 | 123 | refEntId | |
| bill_code | String | 必须 | 单据号 | 单据号 | |
| license_token | String | 必须 | 1234567 | 获取licenseToken,通过alibaba.alihealth.drug.scc.getlicense | |
| upload_ref_user_id | String | 必须 | 单据上传人refUserId | 单据上传人refUserId |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ResultModel | 返回结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugSccBillDetailRequest req = new AlibabaAlihealthDrugSccBillDetailRequest();
req.setRefEntId("123");
req.setBillCode("单据号");
req.setLicenseToken("1234567");
req.setUploadRefUserId("单据上传人refUserId");
AlibabaAlihealthDrugSccBillDetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_alihealth_drug_scc_bill_detail_response>
<result>
<response_success>SUCCESS</response_success>
<model>
<bill_code>单据号</bill_code>
<from_user_name>发货货主单位</from_user_name>
<to_user_name>收货货主单位</to_user_name>
<mod_date>modDate</mod_date>
<bill_type>单据类型</bill_type>
<from_assed_user_name>发货方委托的企业名称</from_assed_user_name>
<to_assed_user_name>受收货方委托的企业名称</to_assed_user_name>
<up_material_total>上游资料总数</up_material_total>
<up_material_send>上游已发送资料</up_material_send>
<up_material_un_send>上游未发送资料</up_material_un_send>
<down_material_sign>下游资料签收数</down_material_sign>
<down_material_un_sign>下游资料未签收数</down_material_un_sign>
<down_material_reject>下游资料拒收数</down_material_reject>
<scc_bill_detail_show_response_dto_list>
<scc_bill_detail_show_response_d_t_o>
<bill_detail_code>单据明细编号</bill_detail_code>
<exception_code_count>异常码数量</exception_code_count>
<produce_batch_no>产品批号</produce_batch_no>
<drug_info>药品名称</drug_info>
<sale_count>销售数量</sale_count>
<drug_ent_base_info_id>123</drug_ent_base_info_id>
<up_bill_detail_code>001</up_bill_detail_code>
<product_no>000012</product_no>
<product_name>感冒通</product_name>
<produce_date>2024-01-01 12:00:30</produce_date>
<exprie_date>20280331</exprie_date>
<exprie_month_flag>1</exprie_month_flag>
<produce_ent_name>北京测试生产企业</produce_ent_name>
<mah_ent_name>北京测试生产企业</mah_ent_name>
<pkg_spec>5支每盒</pkg_spec>
<prod_code>9888</prod_code>
<yb_drug_code>972463451</yb_drug_code>
<sale_unit>盒</sale_unit>
<unit_price>23.4</unit_price>
<all_price>460030.08</all_price>
<invoice_no>835430</invoice_no>
<invoice_all_price>460030.09</invoice_all_price>
<up_bill_code>123A</up_bill_code>
<trans_flag>1</trans_flag>
<code_pkg_ratio>10</code_pkg_ratio>
<need_trans_to_trace_code_count>1</need_trans_to_trace_code_count>
<trans_to_trace_success_code_count>1</trans_to_trace_success_code_count>
<trans_to_trace_fail_code_count>1</trans_to_trace_fail_code_count>
<approval_licence_no>协同单据批准文号</approval_licence_no>
</scc_bill_detail_show_response_d_t_o>
</scc_bill_detail_show_response_dto_list>
<ref_ent_id>cb14553ed7654ff586b87b637ba23e2c</ref_ent_id>
<version>1</version>
<bill_time>2025-05-01 00:09:08</bill_time>
<from_ref_ent_id>cb14553ed7654ff586b87b637ba23e2c</from_ref_ent_id>
<to_ref_ent_id>62d67415e4b05691cc769cb4</to_ref_ent_id>
<from_par_id>0003</from_par_id>
<from_par_name>北京测试</from_par_name>
<from_assed_ref_ent_id>62d67415e4b05691cc769cb4</from_assed_ref_ent_id>
<from_assed_par_id>002</from_assed_par_id>
<from_assed_par_name>辽宁测试物流</from_assed_par_name>
<from_warehouse_no>001A</from_warehouse_no>
<to_assed_ref_ent_id>320000000000127970</to_assed_ref_ent_id>
<from_warehouse_name>北京仓</from_warehouse_name>
<original_bill_code>003</original_bill_code>
<from_business_depart>销售部</from_business_depart>
<to_person>张三</to_person>
<encry_type>0</encry_type>
<to_par_name>北京测试</to_par_name>
<to_assed_par_name>上海测试</to_assed_par_name>
<from_warehouse_address>北京大兴</from_warehouse_address>
<from_bill_code>00004B</from_bill_code>
<to_warehouse_name>辽宁2仓</to_warehouse_name>
<to_par_id>0009N</to_par_id>
<to_warehouse_no>0009D</to_warehouse_no>
<to_assed_par_id>0008D</to_assed_par_id>
<to_tel>15809090909</to_tel>
<order_code>hh887</order_code>
<from_business_person>张三</from_business_person>
<to_warehouse_address>武汉1仓</to_warehouse_address>
<oper_ic_code>210000234</oper_ic_code>
<oper_ic_name>张三</oper_ic_name>
<remarks>备注123</remarks>
<trace_bill_status>待处理\处理中\全部成功\部分成功\处理失败</trace_bill_status>
<trace_bill_error_info>多个原因直接用";" 分割</trace_bill_error_info>
<trace_bill_error_code>多个原因直接用";" 分割</trace_bill_error_code>
<from_tel>1343333</from_tel>
</model>
<msg_info>成功失败信息</msg_info>
<msg_code>成功失败信息</msg_code>
<sub_msg_code>SUCCESS</sub_msg_code>
<operation>无后续操作</operation>
</result>
</alibaba_alihealth_drug_scc_bill_detail_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|