注意:以下文档只适用于TOP接口,请谨慎使用!

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

alibaba.alihealth.drug.kyt.yy.querysubcodes (查询一个码的所有子码)

单码的了码查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 320000000000127967 接口调用企业的唯一标识(接口调用者)
codes String [] 可选 87709840000000015538
  • 最大列表长度:50
  • 响应参数

    名称 类型 示例值 描述
    result ResultModel 接口返回model
    • model_list
    • CodeRelationDto []
    • 134523^4351232
    • model
    • code_relation_list
    • CodeInfo []
    • 码关联关系
    • └ status
    • String
    • I
    • 码状态
    • └ code
    • String
    • 87004720000000005994
    • 追溯码
    • └ code_level
    • String
    • 1
    • 码等级
    • └ parent_code
    • String
    • 87004720000000005994
    • 父码
    • └ code_pack_level
    • String
    • 5
    • 码包装等级
    • └ error_code_content
    • String
    • errorCodeContent
    • └ msg_code
    • String
    • 1
    • msgCode
    • └ msg_info
    • String
    • 1
    • msgInfo
    • └ response_success
    • Boolean
    • false
    • 是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaAlihealthDrugKytYyQuerysubcodesRequest req = new AlibabaAlihealthDrugKytYyQuerysubcodesRequest();
    req.setRefEntId("320000000000127967");
    req.setCodes("87709840000000015538");
    AlibabaAlihealthDrugKytYyQuerysubcodesResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_alihealth_drug_kyt_yy_querysubcodes_response>
        <result>
            <model_list>
                <code_relation_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>5</code_pack_level>
                        </code_info>
                    </code_relation_list>
                    <error_code_content>无</error_code_content>
                </code_relation_dto>
            </model_list>
            <msg_code>1</msg_code>
            <msg_info>1</msg_info>
            <response_success>false</response_success>
        </result>
    </alibaba_alihealth_drug_kyt_yy_querysubcodes_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

    返回
    顶部