Skip to main content
GET
/
room-types
/
{roomTypeId}
Get a room type
curl --request GET \
  --url https://spaportal.cz/api/v2/room-types/{roomTypeId} \
  --header 'X-SpaPortal-Public-Key: <api-key>'
{
  "id": "66f16191f739705faa020003",
  "hotelId": "66f16191f739705faa020001",
  "code": "SUPERIOR-DBL",
  "category": {
    "cs-CZ": "Superior dvouluzkovy pokoj",
    "de": "Superior Doppelzimmer"
  },
  "beds": 2,
  "facilities": [
    "shower",
    "toilet"
  ],
  "images": [
    {
      "url": "<string>",
      "thumbnailUrl": "<string>"
    }
  ],
  "description": {
    "cs-CZ": "Superior dvouluzkovy pokoj",
    "de": "Superior Doppelzimmer"
  },
  "hotel": {
    "id": "<string>",
    "name": "<string>",
    "stars": 123,
    "destinationId": "<string>"
  }
}

Authorizations

X-SpaPortal-Public-Key
string
header
required

Headers

Accept-Language
string

Comma-separated BCP 47 language tags selecting which locale keys localized fields return. When omitted, all locale keys are returned.

Example:

"cs-CZ,de"

X-Request-Id
string

Optional client-provided request identifier echoed in error responses.

Path Parameters

roomTypeId
string
required

Room type id.

Pattern: ^[0-9a-fA-F]{24}$

Query Parameters

include
enum<string>

Set to hotel to embed the hotel.

Available options:
hotel

Response

The room type.

id
string
required
Pattern: ^[0-9a-fA-F]{24}$
Example:

"66f16191f739705faa020003"

hotelId
string
required
Pattern: ^[0-9a-fA-F]{24}$
Example:

"66f16191f739705faa020001"

code
string | null
required
Example:

"SUPERIOR-DBL"

category
object
required

Localized category name (plain text).

Example:
{
"cs-CZ": "Superior dvouluzkovy pokoj",
"de": "Superior Doppelzimmer"
}
beds
integer
required
Example:

2

facilities
string[]
required
Example:
["shower", "toilet"]
images
object[]
required
description
object
required

Localized description (Markdown).

Example:
{
"cs-CZ": "Superior dvouluzkovy pokoj",
"de": "Superior Doppelzimmer"
}
hotel
object

Embedded only when include=hotel.