机票查询
- 接口:
- Method: POST
- 接口说明: 机票查询
- 文档末尾有文档版本记录
请求参数
字段名称 |
字段类型 |
字段描述 |
是否必填 |
depCity |
Integer |
出发城市Id(云简) |
是 |
arrCity |
Integer |
到达城市Id(云简) |
是 |
startDate |
String |
出发日期 |
是 |
endDate |
String |
到达日期 |
否 |
示例
{
"depCity":1,
"arrCity":2,
"startDate":"2023-09-11"
}
返回参数
字段名称 |
字段类型 |
字段描述 |
depCity |
Integer |
出发城市Id(云简) |
arrCity |
Integer |
到达城市Id(云简) |
depDate |
String |
出发日期,yy-MM-dd |
depTime |
String |
出发时间,HH:mm |
arrTime |
String |
到达时间 |
flightNo |
String |
航班号,如MU5137 |
depTerm |
String |
出发航站楼 |
arrTerm |
String |
到达航站楼 |
depAirport |
String |
出发机场 |
arrAirport |
String |
到达机场 |
depAirportCode |
String |
出发机场代码 |
arrAirportCode |
String |
到达机场代码 |
isShare |
String |
是否是共享航班,Y/N |
carrier |
String |
共享航班号 |
isStop |
Integer |
经停次数 |
stopInfo |
List |
经停站信息 |
stopInfo[0].stopCity |
String |
经停城市 |
stopInfo[0].stopAirport |
String |
经停机场 |
stopInfo[0].stopAirportCode |
String |
经停机场代码 |
stopInfo[0].stopTime |
Integer |
经停时间,单位秒 |
planeMode |
String |
飞机型号 |
airCompany |
String |
航空公司名称 |
airCompanyCode |
String |
航空公司代码 |
yprice |
BigDecimal |
经济舱价格 |
meal |
Boolean |
是否包含用餐 |
lowPrice |
BigDecimal |
最低价格 |
flyTimes |
Integer |
飞行时间,单位秒 |
cabinList |
List |
舱位信息 |
cabinList[0].flightID |
String |
座位唯一标识 |
cabinList[0].amount |
BigDecimal |
座位总金额 |
cabinList[0].serviceFee |
BigDecimal |
服务费 |
cabinList[0].ticketPrice |
BigDecimal |
票面价格 |
cabinList[0].oilFee |
BigDecimal |
燃油费 |
cabinList[0].airPortFee |
BigDecimal |
机建费 |
cabinList[0].discount |
BigDecimal |
折扣 |
cabinList[0].cabin |
String |
舱位名称 |
cabinList[0].cabinType |
String |
舱位类型 |
cabinList[0].cabinCode |
String |
舱位代码 |
cabinList[0].platform |
String |
商旅平台 |
cabinList[0].seat |
String |
云简的舱位:1.头等舱,即标准码的F;2.公务舱,即标准码的C;3.经济舱,即标准码的Y;4.超级经济舱,即标准码的S |
cabinList[0].seatNum |
String |
|
cabinList[0].isNegotiatedRate |
String |
是否是协议价机票 Y/N |
cabinList[0].refundChangeInfo |
String |
退改规则 |
示例
{
"meal":true,
"isStop":0,
"arrTerm":"T3",
"arrTime":"09:05",
"depDate":"2019-10-08",
"depTerm":"T2",
"depTime":"06:45",
"isShare":"N",
"arrCity":8,
"depCity":1,
"flightNo":"CZ6172",
"flyTimes":8400,
"platform":"dttrip",
"planeMode":"73K",
"airCompany":"南方航空",
"arrAirport":"武汉天河机场",
"depAirport":"上海浦东机场",
"ySeatPrice":1880,
"airCompanyCode":"CZ",
"arrAirportCode":"WUH",
"depAirportCode":"PVG",
"cabinList":[
{
"cabin":"经济舱",
"amount":356,
"oilFee":0,
"seatNum":"A",
"discount":15,
"flightID":"d85ed2026062ee",
"cabinType":"N",
"airPortFee":50,
"serviceFee":6,
"accountCode":"dk1902154",
"ticketPrice":300,
"isNegotiatedRate":"Y"
},
{
"cabin":"经济舱",
"amount":456,
"oilFee":0,
"seatNum":"A",
"discount":21,
"flightID":"d85ed2026062eeb2ae1e",
"cabinType":"T",
"airPortFee":50,
"serviceFee":6,
"accountCode":"dk1902154",
"ticketPrice":400,
"isNegotiatedRate":"Y"
}
]
}
文档版本记录
版本号 |
编写日期 |
更改内容 |
V1.0 |
2023.10.07 |
初稿 |