航班优惠价格、航班优惠搜索、航班创建订单是使用缓存还是实时结果? [英] Are flight offers price, flight offers search, flight create orders using cache or live results?

查看:44
本文介绍了航班优惠价格、航班优惠搜索、航班创建订单是使用缓存还是实时结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个node js编程,在amadeus网站上测试自助api调用.

I am a node js programming, testing the self-service api calls on amadeus website.

我了解整个流程:航班优惠搜索 -> 航班优惠价格 -> 航班创建订单.只是好奇哪个 api 从服务器返回缓存结果,服务器返回实时结果.

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.创建订单"实际上是如何创建航班订单的?我没有看到预订机票的 url 链接,如 Skyscanner 的 api.我得到的只是

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:是否可以在流程中跳过航班优惠价格?如果不是,来自 Flight Offers Price 的响应作为创建订单的输入保持有效多久?

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?

提前致谢.

推荐答案

这 3 个 API 都有实时结果(没有缓存),所以理论上,如果您在搜索后立即预订,您可以跳过价格,但因为它可能需要时间来浏览和选择要预订的航班最好执行价格以确保价格没有变化并且座位仍然可用.

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.

关于价格 API 的有效性:只要价格没有变化并且座位仍然可用,它就是有效的.

Regarding the validity of the Price API: it's valid as long as the price doesn't change and the seat is still available.

我们的 Flight Create Orders API 创建预订,它不会重定向到旅行社或航空公司的网站.您可以在我们的指南中找到更多信息:创建航班预订引擎.

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.

这篇关于航班优惠价格、航班优惠搜索、航班创建订单是使用缓存还是实时结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