感谢您的反馈!
查询大包装码对应的子码信息;注意:入参的大包装码必须在本企业的码上放心平台上传入库单后再调用本接口,才会返回子码信息。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
ref_ent_id | String | 必须 | 320000000000127967 | 接口调用企业的唯一标识(接口调用者) | |
code | String | 必须 | 89400130000122611086 | 追溯码,多个码需要逗号拼接,最大10个码 | |
des_ref_ent_id | String | 必须 | 320000000000127967 | 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ResultModel | 无 | 接口返回model |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAlihealthDrugtraceTopYljgQueryRelationRequest req = new AlibabaAlihealthDrugtraceTopYljgQueryRelationRequest(); req.setRefEntId("320000000000127967"); req.setCode("89400130000122611086"); req.setDesRefEntId("320000000000127967"); AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<alibaba_alihealth_drugtrace_top_yljg_query_relation_response> <result> <model_list> <code_relation_dto> <code_active_info_dto> <process_flag>3</process_flag> <status>0</status> <relation_type>2</relation_type> <user_cert>112</user_cert> <prod_code>112</prod_code> <oper_ic_name>112</oper_ic_name> <upload_file_name>service.xml</upload_file_name> <upload_file_path>TESTA/210000/210200/210282/220000300/20180828</upload_file_path> <active_date>Mon Aug 20 00:00:00 CST 2018</active_date> <ref_ent_id>220000300</ref_ent_id> <ent_id>220000300</ent_id> <process_date>Mon Aug 20 00:00:00 CST 2018</process_date> <process_end_date>Mon Aug 20 00:00:00 CST 2018</process_end_date> <oper_ic_code>220000183</oper_ic_code> <upload_flag>1</upload_flag> <crt_date>Mon Aug 20 00:00:00 CST 2018</crt_date> <process_count>1</process_count> <active_count>11</active_count> <other_num>1</other_num> <small_num>8</small_num> <crt_date_string>2018-08-28</crt_date_string> <bill_in_id>无</bill_in_id> <code_active_info_id>13123421</code_active_info_id> </code_active_info_dto> <code_relation_list> <code_info> <status>I</status> <code>87004720000000005994</code> <code_level>1</code_level> <parent_code>87004720000000005994</parent_code> <code_pack_level>1</code_pack_level> </code_info> </code_relation_list> <is_smallest>N</is_smallest> <pkg_info_dto> <code_list> <string>{"code":["87004720000000005994"]}</string> </code_list> </pkg_info_dto> <base_infos_dto> <base_info_list> <base_info_dto> <physic_info>阿司匹林</physic_info> <ref_ent_id>320000000000127967</ref_ent_id> <pkg_spec>盒</pkg_spec> <prepn_spec>2</prepn_spec> <prepn_type>2</prepn_type> <physic_name>阿司匹林</physic_name> <pkg_ratio>1:1:1</pkg_ratio> <exprie_date>2018-01-11</exprie_date> <produce_batch_no>214231432</produce_batch_no> <produce_date>2018-01-11</produce_date> <sub_type_no>111</sub_type_no> <product_code>111</product_code> <prod_id>111</prod_id> <approve_no>111</approve_no> <physic_type>3</physic_type> </base_info_dto> </base_info_list> </base_infos_dto> <produce_info_list> <produce_info_dto> <produce_date>2018-01-11</produce_date> <expire_date>20180111</expire_date> <batch_no>12312312</batch_no> <code>123123123</code> <pkg_amount>12</pkg_amount> </produce_info_dto> </produce_info_list> </code_relation_dto> </model_list> <msg_code>1</msg_code> <msg_info>1</msg_info> <response_success>false</response_success> </result> </alibaba_alihealth_drugtrace_top_yljg_query_relation_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|