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

alibaba.alihealth.synergy.yzw.getdrugreportwithhttpstatus (查看通过http方式保存药检报告状态)

查看通过http方式保存药检报告状态,频率控制:避免频繁请求,建议一分钟请求一次。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 cb14553ed7654ff586b87b637ba23e2c 企业ID
id Number 必须 1 任务ID

响应参数

名称 类型 示例值 描述
result ResultModel 结果
  • └ success
  • Boolean
  • true
  • 是否响应成功
  • model
  • OnenetTaskDTO
  • 结果
  • └ task_status
  • Number
  • 0
  • 任务状态:0待处理,1处理中,2成功,3文件无法下载,4文件合并错误,5其他错误,-1系统错误
  • └ remark
  • String
  • 文件无法下载
  • 备注
  • └ report_url
  • String
  • https://xxxx.pdf
  • 药检报告URL
  • └ seal_report_url
  • String
  • https://xxxx.pdf
  • 签章后的药检报告URL
  • └ id
  • Number
  • 123
  • 报告ID
  • └ msg_info
  • String
  • 调用成功
  • 状态值
  • └ msg_code
  • String
  • SUCCESS
  • 状态码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthSynergyYzwGetdrugreportwithhttpstatusRequest req = new AlibabaAlihealthSynergyYzwGetdrugreportwithhttpstatusRequest();
req.setRefEntId("cb14553ed7654ff586b87b637ba23e2c");
req.setId(1L);
AlibabaAlihealthSynergyYzwGetdrugreportwithhttpstatusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_synergy_yzw_getdrugreportwithhttpstatus_response>
    <result>
        <success>true</success>
        <model>
            <task_status>0</task_status>
            <remark>文件无法下载</remark>
            <report_url>https://xxxx.pdf</report_url>
            <seal_report_url>https://xxxx.pdf</seal_report_url>
            <id>123</id>
        </model>
        <msg_info>调用成功</msg_info>
        <msg_code>SUCCESS</msg_code>
    </result>
</alibaba_alihealth_synergy_yzw_getdrugreportwithhttpstatus_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

返回
顶部