alitrip.btrip.flight.order.search (获取机票订单列表)

第三方OA厂商获取机票订单列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
rq OpenSearchRq 可选 请求
  • └ start_time
  • Date
  • 可选
  • 2017-05-01 00:00:00
  • 创建开始时间
  • └ apply_id
  • Number
  • 可选
  • 123
  • 申请单id
  • └ page
  • Number
  • 可选
  • 0
  • 页数,从1开始
  • └ page_size
  • Number
  • 可选
  • 10
  • 每页数据量,默认10,最高50
  • └ depart_id
  • String
  • 可选
  • depart_1
  • 部门id
  • └ end_time
  • Date
  • 可选
  • 2017-05-01 00:00:00
  • 创建结束时间
  • └ corp_id
  • String
  • 必须
  • corp_1
  • 企业id
  • └ user_id
  • String
  • 可选
  • user_1
  • 用户id
  • └ update_end_time
  • Date
  • 可选
  • 2017-05-01 00:00:00
  • 更新开始时间
  • └ update_start_time
  • Date
  • 可选
  • 2017-05-01 00:00:00
  • 更新结束时间

响应参数

名称 类型 示例值 描述
result BtriphomeResultSupport result 返回数据
  • flight_order_list
  • OpenFlightOrderRs []
  • flight_order_list
  • 机票订单列表
  • └ id
  • Number
  • 123
  • 机票订单id
  • └ gmt_create
  • Date
  • 2017-05-01 00:00:00
  • 创建时间
  • └ gmt_modified
  • Date
  • 2017-05-01 00:00:00
  • 更新时间
  • └ corp_id
  • String
  • corp_1
  • 企业id
  • └ corp_name
  • String
  • 测试企业
  • 企业名称
  • └ user_id
  • String
  • user_1
  • 用户id
  • └ user_name
  • String
  • 测试用户
  • 用户名称
  • └ depart_id
  • String
  • depart_1
  • 部门id
  • └ depart_name
  • String
  • 测试部门
  • 部门名称
  • └ apply_id
  • Number
  • 123
  • 申请单id
  • └ contact_name
  • String
  • 测试用户
  • 联系人名称
  • └ contact_phone
  • String
  • 13600000000
  • 联系人电话
  • └ dep_city
  • String
  • 北京
  • 出发城市
  • └ arr_city
  • String
  • 上海
  • 到达城市
  • └ dep_date
  • Date
  • 2017-05-01 00:00:00
  • 出发日期
  • └ ret_date
  • Date
  • 2017-05-01 00:00:00
  • 到达日期
  • └ trip_type
  • Number
  • 0
  • 行程类型。0:单程,1:往返,2:中转
  • └ passenger_count
  • Number
  • 1
  • 乘机人数量
  • └ cabin_class
  • String
  • 经济舱
  • 舱位类型
  • └ status
  • Number
  • 1
  • 订单状态:0待支付,1出票中,2已关闭(如:未支付已关闭),3有改签单,4有退票单,5出票成功,6退票申请中,7改签申请中
  • insure_info_list
  • OpenFlightInsureInfo []
  • insure_info_list
  • 保险信息
  • └ name
  • String
  • 测试用户
  • 乘机人(保险人)姓名
  • └ status
  • Number
  • 1
  • 状态:1已出保 2已退保'
  • └ insure_no
  • String
  • abcdef
  • 保单号
  • price_info_list
  • OpenPriceInfo []
  • price_info_list
  • 价目信息
  • └ pay_type
  • Number
  • 1
  • 结算方式:1:个人现付,2:企业现付,4:企业月结,8、企业预存
  • └ category
  • String
  • 机票费
  • 交易类目
  • └ type
  • Number
  • 1
  • 资金流向:1:支出,2:收入
  • └ price
  • String
  • 100.0
  • 价格
  • └ gmt_create
  • Date
  • 2017-05-01 00:00:00
  • 流水创建时间
  • └ alipay_trade_no
  • String
  • 20180000000000000
  • 支付流水号
  • └ passenger_name
  • String
  • 张三,李四
  • 乘机人,多个用‘,’分割
  • └ trade_id
  • String
  • 78787870001
  • 订单交易流水号
  • cost_center
  • OpenCostCenterDo
  • 成本中心
  • 成本中心对象
  • └ number
  • String
  • abc
  • 成本中心编号
  • └ name
  • String
  • 测试成本中心
  • 成本中心名称
  • └ corp_id
  • String
  • corp_1
  • 企业id
  • invoice
  • OpenInvoiceDo
  • 发票信息对象
  • invoiceDO
  • └ id
  • Number
  • 123
  • 商旅发票id
  • └ title
  • String
  • 阿里巴巴
  • 发票抬头
  • └ arr_airport
  • String
  • 白云机场
  • 到达机场
  • └ dep_airport
  • String
  • 萧山机场
  • 出发机场
  • └ passenger_name
  • String
  • 张三,李四
  • 乘机人,多个用‘,’分割
  • └ flight_no
  • String
  • A123456
  • 航班号
  • └ discount
  • String
  • 30.12%
  • 折扣
  • └ thirdpart_itinerary_id
  • String
  • abcdef
  • 第三方行程id
  • user_affiliate_list
  • OpenUserAffiliateDo []
  • 张三,李四
  • 出行人列表
  • └ user_id
  • String
  • 1234
  • 出行人ID
  • └ user_name
  • String
  • 李四
  • 出行人名称
  • └ success
  • Boolean
  • true
  • 成功标识
  • └ result_msg
  • String
  • 成功
  • 返回信息
  • └ result_code
  • Number
  • 0
  • 返回码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripFlightOrderSearchRequest req = new AlitripBtripFlightOrderSearchRequest();
