文档中心 > API类目 > 酒店商品API

taobao.xhotel.bnbpromo.unbind (自促活动解绑接口)

自促活动解绑接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
activity_code String 可选 111 营销活动code
rate_infos PromoRateInfo 可选 营销
  • └ rate_plan_code
  • String
  • 可选
  • 111
  • 外部rp
  • └ out_rid
  • String
  • 可选
  • 111
  • 外部rid

响应参数

名称 类型 示例值 描述
module PromoBindResult 营销解绑返回对象
  • └ success
  • Boolean
  • true
  • 成功或失败
  • └ error_msg
  • String
  • 失败
  • 失败信息
  • └ out_rid
  • String
  • 111
  • 外部rid
  • └ rate_plan_code
  • String
  • 111
  • 外部rp

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelBnbpromoUnbindRequest req = new XhotelBnbpromoUnbindRequest();
req.setActivityCode("111");
XhotelBnbpromoUnbindRequest.PromoRateInfo obj1 = new XhotelBnbpromoUnbindRequest.PromoRateInfo();
obj1.setRatePlanCode("111");
obj1.setOutRid("111");
req.setRateInfos(obj1);
XhotelBnbpromoUnbindResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_bnbpromo_unbind_response>
    <module>
        <success>true</success>
        <error_msg>失败</error_msg>
        <out_rid>111</out_rid>
        <rate_plan_code>111</rate_plan_code>
    </module>
</xhotel_bnbpromo_unbind_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

返回
顶部