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

alitrip.futurehotel.hamarket.hotel.benefit.discount.query (查询联盟酒店商家券优惠总额)

查询联盟酒店商家券优惠总额

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
hotel_id Number 可选 12321443 联盟酒店ID

响应参数

名称 类型 示例值 描述
result QueryHotelBenefitsDiscountMoneyResponse res 返回实例
  • └ fh_msg
  • String
  • 错误信息
  • 错误信息
  • └ fh_code
  • String
  • 10001
  • 错误代码
  • └ total_discount_money
  • String
  • 0
  • 优惠金额
  • └ fh_success
  • Boolean
  • true
  • 成功失败标识

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_hamarket_hotel_benefit_discount_query_response>
    <result>
        <fh_msg>错误信息</fh_msg>
        <fh_code>10001</fh_code>
        <total_discount_money>0</total_discount_money>
        <fh_success>true</fh_success>
    </result>
</alitrip_futurehotel_hamarket_hotel_benefit_discount_query_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

返回
顶部