PMS/CM endpoints

Hotel, rooms and rates

Information about hotel for connection process and structure of room types and rate plans.

Usage:

  • loading hotel info and structure when connecting new hotel to Termino
  • synchronizing hotel structure
post/hotel

Request body

accessTokenstring required

Access token for authorization

Example request

{
  "accessToken": "aa5ae844-051c-4d30-9c67-54b70c99b580"
}

Response

OK

Example response

{
  "hotel": {
    "id": "123456",
    "name": "Hotel Example",
    "address": {
      "street": "Pernerova 691",
      "city": "Praha 8",
      "country": "CZ"
    }
  },
  "roomTypes": [
    {
      "id": "123456",
      "name": "Double room",
      "beds": 2,
      "extraBeds": 1,
      "roomsCount": 10,
      "rooms": [
        {
          "id": "125",
          "name": "Room 125"
        }
      ]
    }
  ],
  "ratePlans": [
    {
      "id": "HB",
      "name": "Half-board",
      "pricingModel": "per_room"
    }
  ]
}

Changes

Changed in 4 of the 10 revisions of this API.2411

    • added the optional property ratePlans to the response with the 200 status

      response-optional-property-added

    • the response property hotel became required for the status 200

      response-property-became-required

    • the response property roomTypes became required for the status 200

      response-property-became-required

  • 2449b1b9108931See the full diff
    • removed the optional property address from the response with the 200 status

      response-optional-property-removed

    • removed the optional property id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property name from the response with the 200 status

      response-optional-property-removed

    • added the optional property hotel to the response with the 200 status

      response-optional-property-added

    • api tag PMS/CM endpoints added

      api-tag-added

    • api tag Pull endpoints removed

      api-tag-removed

  • e19082e0fb0f215See the full diff
    • the response property roomTypes became optional for the status 200

      response-property-became-optional

    • removed the required property hotel from the response with the 200 status

      response-required-property-removed

    • removed the optional property ratePlans from the response with the 200 status

      response-optional-property-removed

    • api tag Pull endpoints added

      api-tag-added

    • api tag PMS/CM endpoints removed

      api-tag-removed

    • added the optional property address to the response with the 200 status

      response-optional-property-added

    • added the optional property id to the response with the 200 status

      response-optional-property-added

    • added the optional property name to the response with the 200 status

      response-optional-property-added

    This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog