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

alibaba.alihealth.drug.kyt.queryactivetime (药品激活状态同步)

根据赋码资源(CodeVersion + resCode)获得最新激活时间 应用于各地市对接前进行药品目录匹配,医保中心存在的药品可能比较陈旧杂乱

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bureau_name String 必须 广东广州 社保局(所属地市名称)
terminal_name String 必须 测试终端1 请求终端名称
terminal_type String 必须 1005100 终端类型:1005100-零售,1005200-医疗
invocation String 必须 formal 调用方式:formal-正式、test-测试
res_prod_code_list String [] 必须 8355815, 8765246, 8765250
  • 最大列表长度:20
  • 码段的数组

    响应参数

    名称 类型 示例值 描述
    result Result 接口返回model
    • └ success
    • Boolean
    • true
    • 是否成功
    • models
    • CodeActiveStatusDto []
    • 码激活状态DTO
    • └ active_time
    • Number
    • 1557738301000
    • 最后激活时间,到毫秒时间timeMills方式
    • └ res_prod_code
    • String
    • 8355815
    • 码段
    • └ msg_info
    • String
    • 调用成功
    • msgInfo
    • └ msg_code
    • String
    • SUCCESS
    • msgCode

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaAlihealthDrugKytQueryactivetimeRequest req = new AlibabaAlihealthDrugKytQueryactivetimeRequest();
    req.setBureauName("广东广州");
    req.setTerminalName("测试终端1");
    req.setTerminalType("1005100");
    req.setInvocation("formal");
    req.setResProdCodeList("8355815, 8765246, 8765250");
    AlibabaAlihealthDrugKytQueryactivetimeResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_alihealth_drug_kyt_queryactivetime_response>
        <result>
            <success>true</success>
            <models>
                <code_active_status_dto>
                    <active_time>1557738301000</active_time>
                    <res_prod_code>8355815</res_prod_code>
                </code_active_status_dto>
            </models>
            <msg_info>调用成功</msg_info>
            <msg_code>SUCCESS</msg_code>
        </result>
    </alibaba_alihealth_drug_kyt_queryactivetime_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

    返回
    顶部