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

alibaba.alihealth.tracecodeplatform.code.entscan (药品商家扫码)

药品商家扫描药品监管码,只有该商家的药才返回

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
code String 必须 83386520001941653320 药监码
service_flag String 必须 demo 不同企业有不同的标识

响应参数

名称 类型 示例值 描述
result TopResultModel result
  • model
  • DrugInfoDto
  • model
  • └ expiry_date
  • String
  • 2018-08-01
  • 药品过期日期
  • └ drug_name
  • String
  • 聚乙烯醇滴眼液
  • 药品通用名
  • └ production_batch
  • String
  • 1AK2003
  • 生产批号
  • └ code
  • String
  • 83386520001941653320
  • 药监码
  • └ specifications
  • String
  • 0.5ml:7mg
  • 规格
  • └ pkg_spec
  • String
  • 盒10支
  • 包装
  • └ prepn_type
  • String
  • 眼用制剂
  • 剂型
  • └ ent_name
  • String
  • 信东生技股份有限公司
  • 生产企业名称
  • └ msg_code
  • String
  • 1000
  • msgCode
  • └ msg_info
  • String
  • demo
  • msgInfo

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthTracecodeplatformCodeEntscanRequest req = new AlibabaAlihealthTracecodeplatformCodeEntscanRequest();
req.setCode("83386520001941653320");
req.setServiceFlag("demo");
AlibabaAlihealthTracecodeplatformCodeEntscanResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_tracecodeplatform_code_entscan_response>
    <result>
        <model>
            <expiry_date>2018-08-01</expiry_date>
            <drug_name>聚乙烯醇滴眼液</drug_name>
            <production_batch>1AK2003</production_batch>
            <code>83386520001941653320</code>
            <specifications>0.5ml:7mg</specifications>
            <pkg_spec>盒10支</pkg_spec>
            <prepn_type>眼用制剂</prepn_type>
            <ent_name>信东生技股份有限公司</ent_name>
        </model>
        <msg_code>1000</msg_code>
        <msg_info>demo</msg_info>
    </result>
</alibaba_alihealth_tracecodeplatform_code_entscan_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

返回
顶部