我正在尝试交叉检查通过我在Google航班上找到的价格来拨打Saber Instaflights API返回的价格,并且似乎API响应包含真实的航班,但假货定价信息。通常比我在Google航班上发现的便宜得多。这些是假价格,但是真正的航班吗?如果是这样,这仅仅是因为我正在使用测试环境?
例如,从纽约市到Chi返回的最便宜的航班说,它找到了$ 128.60的票价,但同一往返在Google Flights上是311美元。
requesturi:
https://api.test.sabre.com/v1/shop/flights?origin=nyc&= 14002359& onlineItinerAriesonly = n& limit = 10& offset = 1& eTicketSonly = n& saltby = totalfare = totalfare& orde
响应主体:
{
"PricedItineraries": [{
"AirItinerary": {
"OriginDestinationOptions": {
"OriginDestinationOption": [{
"FlightSegment": [{
"DepartureAirport": {
"LocationCode": "LGA"
},
"ArrivalAirport": {
"LocationCode": "ORD"
},
"MarketingAirline": {
"Code": "AA"
},
"ArrivalTimeZone": {
"GMTOffset": -6
},
"TPA_Extensions": {
"eTicket": {
"Ind": true
}
},
"StopQuantity": 0,
"ElapsedTime": 182,
"ResBookDesigCode": "B",
"MarriageGrp": "O",
"Equipment": {
"AirEquipType": 738
},
"DepartureDateTime": "2018-03-02T16:30:00",
"ArrivalDateTime": "2018-03-02T18:32:00",
"FlightNumber": 343,
"OnTimePerformance": {
"Level": 6
},
"OperatingAirline": {
"FlightNumber": 343,
"Code": "AA"
},
"DepartureTimeZone": {
"GMTOffset": -5
}
}],
"ElapsedTime": 182
}, {
"FlightSegment": [{
"DepartureAirport": {
"LocationCode": "ORD"
},
"ArrivalAirport": {
"LocationCode": "LGA"
},
"MarketingAirline": {
"Code": "AA"
},
"ArrivalTimeZone": {
"GMTOffset": -5
},
"TPA_Extensions": {
"eTicket": {
"Ind": true
}
},
"StopQuantity": 0,
"ElapsedTime": 130,
"ResBookDesigCode": "B",
"MarriageGrp": "O",
"Equipment": {
"AirEquipType": 738
},
"DepartureDateTime": "2018-03-04T15:30:00",
"ArrivalDateTime": "2018-03-04T18:40:00",
"FlightNumber": 364,
"OnTimePerformance": {
"Level": 6
},
"OperatingAirline": {
"FlightNumber": 364,
"Code": "AA"
},
"DepartureTimeZone": {
"GMTOffset": -6
}
}],
"ElapsedTime": 130
}]
},
"DirectionInd": "Return"
},
"AlternateAirport": true,
"TPA_Extensions": {
"ValidatingCarrier": {
"Code": "AA"
}
},
"SequenceNumber": 3,
"AirItineraryPricingInfo": {
"AlternateCityOption": true,
"PTC_FareBreakdowns": {
"PTC_FareBreakdown": {
"FareBasisCodes": {
"FareBasisCode": [{
"BookingCode": "B",
"DepartureAirportCode": "LGA",
"AvailabilityBreak": true,
"ArrivalAirportCode": "ORD",
"content": "O0ELZNB3"
}, {
"BookingCode": "B",
"DepartureAirportCode": "ORD",
"AvailabilityBreak": true,
"ArrivalAirportCode": "LGA",
"content": "O0ELZNB3"
}]
},
"PassengerTypeQuantity": {
"Quantity": 1,
"Code": "ADT"
},
"PassengerFare": {
"FareConstruction": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": 93.02
},
"TotalFare": {
"CurrencyCode": "USD",
"Amount": "128.60"
},
"Taxes": {
"TotalTax": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": 35.58
},
"Tax": [{
"CurrencyCode": "USD",
"DecimalPlaces": 1,
"TaxCode": "AY",
"Amount": 11.2
}, {
"CurrencyCode": "USD",
"DecimalPlaces": 0,
"TaxCode": "XF",
"Amount": 9
}, {
"CurrencyCode": "USD",
"DecimalPlaces": 1,
"TaxCode": "ZP",
"Amount": 8.4
}, {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"TaxCode": "US1",
"Amount": 6.98
}]
},
"BaseFare": {
"CurrencyCode": "USD",
"Amount": 93.02
},
"EquivFare": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": 93.02
}
},
"Endorsements": {
"NonRefundableIndicator": true
}
}
},
"FareInfos": {
"FareInfo": [{
"TPA_Extensions": {
"Cabin": {
"Cabin": "Y"
},
"SeatsRemaining": {
"BelowMin": false,
"Number": 7
}
},
"FareReference": "B"
}, {
"TPA_Extensions": {
"Cabin": {
"Cabin": "Y"
},
"SeatsRemaining": {
"BelowMin": false,
"Number": 7
}
},
"FareReference": "B"
}]
},
"TPA_Extensions": {
"DivideInParty": {
"Indicator": false
}
},
"ItinTotalFare": {
"FareConstruction": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": 93.02
},
"TotalFare": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": "128.60"
},
"Taxes": {
"Tax": [{
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"TaxCode": "TOTALTAX",
"Amount": 35.58
}]
},
"BaseFare": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": 93.02
},
"EquivFare": {
"CurrencyCode": "USD",
"DecimalPlaces": 2,
"Amount": 93.02
}
}
},
"TicketingInfo": {
"ValidInterline": "Yes",
"TicketType": "eTicket"
}
}
测试是一个沙盒环境,目的是测试开发人员的API调用。这不能反映实时可用性和定价。
jmacagno您绝对正确。沙箱系统具有用于响应的数据快照。