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

alitrip.futurehotel.hauser.gethotelstat (菲住联盟商家APP首页员工统计)

飞猪-菲住联盟迁移,商家APP首页员工统计

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
hotel_id Number 可选 122 酒店Id

响应参数

名称 类型 示例值 描述
result GetHotelStatResponse result 返回结果
  • └ fh_msg
  • String
  • 失败
  • 错误信息
  • └ fh_code
  • String
  • 0
  • 错误码
  • └ fh_success
  • Boolean
  • false
  • 是否成功
  • get_hotel_stat_res
  • GetHotelStatRes
  • getHotelStatRes
  • 返回结果对象
  • └ total_income
  • String
  • 11.00
  • 累计会员收益
  • └ member_number
  • Number
  • 10
  • 已发展会员数
  • └ current_staff_count
  • Number
  • 11
  • 当前员工数
  • └ commission_amount
  • String
  • 10.00
  • 分佣金额

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelHauserGethotelstatRequest req = new AlitripFuturehotelHauserGethotelstatRequest();
req.setHotelId(122L);
AlitripFuturehotelHauserGethotelstatResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_hauser_gethotelstat_response>
    <result>
        <fh_msg>失败</fh_msg>
        <fh_code>0</fh_code>
        <fh_success>false</fh_success>
        <get_hotel_stat_res>
            <total_income>11.00</total_income>
            <member_number>10</member_number>
            <current_staff_count>11</current_staff_count>
            <commission_amount>10.00</commission_amount>
        </get_hotel_stat_res>
    </result>
</alitrip_futurehotel_hauser_gethotelstat_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

返回
顶部