xml Booking.com 酒店管理 API

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22004435/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 12:00:40  来源:igfitidea点击:

Booking.com Hotel Management API

xmlapibooking.com-api

提问by Yussuf S

I own a hotel and had a look on booking.com for an API as I want to create my own front end interface to update my hotel room rates / numbers for some days. As well as upload pictures / update the hotel description through that API. However the only thing I could find was an API for affiliates to get Hotels in a certain location with a certain price etc. Would anyone be able to point me in the right direction for this use case or is it not available and would I then have to write a scraper to do this for myself ?

我拥有一家酒店,并在 Booking.com 上查看了一个 API,因为我想创建自己的前端界面来更新我的酒店房价/数字几天。以及通过该 API 上传图片/更新酒店描述。然而,我唯一能找到的是一个 API,供附属公司以特定价格在某个位置获得酒店等。 有没有人能够为这个用例指出正确的方向,或者它是否不可用,然后我会拥有写一个刮板来为自己做这件事?

Thanks a lot !

非常感谢 !

采纳答案by Gary

UPDATE 3 - 9th Dec 2017

更新 3 - 2017 年 12 月 9 日

It would appear that Booking.com now have documentation available for their API, but you need to be signed upto them as a business in order to get access.

Booking.com 现在似乎有可用于其 API 的文档,但您需要以企业身份注册它们才能获得访问权限。

UPDATE 2 - 8th May 2017

更新 2 - 2017 年 5 月 8 日

It seems Booking.com have recently completed some Beta testing for their API, it may looks like they are making it even easier for people to connect. For more information regarding Booking.com's API, have a look here

Booking.com 最近似乎已经完成了一些 API 的 Beta 测试,看起来他们让人们更容易连接。有关 Booking.com API 的更多信息,请查看此处

UPDATE

更新

Booking.com DOhave an XML API system, however as many people have stated it is not available to Developers. It is internal and only made available to Hotel/Chains who are apart of their partner system. So YESthey do, but NOit's not publicly available.

Booking.com DO有一个XML API系统,但许多人都表示它不是提供给开发者。它是内部的,仅提供给不属于其合作伙伴系统的酒店/连锁店。所以,他们这样做,但NO是不公开的。

Original Answer

原答案

I can categorically state that at the time of writing, Booking.com do not have an API system, I know this because I've contacted them requesting such info, and they kindly advised me that they do not have an API that is currently available to developers.

我可以明确地说,在撰写本文时,Booking.com 没有 API 系统,我知道这一点是因为我已经联系过他们索要此类信息,他们善意地告诉我他们没有当前可用的 API给开发商。

回答by brando

There are at least two third-party channel management services that say they can synchronize via API with booking.com among many other aggregators:
1) http://verticalbooking.com/en/channel_manager.htm

至少有两个第三方渠道管理服务表示它们可以通过 API 与许多其他聚合器中的 booking.com 同步:
1) http://verticalbooking.com/en/channel_manager.htm

2) http://beds24.com/channel-manager.html

2) http://beds24.com/channel-manager.html

So, presumably, there is a way to interface via API with booking.com but how to do that directly without a third-party I don't know...

因此,大概有一种方法可以通过 API 与booking.com 进行交互,但是如何在没有第三方的情况下直接执行此操作,我不知道...

回答by Salman A

Booking.com has an API but it is only available to "channel managers". I will not recommend a channel manager here but I will outline what you can do with it and what needs to be done:

Booking.com 有一个 API,但它只对“渠道经理”可用。我不会在这里推荐渠道经理,但我会概述您可以用它做什么以及需要做什么:

  • Find a channel manager that connects with Booking.com. There are many factors to consider before you choose one:
    • Some of channel managers charge a flat monthly fee, others charge a "commission" for each booking
  • As far as I know, you can only synchronize the following with Booking.com:
    • Per-night rates
    • Per-night inventory count
    • Per-night restrictions such as minimum and maximum length of stay and closed for booking
  • Most channel managers will also fetch new bookings from Booking.com. You might then be able to:
    • Poll the channel manager's provided URL every few minutes
    • Ask the channel manager to post new bookings at a designated URL immediately
    • Either way, you will be able to save new bookings in your PMS
    • You can then update your inventory and push new counts to Booking.com
  • 查找与 Booking.com 连接的渠道经理。在选择一个之前,有很多因素需要考虑:
    • 一些渠道经理收取固定的月费,另一些则为每次预订收取“佣金”
  • 据我所知,您只能与Booking.com同步以下内容:
    • 每晚价格
    • 每晚库存计数
    • 每晚限制,例如最短和最长逗留时间以及关闭预订
  • 大多数渠道经理还会从 Booking.com 获取新预订。然后,您可能能够:
    • 每隔几分钟轮询渠道经理提供的 URL
    • 要求渠道经理立即在指定的 URL 发布新预订
    • 无论哪种方式,您都可以在 PMS 中保存新预订
    • 然后,您可以更新您的库存并将新计数推送到 Booking.com

Once you have setup your inventory (rateplan and roomtypes) on Booking.com you will need to do the following:

在 Booking.com 上设置好库存(房价计划和房间类型)后,您需要执行以下操作:

  • Replicate the inventory on the channel manager
  • Contact Booking.com and tell them that they need to setup an XML connection with the channel manager. Booking.com will perform initial setup behind the scenes
  • Map the channel manager's inventory with Booking.com. A good channel manager will have their staff set things up for you
  • 复制渠道管理器上的库存
  • 联系 Booking.com 并告诉他们他们需要与渠道经理建立 XML 连接。Booking.com 将在后台执行初始设置
  • 使用 Booking.com 映射渠道经理的库存。一个好的渠道经理会让他们的员工为你做好准备

Finally, you will implement the channel manager's API to push information from your PMS to the channel. The channel will then push that information to Booking.com. You will have to login to the extranet every now and then to make sure all inventory and bookings are synced properly.

最后,您将实现渠道管理器的 API,以将信息从您的 PMS 推送到渠道。然后,频道会将这些信息推送到 Booking.com。您必须不时登录酒​​店后台,以确保所有库存和预订正确同步。

回答by ph7

I don't think booking.com offers API suitable for your business case. They use various techniques to get you to their booking system (like booking.com buttons) but as far as I know there is no way for common user to automate XML uploads or downloads, to sync your reservation system with booking.com, etc.

我不认为booking.com 提供适合您的业务案例的API。他们使用各种技术让您进入他们的预订系统(如booking.com 按钮),但据我所知,普通用户无法自动上传或下载 XML,将您的预订系统与预订系统同步,等等。

回答by chuxuanhy

There is another 3rd party API that you may check, it is in following https://rapidapi.com/apidojo/api/booking, I have tested the API and their response data are as same as on the official site. The response are in JSON format. Currently, there are enough APIs end points that you need to query data, such as : Auto complete for locations, list properties with options and filters, get detail rooms, property description, facilities, policies, etc … . Hope this help.

还有另外一个第三方API,您可以查看,在 https://rapidapi.com/apidojo/api/booking,我已经测试了API,它们的响应数据与官方网站上的相同。响应采用 JSON 格式。目前,有足够多的 API 端点需要您查询数据,例如:自动完成位置、列出带有选项和过滤器的属性、获取详细房间、属性描述、设施、政策等……。希望这有帮助。

回答by FFish

In Booking's admin page, have a look under > channel manager. I just signed up for a Planyo trial. Looks promising. They have a Booking extension as well.

在 Booking 的管理页面中,查看 > channel manager 下的内容。我刚刚注册了 Planyo 试验。看起来很有希望。他们也有一个预订扩展。