AlitripBtripFlightOrderSearchRequest.OpenSearchRq obj1 = new AlitripBtripFlightOrderSearchRequest.OpenSearchRq();
obj1.setStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00"));
obj1.setApplyId(123L);
obj1.setPage(0L);
obj1.setPageSize(10L);
obj1.setDepartId("depart_1");
obj1.setEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00"));
obj1.setCorpId("corp_1");
obj1.setUserId("user_1");
obj1.setUpdateEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00"));
obj1.setUpdateStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00"));
req.setRq(obj1);
AlitripBtripFlightOrderSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_btrip_flight_order_search_response>
    <result>
        <flight_order_list>
            <open_flight_order_rs>
                <id>123</id>
                <gmt_create>2017-05-01 00:00:00</gmt_create>
                <gmt_modified>2017-05-01 00:00:00</gmt_modified>
                <corp_id>corp_1</corp_id>
                <corp_name>测试企业</corp_name>
                <user_id>user_1</user_id>
                <user_name>测试用户</user_name>
                <depart_id>depart_1</depart_id>
                <depart_name>测试部门</depart_name>
                <apply_id>123</apply_id>
                <contact_name>测试用户</contact_name>
                <contact_phone>13600000000</contact_phone>
                <dep_city>北京</dep_city>
                <arr_city>上海</arr_city>
                <dep_date>2017-05-01 00:00:00</dep_date>
                <ret_date>2017-05-01 00:00:00</ret_date>
                <trip_type>0</trip_type>
                <passenger_count>1</passenger_count>
                <cabin_class>经济舱</cabin_class>
                <status>1</status>
                <insure_info_list>
                    <open_flight_insure_info>
                        <name>测试用户</name>
                        <status>1</status>
                        <insure_no>abcdef</insure_no>
                    </open_flight_insure_info>
                </insure_info_list>
                <price_info_list>
                    <open_price_info>
                        <pay_type>1</pay_type>
                        <category>机票费</category>
                        <type>1</type>
                        <price>100.0</price>
                        <gmt_create>2017-05-01 00:00:00</gmt_create>
                        <alipay_trade_no>20180000000000000</alipay_trade_no>
                        <passenger_name>张三,李四</passenger_name>
                        <trade_id>78787870001</trade_id>
                    </open_price_info>
                </price_info_list>
                <cost_center>
                    <number>abc</number>
                    <name>测试成本中心</name>
                    <corp_id>corp_1</corp_id>
                </cost_center>
                <invoice>
                    <id>123</id>
                    <title>阿里巴巴</title>
                </invoice>
                <arr_airport>白云机场</arr_airport>
                <dep_airport>萧山机场</dep_airport>
                <passenger_name>张三,李四</passenger_name>
                <flight_no>A123456</flight_no>
                <discount>30.12%</discount>
                <thirdpart_itinerary_id>abcdef</thirdpart_itinerary_id>
                <user_affiliate_list>
                    <open_user_affiliate_do>
                        <user_id>1234</user_id>
                        <user_name>李四</user_name>
                    </open_user_affiliate_do>
                </user_affiliate_list>
            </open_flight_order_rs>
        </flight_order_list>
        <success>true</success>
        <result_msg>成功</result_msg>
        <result_code>0</result_code>
    </result>
</alitrip_btrip_flight_order_search_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

返回
顶部