单据流向查询
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| code | String | 必须 | 87005160000000000881 | 追溯码 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | TopResultModel | 和三方交互最外层model对象 | 和三方交互最外层model对象 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionRequest req = new AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionRequest();
req.setCode("87005160000000000881");
AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_alihealth_drug_code_advance_bill_flow_direction_response>
<result>
<model>
<piats_code_flow_response_d_t_o>
<header>
<err_msg>成功</err_msg>
<success_flag>true</success_flag>
<err_code>1000</err_code>
</header>
<response_body>
<flow_list>
<flow_entity>
<from_ent_name>中信21世纪北京</from_ent_name>
<ent_prov_name>北京</ent_prov_name>
<out_bill_code>SYS_IN_99999999991000200192</out_bill_code>
<in_bill_code>日常测试001</in_bill_code>
<out_type>调拨出库</out_type>
<in_type>生产入库</in_type>
<out_bill_id>900032700232</out_bill_id>
<in_bill_id>900032700232</in_bill_id>
<out_date>018-12-01T12:00:00+08:00</out_date>
<in_date>2018-12-01T00:00:00+08:00</in_date>
<in_type_code>101</in_type_code>
<out_type_code>203</out_type_code>
<to_ent_id>cb14553ed7654ff586b87b637ba23e2c</to_ent_id>
<to_ent_name>中信21世纪制药厂北京分公司</to_ent_name>
<ent_type>1</ent_type>
<ent_id>c30746d5198c4b58810a14733adb0726</ent_id>
<ent_name>香港测试104new3</ent_name>
<from_ent_id>c30746d5198c4b58810a14733adb0726</from_ent_id>
</flow_entity>
</flow_list>
<product_info_list>
<physic_detail_type>10</physic_detail_type>
<ean>691212121212111</ean>
<authorized_no>国药准字Z20055312</authorized_no>
<ent_id>00000000000020671796</ent_id>
<physic_type>普通药品</physic_type>
<pkg_num>10</pkg_num>
<prepn_unit>丸</prepn_unit>
<product_code>1005047006</product_code>
<physic_code>1005047</physic_code>
<exprie_date>20190605</exprie_date>
<product_date>2018-12-01T00:00:00+08:00</product_date>
<product_batch_no>日常测试_001</product_batch_no>
<drug_num>1</drug_num>
<ent_name>香港测试104</ent_name>
<pkg_spec_unit>瓶</pkg_spec_unit>
<pkg_spec>瓶10丸</pkg_spec>
<prepn_spec>0.25g(25万单位)</prepn_spec>
<prepn_type>片剂</prepn_type>
<product_name>阿奇霉素分散片</product_name>
<drug_physic_name>阿奇霉素分散片</drug_physic_name>
<produce_info_id>ff808081676480b60167677a01100001</produce_info_id>
<drug_id>85981ca4a760431b8da789cf8c7f75a1</drug_id>
</product_info_list>
<first_query_time>2018-11-11</first_query_time>
<last_biz_date>2018-12-01T12:00:00+08:00</last_biz_date>
<status>C</status>
<query_count>1</query_count>
</response_body>
</piats_code_flow_response_d_t_o>
</model>
<msg_code>1000</msg_code>
<msg_info>demo</msg_info>
</result>
</alibaba_alihealth_drug_code_advance_bill_flow_direction_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|