---
title: "Hotel, rooms and rates"
method: POST
path: "/hotel"
tags: ["PMS/CM endpoints"]
---

# Hotel, rooms and rates

`POST /hotel`

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

## Request body

- object
  - `accessToken` string, required — Access token for authorization
  - `hotelId` union, required — Your hotel id
    - string
    - integer

## Response `200`

OK

- 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

---

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