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

alibaba.alihealth.drug.scan.querycode (查询药监码对应的有效期和包装规格)

查询药监码对应的有效期和包装规格

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
code String 必须 88818000000004149600 溯源码
scan_time Date 必须 2019-04-15 17:47:58 扫码日期
webchat_id String 必须 90900b7e8c2d4388a8a54f3c2c865f4e 用户标识id
province_code String 可选 110000 省编码
city_code String 可选 110000 市编码
area_code String 可选 110000 区编码

响应参数

名称 类型 示例值 描述
result TopResultModel 和三方交互最外层model对象
  • model
  • DrugScanLog
  • 返回模型
  • └ pkg_spec
  • String
  • 盒10支
  • 包装规格
  • └ code
  • String
  • 88818000000004149600
  • 溯源码
  • └ expiry_date
  • String
  • 2017-09-29 00:00:00
  • 有效期
  • └ msg_code
  • String
  • 1000
  • 操作码
  • └ msg_info
  • String
  • 调用成功
  • 操作说明

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugScanQuerycodeRequest req = new AlibabaAlihealthDrugScanQuerycodeRequest();
req.setCode("88818000000004149600");
req.setScanTime(StringUtils.parseDateTime("2019-04-15 17:47:58"));
req.setWebchatId("90900b7e8c2d4388a8a54f3c2c865f4e");
req.setProvinceCode("110000");
req.setCityCode("110000");
req.setAreaCode("110000");
AlibabaAlihealthDrugScanQuerycodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_scan_querycode_response>
    <result>
        <model>
            <pkg_spec>盒10支</pkg_spec>
            <code>88818000000004149600</code>
            <expiry_date>2017-09-29 00:00:00</expiry_date>
        </model>
        <msg_code>1000</msg_code>
        <msg_info>调用成功</msg_info>
    </result>
</alibaba_alihealth_drug_scan_querycode_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

返回
顶部