文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.order.list.query (星河-订单列表查询)

为C端用户提供酒店预订订单列表查询服务,包括订单支付状态、订单日期

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 10006373010 租户标识
token String 必须 tokenasdasd 用户token
order_status String 可选 待确认 订单状态
start_time String 可选 2021-05-25 入住时间
end_time String 可选 2021-05-30 入住时间
page Number 可选 1 页数
row Number 可选 10 每页行数

响应参数

名称 类型 示例值 描述
result Response 默认描述
  • └ success
  • Boolean
  • true
  • 成功
  • └ error_code
  • String
  • 000000
  • 错误码
  • order_dtos
  • OrderDto []
  • 查询结果
  • └ bed_name
  • String
  • 大床
  • 床型名称
  • └ currency
  • String
  • CNY
  • 币种
  • └ pay_remain_time
  • Number
  • 1234
  • 支付剩余时间
  • └ order_status
  • String
  • 2
  • 订单状态
  • └ total_amount
  • String
  • 264.00
  • 用户支付总价
  • └ book_date
  • String
  • 2021-12-15 16:37:45
  • 预订日期
  • └ contact_name
  • String
  • qiaofei
  • 入住人姓名
  • └ check_out_date
  • String
  • 2022-01-09
  • 离店时间
  • └ check_in_date
  • String
  • 2022-01-08
  • 入住时间
  • └ room_number
  • Number
  • 1
  • 房间数量
  • └ room_name
  • String
  • 双床房
  • 房型名称
  • └ hotel_name
  • String
  • 宜必思杭州西湖庆春路酒店
  • 酒店名称
  • └ order_code
  • String
  • 8159377729066958848
  • 订单号
  • └ room_photo_url
  • String
  • https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/room/B2U2/60186559/O1CN01zEOFal1qOB3qCWDiB_%21%216000000005485-0-hotel.jpg
  • 房型照片
  • └ shid
  • Number
  • 53900007
  • 酒店房型id
  • └ hotel_id
  • String
  • B2U2
  • 酒店外部id
  • └ adult_number
  • Number
  • 1
  • 成人数量
  • └ children_number
  • Number
  • 0
  • 儿童数量
  • └ place_order_type
  • String
  • COMMON
  • 下单类型
  • └ universal_coupon_id
  • String
  • 12345678
  • 通用券id
  • └ spread
  • String
  • 50.00
  • 差价
  • └ voucher_name
  • String
  • 三亚三日亲子套餐
  • 代金券名称
  • foreign_currency
  • ForeignCurrencyInfo
  • 外币信息
  • └ total_amount
  • String
  • 111.11
  • 外币支付金额,含税
  • └ total_price
  • String
  • 100.00
  • 外币基础价格,不包含税费等
  • └ total_tax
  • String
  • 11.11
  • 外币总税价
  • daily_price_list
  • DailyPrice []
  • 外币每日价格
  • └ date
  • String
  • 2021-12-31 00:00:00
  • 日期
  • └ really_price
  • String
  • 100.00
  • 不含税价格 单位元
  • └ out_really_price
  • String
  • 168.68
  • 不含税外币价格 单位元
  • └ currency
  • String
  • HKD
  • 外币币种
  • └ foreign_currency_payment
  • Boolean
  • false
  • 是否为外币支付
  • └ error_msg
  • String
  • 错误信息
  • └ page_size
  • Number
  • 10
  • 每页的数量
  • └ size
  • Number
  • 1
  • 当前页的数量
  • └ page_no
  • Number
  • 1
  • 当前页
  • └ has_next_page
  • Boolean
  • true
  • 是否有下一页
  • └ total_page_num
  • Number
  • 20
  • 总页数
  • └ total_count
  • Number
  • 200
  • 结果总数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyOrderListQueryRequest req = new AlitripMerchantGalaxyOrderListQueryRequest();
req.setTenantKey("10006373010");
req.setToken("tokenasdasd");
req.setOrderStatus("待确认");
req.setStartTime("2021-05-25");
req.setEndTime("2021-05-30");
req.setPage(1L);
req.setRow(10L);
AlitripMerchantGalaxyOrderListQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_order_list_query_response>
    <result>
        <success>true</success>
        <error_code>000000</error_code>
        <order_dtos>
            <order_dto>
                <bed_name>大床</bed_name>
                <currency>CNY</currency>
                <pay_remain_time>1234</pay_remain_time>
                <order_status>2</order_status>
                <total_amount>264.00</total_amount>
                <book_date>2021-12-15 16:37:45</book_date>
                <contact_name>qiaofei</contact_name>
                <check_out_date>2022-01-09</check_out_date>
                <check_in_date>2022-01-08</check_in_date>
                <room_number>1</room_number>
                <room_name>双床房</room_name>
                <hotel_name>宜必思杭州西湖庆春路酒店</hotel_name>
                <order_code>8159377729066958848</order_code>
                <room_photo_url>https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/room/B2U2/60186559/O1CN01zEOFal1qOB3qCWDiB_%21%216000000005485-0-hotel.jpg</room_photo_url>
                <shid>53900007</shid>
                <hotel_id>B2U2</hotel_id>
                <adult_number>1</adult_number>
                <children_number>0</children_number>
                <place_order_type>COMMON</place_order_type>
                <universal_coupon_id>12345678</universal_coupon_id>
                <spread>50.00</spread>
                <voucher_name>三亚三日亲子套餐</voucher_name>
                <foreign_currency>
                    <total_amount>111.11</total_amount>
                    <total_price>100.00</total_price>
                    <total_tax>11.11</total_tax>
                    <daily_price_list>
                        <daily_price>
                            <date>2021-12-31 00:00:00</date>
                            <really_price>100.00</really_price>
                            <out_really_price>168.68</out_really_price>
                        </daily_price>
                    </daily_price_list>
                    <currency>HKD</currency>
                </foreign_currency>
                <foreign_currency_payment>false</foreign_currency_payment>
            </order_dto>
        </order_dtos>
        <error_msg>无</error_msg>
        <page_size>10</page_size>
        <size>1</size>
        <page_no>1</page_no>
        <has_next_page>true</has_next_page>
        <total_page_num>20</total_page_num>
        <total_count>200</total_count>
    </result>
</alitrip_merchant_galaxy_order_list_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

返回
顶部