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

alibaba.alihealth.medical.channel.order.cancel (订单取消)

订单取消

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
data OrderResponse true 结果
  • └ channel_order_id
  • String
  • 123123
  • 渠道方订单id
  • └ status
  • String
  • TO_BE_PAID
  • 订单当前状态
  • └ status_desc
  • String
  • 待支付
  • 状态描述
msg_info String 请求成功 错误信息
msg_code String SUCCESS 错误码

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_medical_channel_order_cancel_response>
    <data>
        <channel_order_id>123123</channel_order_id>
        <status>TO_BE_PAID</status>
        <status_desc>待支付</status_desc>
    </data>
    <msg_info>请求成功</msg_info>
    <msg_code>SUCCESS</msg_code>
</alibaba_alihealth_medical_channel_order_cancel_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

返回
顶部