Are flight offers price, flight offers search, flight create orders using cache or live results?

天大地大妈咪最大 提交于 2020-07-10 05:01:31

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!