文档中心 > API类目 > 酒店官网信用住API

taobao.xhotel.order.official.cancel (官网信用住订单取消)

官网信用住订单取消

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tid Number 特殊可选 100010 淘宝订单号,必选
reason_text String 可选 无房 原因描述
out_id String 特殊可选 R12345678 外部订单号
out_uuid String 可选 2222222222 请求流水号(必须传入)
notify_url String 可选 http://www.xx.xx 暂无意义,无需传入

响应参数

名称 类型 示例值 描述
result String "success" 返回提示信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderOfficialCancelRequest req = new XhotelOrderOfficialCancelRequest();
req.setTid(100010L);
req.setReasonText("无房");
req.setOutId("R12345678");
req.setOutUuid("2222222222");
req.setNotifyUrl("http://www.xx.xx");
XhotelOrderOfficialCancelResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_order_official_cancel_response>
    <result>&quot;success&quot;</result>
</xhotel_order_official_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>

错误码解释

错误码 错误描述 解决方案
isv.order-error:ORDER_CANCEL_ERROR 订单取消失败 查看订单取消接口

API工具

如何获得此API

FAQ

返回
顶部