感谢您的反馈!
意向单列表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
intention_list_request_dto | IntentionListRequestDTO | 必须 | 入参对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | PageDTO | 分页对象 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripAgentFlightIntentionListRequest req = new AlitripAgentFlightIntentionListRequest(); AlitripAgentFlightIntentionListRequest.IntentionListRequestDTO obj1 = new AlitripAgentFlightIntentionListRequest.IntentionListRequestDTO(); obj1.setMarketingAirline("CA"); obj1.setOperatingFlightNo("CA1234"); obj1.setDepAirportCode("PEK"); obj1.setOnlyInit(true); obj1.setMarketingFlightNo("MU2222"); obj1.setDepTimeEnd(StringUtils.parseDateTime("2022-11-11 11:11:11")); obj1.setPage(0L); obj1.setArrAirportCode("SHA"); obj1.setDepTimeStart(StringUtils.parseDateTime("2022-11-10 11:11:11")); obj1.setOperatingAirline("MU"); req.setIntentionListRequestDto(obj1); AlitripAgentFlightIntentionListResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_agent_flight_intention_list_response> <result> <data> <t> <baggage_rule> <baggage_item> <baggage_b_o_list> <baggage_d_t_o> <baby_car>空</baby_car> <baggage_all_weight>true</baggage_all_weight> <baggage_free_pcs>1</baggage_free_pcs> <baggage_size>30*20*40</baggage_size> <baggage_weight>5</baggage_weight> <carry_bag_all_weight>true</carry_bag_all_weight> <carry_bag_free_pcs>1</carry_bag_free_pcs> <carry_bag_size>30*20*40</carry_bag_size> <carry_bag_weight>5</carry_bag_weight> <excess_instruction>空</excess_instruction> <od_index>1</od_index> <passenger_type>1</passenger_type> <segment_index>1</segment_index> <total_pcs>1</total_pcs> <total_weight>20</total_weight> <weight_unit>KG</weight_unit> </baggage_d_t_o> </baggage_b_o_list> </baggage_item> </baggage_rule> <domestic_intl>1</domestic_intl> <flight_info> <airway>CZ</airway> <arr_airport_code>PEK</arr_airport_code> <dep_airport_code>SHA</dep_airport_code> <dep_date_time>11111111111</dep_date_time> <segment_infos> <segment_info_d_t_o> <arr_airport>PEK</arr_airport> <arr_city>BJS</arr_city> <arr_time>11111111111</arr_time> <cabin_info_list> <cabin_info_d_t_o> <passenger_type>1</passenger_type> <cabin>Y</cabin> <cabin_class>Y</cabin_class> </cabin_info_d_t_o> </cabin_info_list> <dep_airport>SHA</dep_airport> <dep_city>SHA</dep_city> <dep_time>11111111111</dep_time> <marketing_airline>CZ</marketing_airline> <marketing_flight_no>CZ1234</marketing_flight_no> <od_index>1</od_index> <operating_airline>MU</operating_airline> <operating_flight_no>MU5678</operating_flight_no> <segment_index>1</segment_index> </segment_info_d_t_o> </segment_infos> </flight_info> <id>123456</id> <passenger_item_infos> <passenger_infos_d_t_o> <build_price>5000</build_price> <nums>1</nums> <oil_price>10000</oil_price> <passenger_type>1</passenger_type> <sale_price>10000</sale_price> <ticket_price>12000</ticket_price> <passenger_base_infos> <passenger_base_info> <age>23</age> <card_type>1</card_type> <id_card>4201</id_card> </passenger_base_info> </passenger_base_infos> </passenger_infos_d_t_o> </passenger_item_infos> <penalty_rule> <penalty_item> <penalty_b_o_list> <penalty_d_t_o> <currency>CNY</currency> <descs>1</descs> <end_time>11111111</end_time> <fee>50000</fee> <od_index>1</od_index> <passenger_type>1</passenger_type> <penalty_support_type>1</penalty_support_type> <penalty_type>1</penalty_type> <percent>20</percent> <segment_index>1</segment_index> <start_time>1111111</start_time> <ticket_segments_status>1</ticket_segments_status> <time_unit>1</time_unit> </penalty_d_t_o> </penalty_b_o_list> </penalty_item> </penalty_rule> <total_build_price>5000</total_build_price> <total_oil_price>10000</total_oil_price> <total_price>150000</total_price> </t> </data> <error_code>1</error_code> <error_msg>1</error_msg> <success>true</success> <total>50</total> </result> </alitrip_agent_flight_intention_list_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|