Sabre InstaFlights API 测试环境中的响应是否不使用真实价格?
Do Sabre InstaFlights API Responses In Test Environment Not Use Real Prices?
我正在尝试将调用 Sabre InstaFlights API 返回的价格与我在 Google 航班上找到的价格进行交叉检查,似乎 API响应包含真实航班,但包含虚假定价信息。通常比我在 Google 航班上找到的便宜得多。难道这些都是假价格,但真的是航班吗?如果是这样,这仅仅是因为我使用的是测试环境吗?
例如,从 NYC 到 CHI 的某个往返行程中最便宜的返程航班说它找到了 128.60 美元的票价,但在 Google 航班上,同样的往返行程是 311 美元。
请求URI:
响应正文:
{
"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"
}
}
Test 是一个沙盒环境,用于测试开发人员的 API 调用。这并不反映实时可用性和定价。
jmacagno 你是完全正确的。沙盒系统有一个用于响应的数据快照。
我正在尝试将调用 Sabre InstaFlights API 返回的价格与我在 Google 航班上找到的价格进行交叉检查,似乎 API响应包含真实航班,但包含虚假定价信息。通常比我在 Google 航班上找到的便宜得多。难道这些都是假价格,但真的是航班吗?如果是这样,这仅仅是因为我使用的是测试环境吗?
例如,从 NYC 到 CHI 的某个往返行程中最便宜的返程航班说它找到了 128.60 美元的票价,但在 Google 航班上,同样的往返行程是 311 美元。
请求URI:
响应正文:
{
"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"
}
}
Test 是一个沙盒环境,用于测试开发人员的 API 调用。这并不反映实时可用性和定价。
jmacagno 你是完全正确的。沙盒系统有一个用于响应的数据快照。