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

alitrip.futurehotel.haorder.hotelorder.list (菲住酒店联盟酒店查询订单列表)

飞猪-菲住联盟迁移,酒店查询订单列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_query_hotel_order_request QueryHotelOrderRequest 可选 查询酒店订单列表请求参数
  • └ company_bussiness_id
  • Number
  • 可选
  • 1001
  • 公司id
  • └ company_type
  • Number
  • 可选
  • 1
  • 公司类型
  • └ contact_name
  • String
  • 可选
  • 张三
  • 联系人姓名
  • └ contact_phone
  • String
  • 可选
  • 13888888888
  • 联系人电话
  • └ contract_type
  • Number
  • 可选
  • 1
  • 合约类型
  • └ end_date
  • String
  • 可选
  • 2020-01-01
  • 结束日期
  • └ hotel_id
  • Number
  • 可选
  • 1001
  • 酒店id
  • └ keyword
  • String
  • 可选
  • 如家
  • 关键字
  • └ limit
  • Number
  • 可选
  • 10
  • 每页显示条数
  • └ order_by_clause
  • String
  • 可选
  • gmt_create
  • 排序条件
  • └ order_id
  • Number
  • 可选
  • 1000231
  • 订单号
  • └ product_name
  • String
  • 可选
  • 如家酒店
  • 酒店名称
  • └ query_date_type
  • Number
  • 可选
  • 1
  • 预定日期类型
  • └ start
  • Number
  • 可选
  • 1
  • 页数
  • └ start_date
  • String
  • 可选
  • 2020-01-01
  • 开始日期
  • └ status
  • Number
  • 可选
  • 1
  • 订单状态
  • └ tab_tag
  • Number
  • 可选
  • 1
  • tab标签切换
  • └ trace_id
  • String
  • 可选
  • 2312312
  • 链路id
  • └ user_type
  • Number
  • 可选
  • 1
  • 用户类型

响应参数

名称 类型 示例值 描述
result QueryHotelOrderResponse 服务出参 系统自动生成
  • └ fh_code
  • String
  • 200
  • 系统自动生成
  • └ fh_msg
  • String
  • 成功
  • 系统自动生成
  • └ fh_success
  • Boolean
  • true
  • 系统自动生成
  • order_list
  • Page
  • 订单列表
  • 订单列表
  • data
  • HotelOrderVo []
  • 订单列表对象
  • 订单列表对象
  • └ checkin_date
  • Date
  • Mon Jun 07 16:41:02 CST 2021
  • 入住日期
  • └ checkout_date
  • Date
  • Mon Jun 07 16:41:02 CST 2021
  • 离店日期
  • └ contact_name
  • String
  • 张三
  • 联系人
  • └ contact_phone
  • String
  • 13888888888
  • 联系电话
  • └ gmt_create
  • Date
  • Mon Jun 07 16:41:02 CST 2021
  • 下单时间
  • └ has_break_fast
  • Number
  • 1
  • 是否含早
  • └ id
  • Number
  • 12312312
  • 订单号
  • └ is_sync_fliggy
  • Boolean
  • true
  • 小程序订单是否同步飞猪
  • └ nights
  • Number
  • 1
  • 间夜数
  • └ order_type
  • Number
  • 1
  • 订单类型
  • └ out_order_id
  • String
  • 1232141231
  • 外部订单号
  • └ payment
  • Number
  • 1000
  • 支付金额
  • └ product_name
  • String
  • 如家酒店
  • 酒店名称
  • └ promotionamt
  • Number
  • 100
  • 优惠金额
  • └ refund_status
  • Number
  • 1
  • 退款状态
  • └ room_name
  • String
  • 大床房
  • 房型名称
  • └ room_number
  • Number
  • 2
  • 房间数量
  • └ show_payment
  • String
  • 1000
  • 支付金额
  • └ show_promotionamt
  • String
  • 100
  • 优惠金额
  • └ show_total_room_price
  • String
  • 1000
  • 总房价
  • └ status
  • Number
  • 1
  • 订单状态
  • └ status_str
  • String
  • 待支付
  • 订单状态描述
  • └ total_room_price
  • Number
  • 1000
  • 总房价
  • └ type
  • Number
  • 1
  • 支付类型
  • └ user_type_name
  • String
  • 平台会员
  • 用户类型名称
  • └ limit
  • Number
  • 20
  • 每页显示条数
  • └ records_filtered
  • Number
  • 1
  • 被过滤条目数
  • └ records_total
  • Number
  • 20
  • 总记录数
  • └ start
  • Number
  • 1
  • 开始条目

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelHaorderHotelorderListRequest req = new AlitripFuturehotelHaorderHotelorderListRequest();
AlitripFuturehotelHaorderHotelorderListRequest.QueryHotelOrderRequest obj1 = new AlitripFuturehotelHaorderHotelorderListRequest.QueryHotelOrderRequest();
obj1.setCompanyBussinessId(1001L);
obj1.setCompanyType(1L);
obj1.setContactName("张三");
obj1.setContactPhone("13888888888");
obj1.setContractType(1L);
obj1.setEndDate("2020-01-01");
obj1.setHotelId(1001L);
obj1.setKeyword("如家");
obj1.setLimit(10L);
obj1.setOrderByClause("gmt_create");
obj1.setOrderId(1000231L);
obj1.setProductName("如家酒店");
obj1.setQueryDateType(1L);
obj1.setStart(1L);
obj1.setStartDate("2020-01-01");
obj1.setStatus(1L);
obj1.setTabTag(1L);
obj1.setTraceId("2312312");
obj1.setUserType(1L);
req.setParamQueryHotelOrderRequest(obj1);
AlitripFuturehotelHaorderHotelorderListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_haorder_hotelorder_list_response>
    <result>
        <fh_code>200</fh_code>
        <fh_msg>成功</fh_msg>
        <fh_success>true</fh_success>
        <order_list>
            <data>
                <hotel_order_vo>
                    <checkin_date>Mon Jun 07 16:41:02 CST 2021</checkin_date>
                    <checkout_date>Mon Jun 07 16:41:02 CST 2021</checkout_date>
                    <contact_name>张三</contact_name>
                    <contact_phone>13888888888</contact_phone>
                    <gmt_create>Mon Jun 07 16:41:02 CST 2021</gmt_create>
                    <has_break_fast>1</has_break_fast>
                    <id>12312312</id>
                    <is_sync_fliggy>true</is_sync_fliggy>
                    <nights>1</nights>
                    <order_type>1</order_type>
                    <out_order_id>1232141231</out_order_id>
                    <payment>1000</payment>
                    <product_name>如家酒店</product_name>
                    <promotionamt>100</promotionamt>
                    <refund_status>1</refund_status>
                    <room_name>大床房</room_name>
                    <room_number>2</room_number>
                    <show_payment>1000</show_payment>
                    <show_promotionamt>100</show_promotionamt>
                    <show_total_room_price>1000</show_total_room_price>
                    <status>1</status>
                    <status_str>待支付</status_str>
                    <total_room_price>1000</total_room_price>
                    <type>1</type>
                    <user_type_name>平台会员</user_type_name>
                </hotel_order_vo>
            </data>
            <limit>20</limit>
            <records_filtered>1</records_filtered>
            <records_total>20</records_total>
            <start>1</start>
        </order_list>
    </result>
</alitrip_futurehotel_haorder_hotelorder_list_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

返回
顶部