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

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

alibaba.alihealth.drug.kyt.querycodeactive (查询码是否激活)

查询码是否激活

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 320000000000127971 企业唯一标识
codes String [] 必须 81012350000000157474
  • 最大列表长度:4000
  • 码列表【多个码时用逗号拼接的字符串。要求数量在4000个码以下,但一般不要传这么多,如果网络不好很容易传输一半报错】

    响应参数

    名称 类型 示例值 描述
    models String [] 81012350000000157474 未激活或者不存在的码
    msg_code String SUCCESS 消息码
    msg_info String 调用成功 消息提示内容
    response_success Boolean true 是否成功(true 成功 ,false失败)

    请求示例

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

    响应示例

    • XML示例
    • JSON示例
    <alibaba_alihealth_drug_kyt_querycodeactive_response>
        <models>
            <string>81012350000000157474</string>
        </models>
        <msg_code>SUCCESS</msg_code>
        <msg_info>调用成功</msg_info>
        <response_success>true</response_success>
    </alibaba_alihealth_drug_kyt_querycodeactive_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

    返回
    顶部