注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 飞猪酒店标准库

alitrip.hotel.hstdf.shotel.matchshotelself (自主匹配标准酒店以及卖家酒店)

商家通过指定的标准酒店id和卖家酒店id进行匹配

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 HotelMatchParam 必须 HotelMatchParam
  • └ hid
  • Number
  • 必须
  • 123567
  • 卖家酒店id
  • └ shid
  • Number
  • 必须
  • 123456
  • 标准酒店id

响应参数

名称 类型 示例值 描述
errorcode String 500 错误码
errormsg String 匹配失败相似度分数过低 错误信息
status Boolean boolean 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHstdfShotelMatchshotelselfRequest req = new AlitripHotelHstdfShotelMatchshotelselfRequest();
AlitripHotelHstdfShotelMatchshotelselfRequest.HotelMatchParam obj1 = new AlitripHotelHstdfShotelMatchshotelselfRequest.HotelMatchParam();
obj1.setHid(123567L);
obj1.setShid(123456L);
req.setParam0(obj1);
AlitripHotelHstdfShotelMatchshotelselfResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_hstdf_shotel_matchshotelself_response>
    <errorcode>500</errorcode>
    <errormsg>匹配失败相似度分数过低</errormsg>
    <status>boolean</status>
</alitrip_hotel_hstdf_shotel_matchshotelself_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

返回
顶部