---
title: "Hotel info (reversed)"
method: POST
path: "/get-hotel"
tags: ["Termino endpoints"]
---

# Hotel info (reversed)

`POST /get-hotel`

Provides same information as [/hotel](#tag/PMSCM-endpoints/operation/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.

## Request body

- object
  - `accessToken` string, required — Access token to your API.
  - `hotelId` union, required — Hotel id.
    - string
    - integer

## Response `200`

Successful response

- HotelInfo
  - `hotel` Hotel, required
    - `id` string — Your id of the hotel
    - `name` string — Name of the hotel
    - `address` Address
      - `street` string — Street name and number
      - `city` string — City / quarter
      - `country` string — 2-letter country code by ISO-3166-1
  - `roomTypes` RoomType[], required
    - `id` string — Room type id
    - `name` string — Room type name
    - `beds` integer — Count of beds
    - `extraBeds` integer — Count of extra beds
    - `roomsCount` integer — Count of rooms of given type
    - `rooms` object[]
      - `id` string — Your room id
      - `name` string — Name of the room
  - `ratePlans` RatePlan[]
    - `id` string, required — Rate ID or rate code. Should be human readable (eg. DEFAULT, HB). Unique in context of hotel
    - `name` string, required — Name of the rate plan
    - `pricingModel` 'per_room' | 'per_person' | 'per_occupancy', required — Pricing model used for this rate plan. Prices sent in planning updates has to follow this model.

## Other responses

- `400` — Expected error

## Changes

- **2025-11-28** `b2f22ce7f100` — 1 breaking, 6 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - added `#/components/schemas/ErrorResponse, subschema #2` to the response body `allOf` list for the response status `400`
  - removed `#/components/schemas/HotelInfo` from the response body `oneOf` list for the response status `200`
  - removed `#/components/schemas/HotelNotFoundError` from the response body `oneOf` list for the response status `400`
  - …3 more
- **2023-12-18** `2449b1b91089` — 1 info
  - endpoint added
- **2023-10-30** `e19082e0fb0f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/slevomat/apis/termino-hotel-api/changes/get-hotel/post.md)

---

[API](https://skmtc.dev/slevomat/apis/termino-hotel-api.md) · [All operations](https://skmtc.dev/slevomat/apis/termino-hotel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/slevomat/termino-hotel-api/revisions/776409ba477b/schema)
