The hoteliga API

RoomType

RoomType is the object that represents a category of rooms of the property that share the same general characteristics.

Resources
Resource Description
GET /v1/RoomTypes Get a list with all RoomTypes of property.
Object properties
Name Type Description
id int Unique identifier of RoomType
titles object Names assigned to RoomType in different languages
Titles object
Name Type Description
title string (100) Name assigned to RoomType
languageCode string (2) Declares the language of title
isMain int Value 1 indicates that languageCode corresponds to the property's main language

GET /v1/RoomTypes

Get a list with all RoomTypes of property.

Request parameters

None

Response

The result is a list of RoomType objects.

Example Response

<?xml version="1.0" ?>
<RoomTypes>
    <RoomType>
        <Id>2</Id>
        <Titles>
            <Title languagecode="en" ismain="1">Deluxe</Title>
        </Titles>
    </RoomType>
    <RoomType>
        <Id>3</Id>
        <Titles>
            <Title languagecode="en" ismain="1">Bungalow</Title>
        </Titles>
    </RoomType>
    <RoomType>
        <Id>4</Id>
        <Titles>
            <Title languagecode="en" ismain="1">Double - Queen</Title>
        </Titles>
    </RoomType>
</RoomTypes>
[
    {
        "id":2,
        "titles":[
            {
                "title":"Deluxe",
                "languageCode":"en",
                "isMain":1
            }
        ]
    },
    {
        "id":3,
        "titles":[
            {
                "title":"Bungalow", 
                "languageCode":"en",
                "isMain":1
            }
        ]
    },
    {
        "id":4,
        "titles":[
            {
                "title":"Double - Queen",
                "languageCode":"en",
                "isMain":1
            }
        ]
    }
]