文档中心 > API类目 > 飞猪机票前台类目

alitrip.checkin.merchant.result.refund (退款回调请求)

退款回调请求

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
web_hook_refund_request WebHookRefundRequest 可选 请求参数
  • └ flight_info
  • String
  • 可选
  • json
  • 航班信息
  • └ passengers
  • String
  • 必须
  • json
  • 乘机人信息
  • └ external_order_id
  • String
  • 必须
  • 12345
  • 渠道外部订单号
  • └ caller_id
  • String
  • 必须
  • yuetu
  • 渠道id

响应参数

名称 类型 示例值 描述
result_success Boolean true 是否成功
refund_result_list WebHookRefundResultItem [] 调用结果
  • flight_info
  • WebHookFlightInfo
  • 航班信息
  • └ dep_airport_code
  • String
  • PEK
  • 出发机场
  • └ cabin_class
  • String
  • A
  • 仓位
  • └ carrier
  • String
  • CA
  • 实际承运航司
  • └ flight_no
  • String
  • CA1234
  • 航班号
  • └ dep_time
  • String
  • 2026-11-11 1:11:22
  • 出发时间
  • └ arr_time
  • String
  • 2026-11-11 1:11:22
  • 到达时间
  • └ arr_airport_code
  • String
  • HVB
  • 到达机场
  • passenger
  • WebHookPassenger
  • 乘机人
  • └ passenger_type
  • Number
  • 1
  • 乘机人类型
  • └ nationality
  • String
  • CN
  • 国籍
  • └ ticket_no
  • String
  • 232-1231231231
  • 票号
  • └ pnr
  • String
  • SDFGHJ
  • pnr
  • └ order_id
  • String
  • 11314141
  • 机票订单号
  • └ name
  • String
  • FEI/SHUHU
  • 乘机人姓名
  • └ currency
  • String
  • CNY
  • 币种
  • └ seat_no
  • String
  • 11A
  • 座位号
  • └ birth_date
  • String
  • 2026-11-11
  • 生日
  • └ seat_package_price
  • Number
  • 1200
  • 座位金额
  • └ refund_result
  • Boolean
  • true
  • 处理结果
message String sadasa 信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripCheckinMerchantResultRefundRequest req = new AlitripCheckinMerchantResultRefundRequest();
AlitripCheckinMerchantResultRefundRequest.WebHookRefundRequest obj1 = new AlitripCheckinMerchantResultRefundRequest.WebHookRefundRequest();
obj1.setFlightInfo("json");
obj1.setPassengers("json");
obj1.setExternalOrderId("12345");
obj1.setCallerId("yuetu");
req.setWebHookRefundRequest(obj1);
AlitripCheckinMerchantResultRefundResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_checkin_merchant_result_refund_response>
    <result_success>true</result_success>
    <refund_result_list>
        <web_hook_refund_result_item>
            <flight_info>
                <dep_airport_code>PEK</dep_airport_code>
                <cabin_class>A</cabin_class>
                <carrier>CA</carrier>
                <flight_no>CA1234</flight_no>
                <dep_time>2026-11-11 1:11:22</dep_time>
                <arr_time>2026-11-11 1:11:22</arr_time>
                <arr_airport_code>HVB</arr_airport_code>
            </flight_info>
            <passenger>
                <passenger_type>1</passenger_type>
                <nationality>CN</nationality>
                <ticket_no>232-1231231231</ticket_no>
                <pnr>SDFGHJ</pnr>
                <order_id>11314141</order_id>
                <name>FEI/SHUHU</name>
                <currency>CNY</currency>
                <seat_no>11A</seat_no>
                <birth_date>2026-11-11</birth_date>
                <seat_package_price>1200</seat_package_price>
            </passenger>
            <refund_result>true</refund_result>
        </web_hook_refund_result_item>
    </refund_result_list>
    <message>sadasa</message>
</alitrip_checkin_merchant_result_refund_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

返回
顶部