@ahuawaiwai
2019-02-25T01:52:32.000000Z
字数 10747
阅读 441
测试地址:[http://tweb.apiflightgj.jinri.cn/swagger/][1]
正式地址:[http://apiflightgj.shanglv.jinri.cn/swagger/][2]
接口文档
请求地址:[http://tweb.apiflightgj.jinri.cn/Product/SearchFlightList]
请求示例 (JSON):
{
"user": "JinriAppClient",
"sign": "531282f484bcff406fc3f609a3db79ff",
"timestamp": "1491888056492",
"sessionid": "EuvjYiCnqzijxMq7B55SoT9UpUwDBCbQa0dlfOTm9SpnX2fsAMtJqax1v+MNjb4vlFyhMHi8c1f/bK65X2wycA==",
"data": {
"Guid": null,
"TripType": 3, //3代表多程
"AdultQuantity": 1,
"ChildQuantity": 0,
"CabinClass": 1,
"SegmentList": [
{
"DCityIataCode": "SHA",
"ACityIataCode": "HKG",
"DepartDate": "2019-02-22"
},
{
"DCityIataCode": "HKG",
"ACityIataCode": "BKK",
"DepartDate": "2019-02-24"
},
{
"DCityIataCode": "BKK",
"ACityIataCode": "HKG",
"DepartDate": "2019-02-28"
}
],
"StepFlags": null
}
}
- user string 必填
- sign string 必填
- timestamp string 必填
- sessionid string 必填
- data
- Guid string 非必填,索引
- TripType int 必填,1单程,2往返,3联程
- AdultQuantity int 必填,成人人数
- ChildQuantity int 非必填,儿童人数
- CabinClass int 必填,舱位类别 0所有,1经济舱,2公务舱,3头等舱,4超级经济舱
- SegmentList JSONArray 必填,航段列表
- DCityIataCode string 必填,出发机场三字码
- ACityIataCode string 必填,到达机场三字码
- DepartDate string 必填,出发时间 (yyyy-MM-dd)
- StepFlags Array[string] 非必填,多程航班选择 【该字段好像已经弃用,维持原来结构即可】
返回示例:
{
"data": [
{
"IsBatch": false,
"FlightId": 0,
"Index": 27,
"Guid": "",
"QueryId": "",
"TripType": 3,
"CabinClass": 1,
"AdultQuantity": 1,
"ChildQuantity": 0,
"StepFlags": null,
"Id": "",
"TransferNum": "1-2,2-2,3-2",
"Duration": "13:5",
"CrossDays": "0",
"TransferTime": "",
"DepartTime": "2019-02-20T16:00:00",
"ArriveTime": "2019-02-20T11:20:00",
"DepDate": "2019-02-22",
"ArrDate": "2019-03-01",
"DepTime": "16:00",
"ArrTime": "11:20",
"DepCityCode": "SHA",
"ArrCityCode": "HKG",
"DepTerminal": "T2",
"ArrTerminal": "T1",
"DepAirport": "虹桥国际机场",
"ArrAirport": "香港赤鱲角机场",
"DepCity": "上海",
"ArrCity": "香港",
"SettlePrice": 4410,
"Tax": 1860,
"Fee": 45,
"AddPrice": 0,
"ParPrice": 2540,
"VendorId": "",
"CabinCount": 7,
"SegmentList": [
{
"SegmentId": 0,
"Index": 1,
"TripIndex": 0,
"DCityIataCode": "SHA",
"ACityIataCode": "XMN",
"DepCity": "上海",
"ArrCity": "厦门",
"DepAirport": "虹桥国际机场",
"ArrAirport": "厦门高崎国际机场",
"DepAirportCode": "SHA",
"ArrAirportCode": "XMN",
"DepTerminal": "T2",
"ArrTerminal": "T3",
"FlightNo": "MF8522",
"Aircom": "MF",
"AirlineCompany": "厦门航空",
"AirLogo": "http://gjcdn.jinri.cn/static/AirLine/MF.png",
"DepartDate": "2019-02-22",
"ArrDate": "2019-02-22",
"DepTime": "16:00",
"ArrTime": "17:55",
"DepartTime": "2019-02-20T16:00:00",
"ArriveTime": "2019-02-20T17:55:00",
"Cabins": [
{
"CabinId": 0,
"CabinClass": 1,
"Level": "Y",
"CabinName": "S",
"CabinCount": "7",
"CabinPrice": {
"SettlePrice": 4410,
"ParPrice": 2540,
"Pid": 0,
"Tax": 1860,
"Fuel": 0,
"AddPrice": 0
},
"LatestReservation": null,
"RefundRule": "",
"LuggageRule": "",
"RefundRuleKey": "",
"backpageQuantity": null,
"backpageVolume": null,
"backpageWeight": null
}
],
"Duration": "01:55",
"TransferInfo": "",
"CraftWidthType": 0,
"CraftType": "738",
"StopNum": 0,
"ShareFlightNo": false,
"SegmentTripId": 1
},
{
"SegmentId": 0,
"Index": 2,
"TripIndex": 0,
"DCityIataCode": "XMN",
"ACityIataCode": "HKG",
"DepCity": "厦门",
"ArrCity": "香港",
"DepAirport": "厦门高崎国际机场",
"ArrAirport": "香港赤鱲角机场",
"DepAirportCode": "XMN",
"ArrAirportCode": "HKG",
"DepTerminal": "T3",
"ArrTerminal": "T1",
"FlightNo": "MF381",
"Aircom": "MF",
"AirlineCompany": "厦门航空",
"AirLogo": "http://gjcdn.jinri.cn/static/AirLine/MF.png",
"DepartDate": "2019-02-23",
"ArrDate": "2019-02-23",
"DepTime": "10:00",
"ArrTime": "11:20",
"DepartTime": "2019-02-20T10:00:00",
"ArriveTime": "2019-02-20T11:20:00",
"Cabins": [
{
"CabinId": 0,
"CabinClass": 1,
"Level": "Y",
"CabinName": "S",
"CabinCount": "7",
"CabinPrice": {
"SettlePrice": 4410,
"ParPrice": 2540,
"Pid": 0,
"Tax": 1860,
"Fuel": 0,
"AddPrice": 0
},
"LatestReservation": null,
"RefundRule": "",
"LuggageRule": "",
"RefundRuleKey": "",
"backpageQuantity": null,
"backpageVolume": null,
"backpageWeight": null
}
],
"Duration": "01:20",
"TransferInfo": "",
"CraftWidthType": 0,
"CraftType": "738",
"StopNum": 0,
"ShareFlightNo": false,
"SegmentTripId": 1
},
{
"SegmentId": 0,
"Index": 1,
"TripIndex": 0,
"DCityIataCode": "HKG",
"ACityIataCode": "FOC",
"DepCity": "香港",
"ArrCity": "福州",
"DepAirport": "香港赤鱲角机场",
"ArrAirport": "福州长乐国际机场",
"DepAirportCode": "HKG",
"ArrAirportCode": "FOC",
"DepTerminal": "T1",
"ArrTerminal": "",
"FlightNo": "MF8696",
"Aircom": "MF",
"AirlineCompany": "厦门航空",
"AirLogo": "http://gjcdn.jinri.cn/static/AirLine/MF.png",
"DepartDate": "2019-02-24",
"ArrDate": "2019-02-24",
"DepTime": "14:00",
"ArrTime": "15:30",
"DepartTime": "2019-02-20T14:00:00",
"ArriveTime": "2019-02-20T15:30:00",
"Cabins": [
{
"CabinId": 0,
"CabinClass": 1,
"Level": "Y",
"CabinName": "Q",
"CabinCount": "7",
"CabinPrice": {
"SettlePrice": 4410,
"ParPrice": 2540,
"Pid": 0,
"Tax": 1860,
"Fuel": 0,
"AddPrice": 0
},
"LatestReservation": null,
"RefundRule": "",
"LuggageRule": "",
"RefundRuleKey": "",
"backpageQuantity": null,
"backpageVolume": null,
"backpageWeight": null
}
],
"Duration": "01:30",
"TransferInfo": "",
"CraftWidthType": 0,
"CraftType": "738",
"StopNum": 0,
"ShareFlightNo": false,
"SegmentTripId": 2
},
{
"SegmentId": 0,
"Index": 2,
"TripIndex": 0,
"DCityIataCode": "FOC",
"ACityIataCode": "BKK",
"DepCity": "福州",
"ArrCity": "曼谷",
"DepAirport": "福州长乐国际机场",
"ArrAirport": "曼谷国际机场",
"DepAirportCode": "FOC",
"ArrAirportCode": "BKK",
"DepTerminal": "",
"ArrTerminal": "",
"FlightNo": "MF875",
"Aircom": "MF",
"AirlineCompany": "厦门航空",
"AirLogo": "http://gjcdn.jinri.cn/static/AirLine/MF.png",
"DepartDate": "2019-02-25",
"ArrDate": "2019-02-25",
"DepTime": "14:35",
"ArrTime": "17:25",
"DepartTime": "2019-02-20T14:35:00",
"ArriveTime": "2019-02-20T17:25:00",
"Cabins": [
{
"CabinId": 0,
"CabinClass": 1,
"Level": "Y",
"CabinName": "V",
"CabinCount": "7",
"CabinPrice": {
"SettlePrice": 4410,
"ParPrice": 2540,
"Pid": 0,
"Tax": 1860,
"Fuel": 0,
"AddPrice": 0
},
"LatestReservation": null,
"RefundRule": "",
"LuggageRule": "",
"RefundRuleKey": "",
"backpageQuantity": null,
"backpageVolume": null,
"backpageWeight": null
}
],
"Duration": "03:50",
"TransferInfo": "",
"CraftWidthType": 0,
"CraftType": "738",
"StopNum": 0,
"ShareFlightNo": false,
"SegmentTripId": 2
},
{
"SegmentId": 0,
"Index": 1,
"TripIndex": 0,
"DCityIataCode": "BKK",
"ACityIataCode": "XMN",
"DepCity": "曼谷",
"ArrCity": "厦门",
"DepAirport": "曼谷国际机场",
"ArrAirport": "厦门高崎国际机场",
"DepAirportCode": "BKK",
"ArrAirportCode": "XMN",
"DepTerminal": "",
"ArrTerminal": "T3",
"FlightNo": "MF834",
"Aircom": "MF",
"AirlineCompany": "厦门航空",
"AirLogo": "http://gjcdn.jinri.cn/static/AirLine/MF.png",
"DepartDate": "2019-02-28",
"ArrDate": "2019-02-28",
"DepTime": "17:35",
"ArrTime": "21:45",
"DepartTime": "2019-02-20T17:35:00",
"ArriveTime": "2019-02-20T21:45:00",
"Cabins": [
{
"CabinId": 0,
"CabinClass": 1,
"Level": "Y",
"CabinName": "T",
"CabinCount": "7",
"CabinPrice": {
"SettlePrice": 4410,
"ParPrice": 2540,
"Pid": 0,
"Tax": 1860,
"Fuel": 0,
"AddPrice": 0
},
"LatestReservation": null,
"RefundRule": "",
"LuggageRule": "",
"RefundRuleKey": "",
"backpageQuantity": null,
"backpageVolume": null,
"backpageWeight": null
}
],
"Duration": "03:10",
"TransferInfo": "",
"CraftWidthType": 0,
"CraftType": "738",
"StopNum": 0,
"ShareFlightNo": false,
"SegmentTripId": 3
},
{
"SegmentId": 0,
"Index": 2,
"TripIndex": 0,
"DCityIataCode": "XMN",
"ACityIataCode": "HKG",
"DepCity": "厦门",
"ArrCity": "香港",
"DepAirport": "厦门高崎国际机场",
"ArrAirport": "香港赤鱲角机场",
"DepAirportCode": "XMN",
"ArrAirportCode": "HKG",
"DepTerminal": "T3",
"ArrTerminal": "T1",
"FlightNo": "MF381",
"Aircom": "MF",
"AirlineCompany": "厦门航空",
"AirLogo": "http://gjcdn.jinri.cn/static/AirLine/MF.png",
"DepartDate": "2019-03-01",
"ArrDate": "2019-03-01",
"DepTime": "10:00",
"ArrTime": "11:20",
"DepartTime": "2019-02-20T10:00:00",
"ArriveTime": "2019-02-20T11:20:00",
"Cabins": [
{
"CabinId": 0,
"CabinClass": 1,
"Level": "Y",
"CabinName": "Q",
"CabinCount": "7",
"CabinPrice": {
"SettlePrice": 4410,
"ParPrice": 2540,
"Pid": 0,
"Tax": 1860,
"Fuel": 0,
"AddPrice": 0
},
"LatestReservation": null,
"RefundRule": "",
"LuggageRule": "",
"RefundRuleKey": "",
"backpageQuantity": null,
"backpageVolume": null,
"backpageWeight": null
}
],
"Duration": "01:20",
"TransferInfo": "",
"CraftWidthType": 0,
"CraftType": "738",
"StopNum": 0,
"ShareFlightNo": false,
"SegmentTripId": 3
}
],
"PriceInfos": [
{
"TicketPrice": 0,
"PassengerType": 0,
"ParPrice": 2540,
"Num": 0,
"OutParPrice": 2540,
"OutTicketPrice": 0,
"ProviderTicketPrice": 0,
"Profit": 0,
"RealProfit": 0,
"AddPrice": 0,
"Pid": 0,
"Tax": 1860,
"Fuel": 0
}
],
"LuggageRule": "",
"freightRuleQueryID": "IBEPLUS_12178313119",
"freightRuleQueryIDChd": null,
"AirlineCompany": "MF",
"PolicyID": "|1109|2",
"Source": 1
}
],
"code": 0,
"message": "成功",
"sessionid": null,
"TotalRowCount": 0
}
- data:数据列表
- IsBatch: bool 优惠券名称
- FlightId: int 优惠券名称
- Index: int 航班索引 【用于春秋查询客规】
- Guid: string 航程Guid
- QueryId: string 查询条件Id
- TripType: int 航程类型 1单程,2往返,3联程
- CabinClass: int 仓位类型
- AdultQuantity: int 成人数(1~9)
- ChildQuantity: int 儿童数(0~9且不大于成人数)
- StepFlags: string 多程航班选择
- Id: string 航班标识
- TransferNum: string 中转次数
- Duration: string 飞行总时长
- CrossDays: string 行程跨越天数
- TransferTime: string 停留时长
- DepartTime: string 出发具体时间日期
- ArriveTime: string 到达具体时间日期
- DepDate: string 出发日期
- ArrDate: string 到达日期
- DepTime: string 出发时间
- ArrTime: string 到达时间
- DepCityCode: string 出发城市代码
- ArrCityCode: string 到达城市代码
- DepTerminal: string 出发航站楼
- ArrTerminal: string 到达航站楼
- DepAirport: string 出发机场
- ArrAirport: string 到达机场
- DepCity: string 出发城市
- ArrCity: string 到达城市
- SettlePrice: string 总含税结算价
- Tax: string 总税
- Fee: string 手续费 千五手续费 仅作存储
- AddPrice: string 加价金额(仅作为后续参考,没参与运算)
- ParPrice: string 不含税价
- VendorId: string 供应商id
- CabinCount: string 仓位余位
- SegmentList: JSONArray 必填,航段列表
- SegmentId: int 主键,
- Index: int 航段索引,
- TripIndex: int 行程索引 (航段1第一程 2航段1第二程),
- DCityIataCode: string 出发城市三字码,
- ACityIataCode: string 到达城市三字码,
- DepCity: string 出发城市,
- ArrCity: string 到达城市,
- DepAirport: string 出发机场,
- ArrAirport: string 到达机场,
- DepAirportCode: string 出发机场三字码,
- ArrAirportCode: string 到达机场三字码,
- DepTerminal: string 出发航站楼,
- ArrTerminal: string 到达航站楼,
- FlightNo: string 航班号,
- Aircom: string 航司代码,
- AirlineCompany: string 航司中文名,
- AirLogo: string 航空公司logo,
- DepartDate: string 出发日期,
- ArrDate: string 到达日期,
- DepTime: string 出发时间,
- ArrTime: string 到达时间,
- DepartTime: datetime 出发具体时间日期,
- ArriveTime: datetime 到达具体时间日期,
- Cabins: 数据列表 仓位信息
- CabinId: int 主键,
- CabinClass: int 舱位类型,
- Level: string 舱位等级,
- CabinName: string 舱位名称,
- CabinCount: string 舱位数,
- CabinPrice: 数据实体 仓位价格
- SettlePrice: decimal 含税结算价,
- ParPrice: decimal 不含税价,
- Pid: int 主键,
- Tax: decimal 税费,
- Fuel: decimal 燃油费,
- AddPrice: decimal 加价金额(仅作为后续参考,未参与运算)
- LatestReservation: string 最迟出票时间,
- RefundRule: string 退改签规则,
- LuggageRule: string 行李规则,
- RefundRuleKey: string 退改签条件,
- backpageQuantity: string 手提行李数量,
- backpageVolume: string 手提行李体积,
- backpageWeight: string 总行李额- Duration: string 飞行总时间,
- TransferInfo: string 中转信息,
- CraftWidthType: int 机型,
- CraftType: string 机型名,
- StopNum: int 经停次数,
- ShareFlightNo: bool 是否代码共享航班,
- SegmentTripId: int 创单时将SegmentId赋值到此字段 用于判断航段第几程
- PriceInfos: string 运价信息
- TicketPrice: decimal 单张含税结算价,
- PassengerType: int 乘客类型,
- ParPrice: decimal 单张不含税价,
- Num: int 乘客数量,
- OutParPrice: decimal 外部单张不含税价,
- OutTicketPrice: decimal 外部单张含税结算价,
- ProviderTicketPrice: decimal 供应单张含税结算价,
- Profit: decimal 利润,
- RealProfit: decimal 真实利润,
- AddPrice: decimal 加价金额(仅作为后续参考,未参与运算),
- Pid: int 主键,
- Tax: decimal 税费,
- Fuel: decimal 燃油费
- LuggageRule: string 行李规则
- freightRuleQueryID: string 真旅-成人运价限制规则查询ID,
- freightRuleQueryIDChd: string 真旅-儿童运价限制规则查询ID,
- AirlineCompany: string 出票航空公司[二字码],
- PolicyID: string 政策id,
- Source: int 航班来源 0:最初平台 1:真旅不夜城 2:春秋 (只有春秋需要指定Source 其他默认为0即可)
PassengerType 乘客类型枚举
Key | Value | Description |
---|---|---|
ADULT | 0 | 成人 |
CHILD | 1 | 儿童 |
INF | 2 | 婴儿 |
FADU | 3 | 外宾成人 |
FCHD | 4 | 外宾儿童 |
CabinClass 舱位类型枚举
Key | Value | Description |
---|---|---|
A | 0 | 所有舱位 |
Y | 1 | 经济舱 |
C | 2 | 公务舱 |
F | 3 | 头等舱 |
S | 4 | 超级经济舱 |
CraftWidthType 机型枚举
Value | Description |
---|---|
0 | 无机型 |
1 | 大机型 |
2 | 中机型 |
3 | 小机型 |
Source 航班来源枚举
Value | Description |
---|---|
0 | 无机型 |
1 | 大机型 |
2 | 中机型 |
3 | 小机型 |