Import Hotels

Hotels can be created manually in GUIBO, also with the help of Google search and automatic import of data from Google.
In addition, hotels from external systems can also be imported into GUIBO automatically via the API. A common use case is importing from a booking system with the goal of adding the hotels booked for a guest to the itinerary upon download approval for the guest.


Prerequisite:
You have created a library into which the hotels are to be imported. You have given the library a unique ID. In the following example it is the ID "HOTELS".

Screenshot 2020-11-24 at 12.13.15.png
  • Replace CCCCCC with the customer ID, you can find this under Account Settings > General Settings > Account ID

  • Replace xxxxxx-xxxxxx-xxxxxx-xxxxxx with the API key, you can find this under Account Settings > General Settings > API Key

  • Replace UUUUUU with the ID of the hotel in the external system. With this ID it is easier to update the hotel via the interface.

curl --location --request POST 'https://services.schneidergeo.com/content/library/HOTELS/CCCCCC/poi' \

--header 'Content-Type: application/json' \

--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \

--data-raw '

{

  "externalId" :"HTL21344",

  "names": {

    "de": "Alpenhotel Kronprinz",

    "en": "Alpenhotel Kronprinz"

  },

  "descriptions": {

    "de": "Unser Partnerhotel in Berchtesgaden",

    "en": "Our partner hotel in Berchtesgaden"

  },

  "lat": 47.62893,

  "lng": 12.99443,

  "icon": "hotel",

  "category": {

    "names": {

      "de": "Unterkunft",

      "en": "Accomodation"

    }

  },

  "attributes": {

    "phone": "+49 8652 6070",

    "web": "https://www.alpenhotel-kronprinz.de/"

  },

   "tags": [

        {

             "names": {

                   "de": "Unterkunft",

                   "en": "Accomodation"

               }

         }

    ]

}

'

B) Update Hotels

 This example update a hotel with externen ID "UUUUUU".

 

  • Replace CCCCCC with the customer ID, you can find this under Account Settings > General Settings > Account ID.

  • Replace UUUUUU with the internal route ID OR the external route ID. You can find this under Edit Route > Identifiers

  • Replace xxxxxx-xxxxxx-xxxxxx-xxxxxx with the API key, you can find this under Account Settings > General Settings > API Ke

curl --location --request PUT 'https://services.schneidergeo.com/content/geodata/poi/CCCCCC/UUUUUU' \

--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \

--header 'Content-Type: text/plain;charset=UTF-8' \

--data-raw '

{

  "names": {

    "de": "Hotel Post",

    "en": "Hotel Post"

  },

  "descriptions": {

    "de": "Unser Partnerhotel in Salzburg",

    "en": "Our partner hotel in Salzburg"

  },

  "lat": 47.9455079,

  "lng": 12.9364846,

  "icon": "hotel",

  "attributes": {

    "phone": "+43 6272 4422",

    "web": "https://hotelpost.at"

  }

}

'