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

alibaba.alihealth.drug.getbarcode.bytraccode (根据追溯码获取69码)

根据追溯码获取69码

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
trace_code String 必须 87618890000000010614 追溯码

响应参数

名称 类型 示例值 描述
result TopResultModel result
  • └ model
  • String
  • {"produceDate":"2018-06-12","batchNo":"20180612A","expireDate":"20180930","barCode":"6925265101481"}
  • 包含药品生产日期、有效期至、69码、批次号
  • └ msg_code
  • String
  • SUCCESS
  • msgCode
  • └ msg_info
  • String
  • demo
  • msgInfo

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugGetbarcodeBytraccodeRequest req = new AlibabaAlihealthDrugGetbarcodeBytraccodeRequest();
req.setTraceCode("87618890000000010614");
AlibabaAlihealthDrugGetbarcodeBytraccodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_getbarcode_bytraccode_response>
    <result>
        <model>{&quot;produceDate&quot;:&quot;2018-06-12&quot;,&quot;batchNo&quot;:&quot;20180612A&quot;,&quot;expireDate&quot;:&quot;20180930&quot;,&quot;barCode&quot;:&quot;6925265101481&quot;}</model>
        <msg_code>SUCCESS</msg_code>
        <msg_info>demo</msg_info>
    </result>
</alibaba_alihealth_drug_getbarcode_bytraccode_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

返回
顶部