alitrip.btrip.flight.distribution.change.detail (商旅机票改签详情接口)

商旅机票改签详情接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_btrip_flight_order_operate_common_rq BtripFlightOrderOperateCommonRq 可选 获取改签单详情入参
  • └ dis_order_id
  • String
  • 必须
  • 1234
  • 分销外部订单号
  • └ sub_channel
  • String
  • 必须
  • jianhang001
  • 分销子渠道,通常为corpId
  • └ dis_sub_order_id
  • String
  • 必须
  • 1234
  • 分销外部改签单号

响应参数

名称 类型 示例值 描述
result HisvResult {} 响应信息
  • module
  • BtripFlightChangeDetailRs
  • {}
  • 改签信息
  • └ alipay_trade_no
  • String
  • demo
  • 交易流水号
  • └ extra
  • String
  • {}
  • 扩展信息
  • flight_info_list
  • OrderFlightInfo []
  • 航班信息
  • └ airline_code
  • String
  • MU
  • 航司编码
  • └ arr_airport
  • String
  • HGH
  • 到达机场
  • └ arr_airport_code
  • String
  • HGH
  • 到达机场编码
  • └ arr_city
  • String
  • 上海
  • 到达城市名称
  • └ arr_city_code
  • String
  • BJS
  • 到达城市编码
  • └ arr_time
  • String
  • 2021-01-01 10:10:00
  • 到达时间
  • └ baggage
  • String
  • demo
  • 行李额
  • └ build_price
  • Number
  • 0
  • 机建费用
  • └ cabin
  • String
  • S
  • 舱位
  • └ cabin_class
  • String
  • Y
  • 舱等
  • └ carrier
  • String
  • ZH1234
  • 承运航班
  • └ dep_airport
  • String
  • BJS
  • 出发机场
  • └ dep_airport_code
  • String
  • PKX
  • 出发机场编码
  • └ dep_city
  • String
  • 北京
  • 出发城市
  • └ dep_city_code
  • String
  • BJS
  • 出发城市编码
  • └ dep_time
  • String
  • 2021-01-01 10:10:00
  • 出发时间
  • └ flight_no
  • String
  • ZH1234
  • 航班号
  • └ meal
  • String
  • {}
  • 餐食
  • └ oil_price
  • Number
  • 0
  • 燃油费
  • └ segment_type
  • Number
  • 1
  • 航段类型
  • └ stop_arr_time
  • String
  • 2021-01-01 10:10:00
  • 经停到达时间
  • └ stop_city
  • String
  • BJS
  • 经停城市
  • └ stop_dep_time
  • String
  • 2021-01-01 10:10:00
  • 经停出发时间
  • └ ticket_price
  • Number
  • 0
  • 票费用
  • └ last_flight_no
  • String
  • ZH1234
  • 改签前航班号
  • └ last_cabin
  • String
  • S
  • 改签前舱位
  • └ tuigaiqian_info
  • String
  • {}
  • 改签后的退改签文案
  • └ dep_terminal
  • String
  • --
  • 出发航站楼
  • └ arr_terminal
  • String
  • --
  • 到达航站楼
  • └ airline_name
  • String
  • 国航
  • 航司名称
  • └ airline_simple_name
  • String
  • ***航
  • 航司简称
  • └ arr_airport_code_name
  • String
  • **机场
  • 到达机场名称
  • └ dep_airport_code_name
  • String
  • **机场
  • 出发机场名称
  • └ last_pay_time
  • String
  • 2021-01-01 10:10:00
  • 最迟支付时间
  • └ pay_status
  • Number
  • 1
  • 支付状态
  • └ pay_time
  • String
  • 2021-01-01 10:10:00
  • 支付时间
  • └ settle_price
  • Number
  • 0
  • 结算费用
  • └ settle_type
  • Number
  • 1
  • 结算类型
  • └ status
  • Number
  • 1
  • 状态
  • └ total_change_price
  • Number
  • 0
  • 总改签费用
  • └ total_price
  • Number
  • 0
  • 总费用
  • └ total_upgrade_price
  • Number
  • 0
  • 总升舱费用
  • traveler_info_list
  • OrderTravelerInfo []
  • 乘机人信息
  • └ passenger_name
  • String
  • 张三
  • 乘客名称
  • └ passenger_type
  • String
  • 1
  • 乘客类型
  • └ ticket_no
  • String
  • 000-0000000000
  • 票号
  • └ user_id
  • String
  • 123456
  • 用户编号
  • └ open_ticket_status
  • Number
  • demo
  • openTicket状态
  • └ dis_sub_order_id
  • String
  • test908773
  • 分销外部改签单号
  • └ dis_order_id
  • String
  • test908773
  • 分销外部订单号
  • └ btrip_sub_order_id
  • Number
  • 00000000
  • 商旅改签单号
  • └ btrip_order_id
  • Number
  • 00000000
  • 商旅订单号
  • └ result_code
  • Number
  • 0
  • 错误码
  • └ result_msg
  • String
  • demo
  • 错误信息
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripFlightDistributionChangeDetailRequest req = new AlitripBtripFlightDistributionChangeDetailRequest();
AlitripBtripFlightDistributionChangeDetailRequest.BtripFlightOrderOperateCommonRq obj1 = new AlitripBtripFlightDistributionChangeDetailRequest.BtripFlightOrderOperateCommonRq();
obj1.setDisOrderId("1234");
obj1.setSubChannel("jianhang001");
obj1.setDisSubOrderId("1234");
req.setParamBtripFlightOrderOperateCommonRq(obj1);
AlitripBtripFlightDistributionChangeDetailResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_btrip_flight_distribution_change_detail_response>
    <result>
        <module>
            <alipay_trade_no>demo</alipay_trade_no>
            <extra>{}</extra>
            <flight_info_list>
                <order_flight_info>
                    <airline_code>MU</airline_code>
                    <arr_airport>HGH</arr_airport>
                    <arr_airport_code>HGH</arr_airport_code>
                    <arr_city>上海</arr_city>
                    <arr_city_code>BJS</arr_city_code>
                    <arr_time>2021-01-01 10:10:00</arr_time>
                    <baggage>demo</baggage>
                    <build_price>0</build_price>
                    <cabin>S</cabin>
                    <cabin_class>Y</cabin_class>
                    <carrier>ZH1234</carrier>
                    <dep_airport>BJS</dep_airport>
                    <dep_airport_code>PKX</dep_airport_code>
                    <dep_city>北京</dep_city>
                    <dep_city_code>BJS</dep_city_code>
                    <dep_time>2021-01-01 10:10:00</dep_time>
                    <flight_no>ZH1234</flight_no>
                    <meal>{}</meal>
                    <oil_price>0</oil_price>
                    <segment_type>1</segment_type>
                    <stop_arr_time>2021-01-01 10:10:00</stop_arr_time>
                    <stop_city>BJS</stop_city>
                    <stop_dep_time>2021-01-01 10:10:00</stop_dep_time>
                    <ticket_price>0</ticket_price>
                    <last_flight_no>ZH1234</last_flight_no>
                    <last_cabin>S</last_cabin>
                    <tuigaiqian_info>{}</tuigaiqian_info>
                    <dep_terminal>--</dep_terminal>
                    <arr_terminal>--</arr_terminal>
                    <airline_name>国航</airline_name>
                    <airline_simple_name>***航</airline_simple_name>
                    <arr_airport_code_name>**机场</arr_airport_code_name>
                    <dep_airport_code_name>**机场</dep_airport_code_name>
                </order_flight_info>
            </flight_info_list>
            <last_pay_time>2021-01-01 10:10:00</last_pay_time>
            <pay_status>1</pay_status>
            <pay_time>2021-01-01 10:10:00</pay_time>
            <settle_price>0</settle_price>
            <settle_type>1</settle_type>
            <status>1</status>
            <total_change_price>0</total_change_price>
            <total_price>0</total_price>
            <total_upgrade_price>0</total_upgrade_price>
            <traveler_info_list>
                <order_traveler_info>
                    <passenger_name>张三</passenger_name>
                    <passenger_type>1</passenger_type>
                    <ticket_no>000-0000000000</ticket_no>
                    <user_id>123456</user_id>
                    <open_ticket_status>demo</open_ticket_status>
                </order_traveler_info>
            </traveler_info_list>
            <dis_sub_order_id>test908773</dis_sub_order_id>
            <dis_order_id>test908773</dis_order_id>
            <btrip_sub_order_id>00000000</btrip_sub_order_id>
            <btrip_order_id>00000000</btrip_order_id>
        </module>
        <result_code>0</result_code>
        <result_msg>demo</result_msg>
        <success>true</success>
    </result>
</alitrip_btrip_flight_distribution_change_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

返回
顶部