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

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

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

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
buyer_id Number 可选 1001 买家id
query_type Number 可选 1 订单分类
trace_id String 可选 1001 日志链路id

响应参数

名称 类型 示例值 描述
result QueryOrderListResponse 服务出参 系统自动生成
  • └ fh_code
  • String
  • 200
  • 系统自动生成
  • └ fh_msg
  • String
  • 成功
  • 系统自动生成
  • └ fh_success
  • Boolean
  • true
  • 系统自动生成
  • order_list
  • BuyerOrderVo []
  • 订单列表
  • 订单列表
  • └ address
  • String
  • 浙江省杭州市余杭区五常街道
  • 酒店地址
  • └ auto_renew
  • Boolean
  • 1
  • 是否自动续费商品
  • business_order_list
  • BuyerBusinessOrder []
  • 辅营商品订单
  • 辅营商品订单
  • └ product_id
  • Number
  • 1001
  • 商品id
  • └ product_name
  • String
  • 菲住会员卡
  • 商品名称
  • └ sell_price
  • Number
  • 3900
  • 商品售价
  • └ status
  • Number
  • 1
  • 订单状态
  • └ status_desc
  • String
  • 待支付
  • 订单状态描述
  • └ checkin_date
  • Date
  • Mon Jun 07 16:41:02 CST 2021
  • 入住日期
  • └ checkout_date
  • Date
  • Mon Jun 07 16:41:02 CST 2021
  • 离店日期
  • └ has_comment
  • Boolean
  • false
  • 是否有评论
  • └ is_refund
  • Boolean
  • 1
  • 是否退款
  • └ nights
  • Number
  • 1
  • 入住几晚
  • └ order_id
  • Number
  • 19293212121
  • 订单号
  • └ order_type
  • Number
  • 1
  • 订单类型
  • └ pay_channel
  • Number
  • 1
  • 支付渠道
  • └ payment
  • Number
  • 10000
  • 支付金额
  • └ product_id
  • Number
  • 1001
  • 酒店id
  • └ product_name
  • String
  • 如家酒店
  • 酒店名称
  • └ room_id
  • Number
  • 1001
  • 房型id
  • └ room_number
  • Number
  • 1
  • 房间数
  • └ show_cancel_button
  • Boolean
  • true
  • 是否展示取消按钮
  • └ status
  • Number
  • 1
  • 订单状态
  • └ status_desc
  • String
  • 待支付
  • 状态描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelHaorderOrderListRequest req = new AlitripFuturehotelHaorderOrderListRequest();
req.setBuyerId(1001L);
req.setQueryType(1L);
req.setTraceId("1001");
AlitripFuturehotelHaorderOrderListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<alitrip_futurehotel_haorder_order_list_response>
    <result>
        <fh_code>200</fh_code>
        <fh_msg>成功</fh_msg>
        <fh_success>true</fh_success>
        <order_list>
            <buyer_order_vo>
                <address>浙江省杭州市余杭区五常街道</address>
                <auto_renew>1</auto_renew>
                <business_order_list>
                    <buyer_business_order>
                        <product_id>1001</product_id>
                        <product_name>菲住会员卡</product_name>
                        <sell_price>3900</sell_price>
                        <status>1</status>
                        <status_desc>待支付</status_desc>
                    </buyer_business_order>
                </business_order_list>
                <checkin_date>Mon Jun 07 16:41:02 CST 2021</checkin_date>
                <checkout_date>Mon Jun 07 16:41:02 CST 2021</checkout_date>
                <has_comment>false</has_comment>
                <is_refund>1</is_refund>
                <nights>1</nights>
                <order_id>19293212121</order_id>
                <order_type>1</order_type>
                <pay_channel>1</pay_channel>
                <payment>10000</payment>
                <product_id>1001</product_id>
                <product_name>如家酒店</product_name>
                <room_id>1001</room_id>
                <room_number>1</room_number>
                <show_cancel_button>true</show_cancel_button>
                <status>1</status>
                <status_desc>待支付</status_desc>
            </buyer_order_vo>
        </order_list>
    </result>
</alitrip_futurehotel_haorder_order_list_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部