Skip Navigation

Room Category Level

Manage Stay Controls - Room Category

The following examples show how to Create, Retrieve and Delete Stay Controls for a Room Category

For the complete list of Stay Controls Click Here.


Room Category Level Stay Controls - Create Request

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

{
    "criteria": {
        "startDate": "2021-07-01",
        "endDate": "2021-07-07",
        "Hotel": {
            "id": 13098
        },
        "ChannelList": [
            {
                "code": "ALL"
            }
        ]
    },
    "valueList": [
        {
            "Room": {
                "categoryCode": "SUP"
            },
            "controlType": "SellLimit",
            "dayofWeek": "W,Th,F",
            "value": "55",
            "valueType": "Number"
        },
        {
            "Room": {
                "categoryCode": "ACCESS"
            },
            "controlType": "NoArrival",
            "dayofWeek": "M,Tu,W",
            "value": "true",
            "valueType": "Boolean"
        }
    ]
}


Room Category Level Stay Controls - Retrieve Request

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

GET /v1/api/admin/product/stayControls?roomCategoryCode=SUP&level=RoomCategory&hotelId=13098&startDate=2021-08-01&endDate=2021-08-07

Response

{
    "paging": {
        "Size": 6,
        "Start": 0,
        "Total": 6
    },
    "StayControlList": [
        {
            "Hotel": {
                "Id": 13098
            },
            "Channel": {
                "Code": "ALL"
            },
            "Room": {
                "CategoryCode": "SUP"
            },
            "StartDate": "2021-07-01T00:00:00",
            "EndDate": "2021-07-07T00:00:00",
            "DayofWeek": "Wednesday, Thursday, Friday",
            "Level": "RoomCategory",
            "Type": "SellLimit",
            "Value": "55",
            "ValueType": "Number"
        },
        {
            "Hotel": {
                "Id": 13098
            },
            "Channel": {
                "Code": "ALL"
            },
            "Room": {
                "CategoryCode": "SUP"
            },
            "StartDate": "2021-07-01T00:00:00",
            "EndDate": "2021-07-07T00:00:00",
            "DayofWeek": "Monday, Tuesday, Wednesday",
            "Level": "RoomCategory",
            "Type": "NoArrival",
            "Value": "True",
            "ValueType": "Boolean"
        }
    ],
    "ContentList": {
        "ChannelList": [
            {
                "Code": "ALL",
                "Name": "Channel Independent"
            }
        ],
        "HotelList": [
            {
                "Code": "CRSPROD1",
                "ID": 13098,
                "Name": "SynXis Test Hotel"
            }
        ]
    }
}

Room Category Level Stay Controls - Delete

Delete the Room Category 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": {
                "categoryCode": "SUP"
            }
        }
    ]
}