问题
I am a node js programming, testing the self-service api calls on amadeus website.
I am aware of the whole flow: Flight Offers Search -> Flight Offers Price -> Flight Create Orders. Just curious which api are returning cached results from servers, which return live results.
PS.How does 'create order' actually create flight orders? I do not see url link to book air ticket, like skyscanner's api. All I get is
"type": "flight-order",
"id": "eJzTd9f39vA0co4AAArzAk8=",
"associatedRecords": [
{
"reference": "KHI2CX",
"creationDate": "2020-01-09T07:51:00.000",
"originSystemCode": "GDS",
"flightOfferId": "1"
}
],
etc...
How can a customer book an air ticket from this info?
PPS: Is it possible to skip Flight Offers Price in the flow? If not, how long does response from Flight Offers Price stay valid as input for create orders?
Thanks in advance.
回答1:
The 3 APIs have live results (no cache), so in theory, if you do a booking right after the search you could skip the price, but as it can take time to browse and select the flight to book it's better to perform the price to make sure the price didn't change and the seat(s) is still available.
Regarding the validity of the Price API: it's valid as long as the price doesn't change and the seat is still available.
Our Flight Create Orders API creates a booking reservation, it doesn't redirect to a website of a travel agency or an airline. You can find more information in our guide: Create a flight booking engine.
Do not hesitate to contact our support team if you want more information.
来源:https://stackoverflow.com/questions/59660772/are-flight-offers-price-flight-offers-search-flight-create-orders-using-cache