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

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

alitrip.hotel.hstdf.shotel.matchsroomself (匹配标准房型以及卖家房型)

匹配卖家房型以及标准房型,返回匹配结果

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 SroomTypeMatchParam 可选 SroomTypeMatchParam
  • └ srid
  • Number
  • 必须
  • 12345
  • 标准房型id
  • └ rid
  • Number
  • 必须
  • 123456
  • 卖家房型id

响应参数

名称 类型 示例值 描述
errorcode String 500 error_code
errormsg String 匹配分数过低拒绝匹配 error_msg
status Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripHotelHstdfShotelMatchsroomselfRequest req = new AlitripHotelHstdfShotelMatchsroomselfRequest();
AlitripHotelHstdfShotelMatchsroomselfRequest.SroomTypeMatchParam obj1 = new AlitripHotelHstdfShotelMatchsroomselfRequest.SroomTypeMatchParam();
obj1.setSrid(12345L);
obj1.setRid(123456L);
req.setParam0(obj1);
AlitripHotelHstdfShotelMatchsroomselfResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_hotel_hstdf_shotel_matchsroomself_response>
    <errorcode>500</errorcode>
    <errormsg>匹配分数过低拒绝匹配</errormsg>
    <status>true</status>
</alitrip_hotel_hstdf_shotel_matchsroomself_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

返回
顶部