文档中心 > API类目 > 酒店线下信用住API

taobao.xhotel.order.alipayface.cancel (线下信用住订单取消)

提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tid Number 特殊可选 2222 淘宝订单ID,必选
reason_text String 可选 无房 原因描述
out_id String 特殊可选 222 外部订单号
notify_url String 可选 http://www.xx.xx 预留后续用
out_uuid String 可选 222 请求流水号

响应参数

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

请求示例

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

响应示例

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

返回
顶部