商旅机票分销-退票费预计算
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_btrip_flight_refund_pre_cal_rq | BtripFlightRefundPreCalRq | 可选 | 退票费预计算请求入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | 响应信息 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripFlightDistributionRefundPrecalRequest req = new AlitripBtripFlightDistributionRefundPrecalRequest(); AlitripBtripFlightDistributionRefundPrecalRequest.BtripFlightRefundPreCalRq obj1 = new AlitripBtripFlightDistributionRefundPrecalRequest.BtripFlightRefundPreCalRq(); obj1.setIsVoluntary(1L); obj1.setDisOrderId( "51724621" ); List<AlitripBtripFlightDistributionRefundPrecalRequest.PassengerSegmentInfo> list3 = new ArrayList<AlitripBtripFlightDistributionRefundPrecalRequest.PassengerSegmentInfo>(); AlitripBtripFlightDistributionRefundPrecalRequest.PassengerSegmentInfo obj4 = new AlitripBtripFlightDistributionRefundPrecalRequest.PassengerSegmentInfo(); list3.add(obj4); obj4.setFlightNo( "MU8471" ); obj4.setPassengerName( "张三" ); obj4.setUserId( "351761" ); obj1.setPassengerSegmentInfoList(list3); obj1.setSubChannel( "jianhang001" ); obj1.setTicketNos( "1111,2222" ); req.setParamBtripFlightRefundPreCalRq(obj1); AlitripBtripFlightDistributionRefundPrecalResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 | < alitrip_btrip_flight_distribution_refund_precal_response > < result > < module > < flight_change ></ flight_change > < pre_refund_money ></ pre_refund_money > < refund_fee ></ refund_fee > </ module > < result_code ></ result_code > < result_msg ></ result_msg > < success ></ success > </ result > </ alitrip_btrip_flight_distribution_refund_precal_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|