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

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

问题描述

我是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.创建订单"实际上是如何创建航班订单的?我没有看到预订机票的网址链接,例如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:是否可以跳过流程中的航班报价"?如果没有,来自航班报价"的响应将在多长时间内有效,以作为创建订单的输入?

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.

关于Price 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.

我们的航班创建订单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天全站免登陆