在测试环境中,Sabre InstaFlights API响应是否不使用实际价格?

时间:2018-02-17 00:07:45

标签: sabre fare

我正在尝试交叉检查通过Sabre InstaFlights API调用返回的价格与我在Google Flights上找到的价格,并且似乎API响应包含真实的航班但是虚假的定价信息。通常比我在Google Flights上找到的便宜得多。这些是虚假价格但真正的航班是真的吗?如果是这样,这只是因为我正在使用测试环境吗?

例如,从纽约到CHI的某次往返返程最便宜的航班表示它发现了128.60美元的票价,但这次往返票价为311美元。

RequestURI:

https://api.test.sabre.com/v1/shop/flights?origin=NYC&destination=CHI&departuredate=2018-03-02&returndate=2018-03-04&outbounddeparturewindow=16002100&inboundarrivalwindow=14002359&onlineitinerariesonly=N&limit=10&offset=1&eticketsonly=N&sortby=totalfare&order=asc&sortby2=departuretime&order2=asc&pointofsalecountry=US

回应机构:

{
"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"
    }
}

2 个答案:

答案 0 :(得分:1)

Test是一个Sandbox环境,用于测试开发人员的API调用。这并不反映实时可用性和定价。

答案 1 :(得分:0)

jmacagno你绝对正确。沙箱系统具有用于响应的数据快照。