Skip to main content

Room Upsell

Manage Stay Controls - Room Upsell

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

For the complete list of Stay Controls Click Here.

Please Note: The following Stay Controls are not supported for Room Upsells.

  • NoSellDay
  • Suspended
  • SeasonalClosure
  • ByRequestOnly
  • SellThreshold
  • TotalHotelSellThreshold
  • StartTime
  • EndTime
  • SameDay

Room Upsell Level Stay Controls - Create Request

Create Room Upsell level stay controls for NoArrival.

{
    "criteria": {
        "startDate": "2021-07-01",
        "endDate": "2021-07-07",
        "Hotel": {
            "id": 13098
        },
        "ChannelList": [
            {
                "code": "ALL"
            }
        ]
    },
    "valueList": [
        {
            "RoomUpsell": {
                "Code": "KINGUPSELL"
            },
            "controlType": "NoArrival",
            "dayofWeek": "M,Tu,W",
            "value": "true",
            "valueType": "Boolean"
        }
    ]
}

 

Room Upsell Level Stay Controls - Retrieve Request

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

GET /v1/api/admin/product/stayControls?roomUpsellCode=KINGUPSELL&level=RoomUpsell&hotelId=13098&startDate=2021-08-01&endDate=2021-08-07

Response

{
    "paging": {
        "Size": 3,
        "Start": 0,
        "Total": 3
    },
    "StayControlList": [
        {
            "Hotel": {
                "Id": 13098
            },
            "Channel": {
                "Code": "ALL"
            },
            "RoomUpsell": {
                "Code": "KINGUPSELL"
            },
            "StartDate": "2021-07-01T00:00:00",
            "EndDate": "2021-07-07T00:00:00",
            "DayofWeek": "Monday, Tuesday, Wednesday",
            "Level": "RoomUpsell",
            "Type": "NoArrival",
            "Value": "True",
            "ValueType": "Boolean"
        }
    ],
    "ContentList": {
        "ChannelList": [
            {
                "Code": "ALL",
                "Name": "Channel Independent"
            }
        ],
        "HotelList": [
            {
                "Code": "CRSPROD1",
                "ID": 13098,
                "Name": "SynXis Test Hotel"
            }
        ],
        "CouponOfferList": [],
        "RoomUpsellList": [
            {
                "Code": "KINGUPSELL",
                "Name": "Upsell Queen to King"
            }
        ]
    }
}

Room Upsell Level Stay Controls - Delete

Delete the Room Upsell NoArrival stay restriction

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