文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.hotel.getcooperation (获取酒店合作信息)

获取酒店合作信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
company_id Number 可选 111111 服务商ID/酒店ID
login_user_id String 可选 111 用户id

响应参数

名称 类型 示例值 描述
result GetHotelCooperationRes {} result
  • └ company_name
  • String
  • 公司名称
  • 公司名称
  • └ company_type
  • Number
  • 1
  • 公司类型
  • └ fh_code
  • String
  • system_error
  • 错误码
  • └ fh_msg
  • String
  • 系统异常
  • 错误信息
  • └ fh_success
  • Boolean
  • true
  • success
  • └ hotel_cooperation_status
  • Number
  • 1
  • 酒店合作状态

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelHotelGetcooperationRequest req = new AlitripFuturehotelHotelGetcooperationRequest();
req.setCompanyId(111111L);
req.setLoginUserId("111");
AlitripFuturehotelHotelGetcooperationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_hotel_getcooperation_response>
    <result>
        <company_name>公司名称</company_name>
        <company_type>1</company_type>
        <fh_code>system_error</fh_code>
        <fh_msg>系统异常</fh_msg>
        <fh_success>true</fh_success>
        <hotel_cooperation_status>1</hotel_cooperation_status>
    </result>
</alitrip_futurehotel_hotel_getcooperation_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

返回
顶部