文档中心 > API类目 > 阿信-交易API

taobao.alitrip.travel.axin.hotel.order.detail (阿信酒店分销-订单详情接口)

阿信酒店订单详情的读取接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
pur_sub_order_id Number 可选 123123123 采购单id
outer_order_id String 可选 321321321 外部订单id
distributor_tid Number 必须 123123 分销商id
resource_channel String 可选 F_HOTEL 资源渠道

响应参数

名称 类型 示例值 描述
result Result 1 返回结果
  • └ success
  • Boolean
  • true
  • 成功与否
  • └ error_code
  • String
  • isp.system-error
  • 错误码
  • └ error_msg
  • String
  • 系统错误
  • 错误信息
  • data
  • HotelOrderQueryRes
  • 1
  • 返回参数
  • hotel_info
  • HotelInfo
  • 1
  • 酒店信息
  • └ hotel_tel
  • String
  • 021-1234567
  • 酒店联系电话
  • └ hotel_address
  • String
  • XX路XX号
  • 酒店地址
  • └ shid
  • Number
  • 123
  • 酒店id
  • └ hotel_name
  • String
  • XX酒店
  • 酒店名称
  • room_info
  • RoomInfo
  • 1
  • 房间信息
  • └ room_facility_list
  • String []
  • 含双早,双床1.35米,有窗
  • 房型设施
  • └ room_name
  • String
  • 大床房
  • 房型名称
  • order_fulfill_info
  • OrderFulfillInfo
  • 1
  • 订单履约信息
  • └ room_number
  • Number
  • 2
  • 房间数量
  • └ check_out
  • Date
  • 2020-10-01 00:00:00
  • 离店时间
  • └ check_in
  • Date
  • 2020-10-01 00:00:00
  • 入住时间
  • └ late_arrive_time
  • Date
  • 2020-10-01 00:00:00
  • 最晚到店时间
  • └ confirm_code
  • String
  • 123
  • 酒店确认号
  • └ hour_room
  • Boolean
  • false
  • 是否小时房
  • └ check_in_time
  • String
  • 2022-12-13 08:00:00
  • 小时房已选入住时间
  • └ check_out_time
  • String
  • 2022-12-13 12:00:00
  • 小时房已选离店时间
  • └ hourage
  • Number
  • 4
  • 小时房连住时长
  • └ actual_total_fee
  • Number
  • 1000
  • 实际支付总金额,单位为分
  • daily_info_list
  • DailyInfo []
  • 1
  • 每日价格信息
  • └ cny_price
  • Number
  • 10000
  • 价格,单位为分
  • └ date
  • Date
  • 2020-10-01
  • 日期
  • board_d_t_o
  • BoardDto
  • 1
  • 餐食
  • └ board_num
  • Number
  • 2
  • 餐食数量
  • └ board_type
  • Number
  • 1
  • 餐食种类
  • └ price
  • Number
  • 100
  • 原币种价格
  • └ status_desc
  • String
  • 已下单
  • 订单状态描述
  • └ status
  • Number
  • 1
  • 状态
  • └ outer_order_id
  • String
  • 321321321
  • 外部订单号
  • └ purchase_order_id
  • Number
  • 123123123
  • 采购单id
  • └ refund_fee
  • Number
  • 1000
  • 退款金额,单位为分(产生退款时不为空)
  • └ fliggy_order_id
  • String
  • 128192
  • 飞猪订单号
  • └ pay_id
  • Number
  • 12334
  • 支付id
  • └ exchange_rate
  • BigDecimal
  • 1
  • 汇率
  • └ currency_code
  • String
  • CNY
  • 币种
  • └ origin_actual_total_fee
  • Number
  • 100
  • 实际支付原币种金额

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTravelAxinHotelOrderDetailRequest req = new AlitripTravelAxinHotelOrderDetailRequest();
req.setPurSubOrderId(123123123L);
req.setOuterOrderId("321321321");
req.setDistributorTid(123123L);
req.setResourceChannel("F_HOTEL");
AlitripTravelAxinHotelOrderDetailResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_travel_axin_hotel_order_detail_response>
    <result>
        <success>true</success>
        <error_code>isp.system-error</error_code>
        <error_msg>系统错误</error_msg>
        <data>
            <hotel_info>
                <hotel_tel>021-1234567</hotel_tel>
                <hotel_address>XX路XX号</hotel_address>
                <shid>123</shid>
                <hotel_name>XX酒店</hotel_name>
            </hotel_info>
            <room_info>
                <room_facility_list>
                    <string>含双早</string>
                    <string>双床1.35米</string>
                    <string>有窗</string>
                </room_facility_list>
                <room_name>大床房</room_name>
            </room_info>
            <order_fulfill_info>
                <room_number>2</room_number>
                <check_out>2020-10-01 00:00:00</check_out>
                <check_in>2020-10-01 00:00:00</check_in>
                <late_arrive_time>2020-10-01 00:00:00</late_arrive_time>
                <confirm_code>123</confirm_code>
                <hour_room>false</hour_room>
                <check_in_time>2022-12-13 08:00:00</check_in_time>
                <check_out_time>2022-12-13 12:00:00</check_out_time>
                <hourage>4</hourage>
            </order_fulfill_info>
            <actual_total_fee>1000</actual_total_fee>
            <daily_info_list>
                <daily_info>
                    <cny_price>10000</cny_price>
                    <date>2020-10-01</date>
                    <board_d_t_o>
                        <board_num>2</board_num>
                        <board_type>1</board_type>
                    </board_d_t_o>
                    <price>100</price>
                </daily_info>
            </daily_info_list>
            <status_desc>已下单</status_desc>
            <status>1</status>
            <outer_order_id>321321321</outer_order_id>
            <purchase_order_id>123123123</purchase_order_id>
            <refund_fee>1000</refund_fee>
            <fliggy_order_id>128192</fliggy_order_id>
            <pay_id>12334</pay_id>
            <exchange_rate>1</exchange_rate>
            <currency_code>CNY</currency_code>
            <origin_actual_total_fee>100</origin_actual_total_fee>
        </data>
    </result>
</alitrip_travel_axin_hotel_order_detail_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

返回
顶部