taobao.fliggy.flight.agent.auxproduct.dimension.flight.push (航班维度辅营产品投放)

航班维度辅营产品投放

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ancillary_price_dynamic_push_dto AncillaryPriceDynamicPushDTO 必须 行李动态报价推送参数
  • └ trace_id
  • String
  • 必须
  • ABCDE12345
  • 日志id
  • └ cabin_class
  • Number
  • 必须
  • 1
  • 舱等:1经济;2商务;3头等;4超经
  • └ agent_id
  • Number
  • 可选
  • 1234
  • 代理商ID
  • └ departure_airport
  • String
  • 可选
  • PEK
  • 出发机场三字码
  • └ departure_date
  • String
  • 可选
  • 20250901
  • 出发日期yyyyMMdd
  • └ fare_family
  • String
  • 可选
  • Fly
  • 机票商品的fareFamily信息
  • services
  • AncillaryServiceDTO []
  • 可选
  • list
  • 辅营服务信息
  • metadata
  • AncillaryMetadataDTO
  • 可选
  • 辅营规格信息
  • └ size
  • String
  • 可选
  • 30 × 40 × 50CM,L+W+H<=157cm
  • 规格描述
  • └ piece
  • Number
  • 可选
  • 1
  • 件数
  • └ weight
  • Number
  • 可选
  • 30
  • 重量,单位KG
  • └ type
  • String
  • 可选
  • StandardCheckInBaggage
  • 行李类型,StandardCheckInBaggage
  • └ is_all_weight
  • Boolean
  • 可选
  • true
  • 是否总重
  • └ level
  • String
  • 可选
  • chargeable
  • 价格类型,chargeable
  • price
  • PriceDTO
  • 可选
  • 价格信息
  • └ total_amount
  • String
  • 可选
  • 100.5
  • 行李价格
  • └ currency
  • String
  • 可选
  • CNY
  • 货币类型
  • └ passenger_types
  • String []
  • 可选
  • ADT
  • 乘机人类型,ADT;CHD;INF
  • └ type
  • String
  • 可选
  • Baggage
  • 辅营类型,Baggage
  • └ arrival_airport
  • String
  • 可选
  • PVG
  • 到达机场三字码
  • └ channel_id
  • String
  • 可选
  • 1234
  • 渠道ID
  • segments
  • FlightSegmentInfoDTO []
  • 可选
  • list
  • 航班信息
  • └ departure_time
  • String
  • 可选
  • 202509011520
  • 出发时间yyyyMMddHHmm
  • └ marketing_flight_number
  • String
  • 可选
  • 123
  • 市场航班号(不含航司二字码)
  • └ marketing_carrier
  • String
  • 可选
  • AK
  • 市场航司二字码
  • └ operating_flight_number
  • String
  • 可选
  • 123
  • 承运航班号(不含航司二字码)
  • └ departure_airport
  • String
  • 可选
  • PEK
  • 出发机场三字码
  • └ stop_cities
  • String
  • 可选
  • TYO
  • 经停城市,逗号分隔
  • └ arrival_time
  • String
  • 可选
  • 202509011520
  • 到达时间yyyyMMddHHmm
  • └ code_share
  • Boolean
  • 可选
  • true
  • 是否共享
  • └ operating_carrier
  • String
  • 可选
  • FD
  • 承运航司二字码
  • └ arrival_airport
  • String
  • 可选
  • PVG
  • 到达机场三字码

响应参数

名称 类型 示例值 描述
api_error_msg String 推送失败 错误描述
api_error_code String SystemError 错误码
api_success Boolean false 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FliggyFlightAgentAuxproductDimensionFlightPushRequest req = new FliggyFlightAgentAuxproductDimensionFlightPushRequest();
FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryPriceDynamicPushDTO obj1 = new FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryPriceDynamicPushDTO();
obj1.setTraceId("ABCDE12345");
obj1.setCabinClass(1L);
obj1.setAgentId(1234L);
obj1.setDepartureAirport("PEK");
obj1.setDepartureDate("20250901");
obj1.setFareFamily("Fly");
List<FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryServiceDTO> list3 = new ArrayList<FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryServiceDTO>();
FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryServiceDTO obj4 = new FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryServiceDTO();
list3.add(obj4);
FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryMetadataDTO obj6 = new FliggyFlightAgentAuxproductDimensionFlightPushRequest.AncillaryMetadataDTO();
obj6.setSize("30 × 40 × 50CM,L+W+H<=157cm");
obj6.setPiece(1L);
obj6.setWeight(30L);
obj6.setType("StandardCheckInBaggage");
obj6.setIsAllWeight(true);
list5.setMetadata(obj6);
obj4.setLevel("chargeable");
FliggyFlightAgentAuxproductDimensionFlightPushRequest.PriceDTO obj8 = new FliggyFlightAgentAuxproductDimensionFlightPushRequest.PriceDTO();
obj8.setTotalAmount("100.5");
obj8.setCurrency("CNY");
list7.setPrice(obj8);
obj4.setPassengerTypes("ADT");
obj4.setType("Baggage");
obj1.setServices(list3);
obj1.setArrivalAirport("PVG");
obj1.setChannelId("1234");
List<FliggyFlightAgentAuxproductDimensionFlightPushRequest.FlightSegmentInfoDTO> list10 = new ArrayList<FliggyFlightAgentAuxproductDimensionFlightPushRequest.FlightSegmentInfoDTO>();
FliggyFlightAgentAuxproductDimensionFlightPushRequest.FlightSegmentInfoDTO obj11 = new FliggyFlightAgentAuxproductDimensionFlightPushRequest.FlightSegmentInfoDTO();
list10.add(obj11);
obj11.setDepartureTime("202509011520");
obj11.setMarketingFlightNumber("123");
obj11.setMarketingCarrier("AK");
obj11.setOperatingFlightNumber("123");
obj11.setDepartureAirport("PEK");
obj11.setStopCities("TYO");
obj11.setArrivalTime("202509011520");
obj11.setCodeShare(true);
obj11.setOperatingCarrier("FD");
obj11.setArrivalAirport("PVG");
obj1.setSegments(list10);
req.setAncillaryPriceDynamicPushDto(obj1);
FliggyFlightAgentAuxproductDimensionFlightPushResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<fliggy_flight_agent_auxproduct_dimension_flight_push_response>
    <api_error_msg>推送失败</api_error_msg>
    <api_error_code>SystemError</api_error_code>
    <api_success>false</api_success>
</fliggy_flight_agent_auxproduct_dimension_flight_push_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

返回
顶部