文档中心 > API类目 > 阿里健康-本地医疗-通用渠道

alibaba.alihealth.medical.channel.order.query (订单查询)

订单查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
channel_order_id String 必须 1234 渠道订单id

响应参数

名称 类型 示例值 描述
data OrderQueryResponse true 结果
  • └ channel_order_id
  • String
  • 123
  • 渠道订单id
  • └ status
  • String
  • CONSUMED
  • 状态
  • └ status_desc
  • String
  • 已核销
  • 状态描述
  • reservation_info
  • ReservationInfo
  • 预约信息
  • └ scheduled_time
  • String
  • 2022-07-19 10:00:00
  • 开始时间
  • └ scheduled_finish_time
  • String
  • 2022-07-19 11:00:00
  • 结束时间(分时才有)
msg_info String 请求成功 错误信息
msg_code String SUCCESS 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalChannelOrderQueryRequest req = new AlibabaAlihealthMedicalChannelOrderQueryRequest();
req.setChannelOrderId("1234");
AlibabaAlihealthMedicalChannelOrderQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_medical_channel_order_query_response>
    <data>
        <channel_order_id>123</channel_order_id>
        <status>CONSUMED</status>
        <status_desc>已核销</status_desc>
        <reservation_info>
            <scheduled_time>2022-07-19 10:00:00</scheduled_time>
            <scheduled_finish_time>2022-07-19 11:00:00</scheduled_finish_time>
        </reservation_info>
    </data>
    <msg_info>请求成功</msg_info>
    <msg_code>SUCCESS</msg_code>
</alibaba_alihealth_medical_channel_order_query_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

返回
顶部