Skip to main content

Room Level

Manage Stay Controls - Room Level

The following examples show how to Create, Retrieve and Delete Stay Controls at the Room level

For the complete list of Stay Controls Click Here.

 

Room Level Stay Controls - Create Request

Create Room level stay controls for SellLimit and MaximumStayThrough for two different rooms.

{
    "criteria": {
        "startDate": "2021-07-01",
        "endDate": "2021-07-07",
        "Hotel": {
            "id": 13098
        },
        "ChannelList": [
            {
                "code": "ALL"
            }
        ]
    },
    "valueList": [
        {
            "Room": {
                "code": "SUPK"
            },
            "controlType": "SellLimit",
            "dayofWeek": "M,Tu,W,Th,F,Sa,Su",
            "value": "454",
            "valueType": "Number"
        },
        {
            "Room": {
                "code": "SUPT"
            },
            "controlType": "MaximumStayThrough",
            "dayofWeek": "W",
            "value": "222",
            "valueType": "Number"
        }
    ]
}

 

Room Level Stay Controls - Retrieve Request

Return a list of Room level stay restrictions. @roomCode and @level=Room are required input parameters.

GET /v1/api/admin/product/stayControls?roomCode=SUPK&level=Room&hotelId=13098&startDate=2021-07-01&endDate=2021-07-07

Response

{
    "paging": {
        "Size": 4,
        "Start": 0,
        "Total": 4
    },
    "StayControlList": [
        {
            "Hotel": {
                "Id": 13098
            },
            "Channel": {
                "Code": "ALL"
            },
            "Room": {
                "Code": "SUPK"
            },
            "StartDate": "2021-07-01T00:00:00",
            "EndDate": "2021-07-07T00:00:00",
            "DayofWeek": "Wednesday, Thursday, Friday",
            "Level": "Room",
            "Type": "SellLimit",
            "Value": "55",
            "ValueType": "Number"
        },
        {
            "Hotel": {
                "Id": 13098
            },
            "Channel": {
                "Code": "ALL"
            },
            "Room": {
                "Code": "SUPK"
            },
            "StartDate": "2021-07-01T00:00:00",
            "EndDate": "2021-07-07T00:00:00",
            "DayofWeek": "Sunday",
            "Level": "Room",
            "Type": "MaximumStayThrough",
            "Value": "3",
            "ValueType": "Number"
        }
    ],
    "ContentList": {
        "ChannelList": [
            {
                "Code": "ALL",
                "Name": "Channel Independent"
            }
        ],
        "RoomList": [
            {
                "Code": "SUPK",
                "Name": "Superior Room King Bed"
            }
        ],
        "HotelList": [
            {
                "Code": "CRSPROD1",
                "ID": 13098,
                "Name": "SynXis Test Hotel"
            }
        ]
    }
}

Room Level Stay Controls - Delete

Delete the Hotel Level NoArrival stay restriction

{
    "criteria": {
        "chain": {
            "id": 12723
        },
        "hotel": {
            "id": 13098
        },
        "startDate": "2021-07-01",
        "endDate": "2021-07-07",
        "channelList": [
            {
                "code": "ALL"
            }
        ],
        "controlType": "NoArrival"
    },
    "valueList": [
        {
            "Room": {
                "code": "SUPK"
            }
        }
    ]
}