alitrip.agent.flight.sell.modify.approve (销售改签确认)

销售改签确认

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param ModifyApproveRequestDto 必须 入参对象
  • └ apply_id
  • String
  • 必须
  • 123
  • 改签申请单号
  • └ domestic_intl
  • Number
  • 必须
  • 1
  • 国内国际标识:1:国内,2:国际
  • change_list
  • ModifyItemDTO []
  • 必须
  • 改签数据
  • └ passenger_name
  • String
  • 必须
  • tester
  • 乘客姓名
  • └ tickets
  • String []
  • 必须
  • ['012-123123123123']
  • 票号
  • └ pnr
  • String
  • 可选
  • HOYQ1R
  • pnr(必填),无编码出票时可不填
  • after_change_segments
  • ModifySegmentDTO []
  • 必须
  • 改签后航段
  • └ cabin_class
  • String
  • 可选
  • Y
  • 舱等: F:头等舱, C:商务舱, Y:经济舱, S:超级经济舱, P:超值经济舱, M:标准经济舱, W:超级经济舱
  • └ flight_no
  • String
  • 必须
  • SQ123
  • 航班号
  • └ dep_time
  • Date
  • 必须
  • 2020-12-12 11:11:11
  • 起飞时间
  • └ arr_city
  • String
  • 必须
  • HKG
  • 到达城市
  • └ dep_city
  • String
  • 必须
  • PEK
  • 起飞城市
  • └ cabin
  • String
  • 必须
  • Y
  • 舱位
  • └ segment_index
  • Number
  • 可选
  • 1
  • 航段序号
  • └ arr_airport
  • String
  • 必须
  • PEK
  • 到达机场
  • └ dep_airport
  • String
  • 必须
  • HKG
  • 起飞机场
  • └ arr_time
  • Date
  • 必须
  • 2020-12-12 11:11:11
  • 到达时间
  • └ od_index
  • Number
  • 可选
  • 1
  • 航程序号
  • └ ticket_no
  • String
  • 可选
  • 012-123123123123
  • 该航段对应的票号
  • └ modify_fee
  • Number
  • 可选
  • 10000
  • 改签费用
  • └ upgrade_fee
  • Number
  • 可选
  • 10000
  • 升舱费用
  • before_change_segments
  • ModifyBeforeSegmentDTO []
  • 必须
  • 改前航段
  • └ arr_city
  • String
  • 必须
  • PEK
  • 到达城市
  • └ dep_city
  • String
  • 必须
  • HKG
  • 起飞城市
  • └ refund_way_type
  • Number
  • 必须
  • 0
  • 0:原路退回; 1:退银行卡; 2:原路退回+退银行卡

响应参数

名称 类型 示例值 描述
result ResultDto 异步获取历史数据接口返回结果
  • └ success
  • Boolean
  • true
  • 执行结果
  • └ error_code
  • String
  • 000
  • 错误码:000:系统异常, 001:请求参数不合法, 002:权限不足, 003:操作失败, 004:流量管控
  • └ error_msg
  • String
  • 错误信息
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAgentFlightSellModifyApproveRequest req = new AlitripAgentFlightSellModifyApproveRequest();
AlitripAgentFlightSellModifyApproveRequest.ModifyApproveRequestDto obj1 = new AlitripAgentFlightSellModifyApproveRequest.ModifyApproveRequestDto();
obj1.setApplyId("123");
obj1.setDomesticIntl(1L);
List<AlitripAgentFlightSellModifyApproveRequest.ModifyItemDTO> list3 = new ArrayList<AlitripAgentFlightSellModifyApproveRequest.ModifyItemDTO>();
AlitripAgentFlightSellModifyApproveRequest.ModifyItemDTO obj4 = new AlitripAgentFlightSellModifyApproveRequest.ModifyItemDTO();
list3.add(obj4);
obj4.setPassengerName("tester");
obj4.setTickets("'012-123123123123'");
obj4.setPnr("HOYQ1R");
List<AlitripAgentFlightSellModifyApproveRequest.ModifySegmentDTO> list7 = new ArrayList<AlitripAgentFlightSellModifyApproveRequest.ModifySegmentDTO>();
AlitripAgentFlightSellModifyApproveRequest.ModifySegmentDTO obj8 = new AlitripAgentFlightSellModifyApproveRequest.ModifySegmentDTO();
list7.add(obj8);
obj8.setCabinClass("Y");
obj8.setFlightNo("SQ123");
obj8.setDepTime(StringUtils.parseDateTime("2020-12-12 11:11:11"));
obj8.setArrCity("HKG");
obj8.setDepCity("PEK");
obj8.setCabin("Y");
obj8.setSegmentIndex(1L);
obj8.setArrAirport("PEK");
obj8.setDepAirport("HKG");
obj8.setArrTime(StringUtils.parseDateTime("2020-12-12 11:11:11"));
obj8.setOdIndex(1L);
obj8.setTicketNo("012-123123123123");
list5.setAfterChangeSegments(list7);
obj4.setModifyFee(10000L);
obj4.setUpgradeFee(10000L);
List<AlitripAgentFlightSellModifyApproveRequest.ModifyBeforeSegmentDTO> list11 = new ArrayList<AlitripAgentFlightSellModifyApproveRequest.ModifyBeforeSegmentDTO>();
AlitripAgentFlightSellModifyApproveRequest.ModifyBeforeSegmentDTO obj12 = new AlitripAgentFlightSellModifyApproveRequest.ModifyBeforeSegmentDTO();
list11.add(obj12);
obj12.setArrCity("PEK");
obj12.setDepCity("HKG");
list9.setBeforeChangeSegments(list11);
obj1.setChangeList(list3);
obj1.setRefundWayType(0L);
req.setParam(obj1);
AlitripAgentFlightSellModifyApproveResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_agent_flight_sell_modify_approve_response>
    <result>
        <success>true</success>
        <error_code>000</error_code>
        <error_msg>错误信息</error_msg>
    </result>
</alitrip_agent_flight_sell_modify_approve_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

返回
顶部