v1

latestOpenAPI 3.0.22026-07-13122949.2 KB
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"
    }
  ]
}