文档中心 > API类目 > 阿里健康追溯码

alibaba.alihealth.drug.code.codequery.querychildrencodewithisv (根据码数据查询子码数据)

根据码数据查询子码数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
isv_id String 必须 12345 isv唯一标识
ref_ent_id String 必须 123456789 企业refEntId
code String 必须 87796580000023200900

响应参数

名称 类型 示例值 描述
result ResultModel 接口返回model
  • model
  • CodeRelationDTO
  • 1
  • model
  • code_relation_list
  • CodeBaseInfoDTO []
  • 子码数据
  • └ status
  • String
  • I
  • 码状态(I核注O核销A激活C注销E错误码)
  • └ code
  • String
  • 87004720000000005994
  • 追溯码
  • └ code_level
  • String
  • 1
  • 码等级--展示等级 【相当于包装等级,1代表最大展示等级, 如:申请的包装比例是1:5:10, 对应的码展示等级就是 1、2、3, 代表大码、中码、小码】
  • └ parent_code
  • String
  • 87004720000000005994
  • 父码
  • └ code_pack_level
  • String
  • 3
  • 码等级【1代表最小码 如:申请的包装比例是1:5:10, 对应的码等级就是3、2、1, 代表大码、中码、小码】
  • └ msg_code
  • String
  • success
  • 消息码
  • └ msg_info
  • String
  • 调用成功
  • 消息提示内容
  • └ success
  • String
  • true
  • 查询成功失败标记

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugCodeCodequeryQuerychildrencodewithisvRequest req = new AlibabaAlihealthDrugCodeCodequeryQuerychildrencodewithisvRequest();
req.setIsvId("12345");
req.setRefEntId("123456789");
req.setCode("87796580000023200900");
AlibabaAlihealthDrugCodeCodequeryQuerychildrencodewithisvResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_code_codequery_querychildrencodewithisv_response>
    <result>
        <model>
            <code_relation_list>
                <code_base_info_d_t_o>
                    <status>I</status>
                    <code>87004720000000005994</code>
                    <code_level>1</code_level>
                    <parent_code>87004720000000005994</parent_code>
                    <code_pack_level>3</code_pack_level>
                </code_base_info_d_t_o>
            </code_relation_list>
        </model>
        <msg_code>success</msg_code>
        <msg_info>调用成功</msg_info>
        <success>true</success>
    </result>
</alibaba_alihealth_drug_code_codequery_querychildrencodewithisv_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

返回
顶部