Termino endpoints

Hotel info (reversed)

Provides same information as /hotel endpoint, but in reversed direction. This endpoint is called by CM to load room types and rate plans created on Termino side and set up mapping.

post/get-hotel

Request body

accessTokenstring required

Access token to your API.

Response

Successful response

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 3 of the 10 revisions of this API.27

  • b2f22ce7f10016See the full diff
    • the response's body type/format changed from / to object/ for status 200

      response-body-type-changed

    • added ErrorResponse subschema #2 to the response body allOf list for the response status 400

      response-body-all-of-added

    • removed HotelInfo from the response body oneOf list for the response status 200

      response-body-one-of-removed

    • removed HotelNotFoundError from the response body oneOf list for the response status 400

      response-body-one-of-removed

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

      response-optional-property-added

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

      response-required-property-added

    • added the required property roomTypes to the response with the 200 status

      response-required-property-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

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