Skip to main content

Supported Controls

The examples below show how to construct a stay restriction for each of the Stay Restriction types.

ByRequestOnly

{
    "controlType": "ByRequestOnly",
    "dayofWeek": "M,Tu,W,Th,F,Sa",            
    "value": "true",
    "valueType": "Boolean"
}

 

IsClosed

{
    "controlType": "IsClosed",
    "dayofWeek": "F,Sa",            
    "value": "true",
    "valueType": "Boolean"
}

 

NoArrival

{
    "controlType": "NoArrival",
    "dayofWeek": "M",
    "value": "false",
    "valueType": "Boolean"
}

 

NoDeparture

{
    "controlType": "NoDeparture",
    "dayofWeek": "M,Tu,W,F",
    "value": "true",
    "valueType": "Boolean"
}

 

MinimumStayArrive

{
    "controlType": "MinimumStayArrive",
    "dayofWeek": "Su",
    "value": "3",
    "valueType": "Number"
}

 

MaximumStayArrive

{
    "controlType": "MaximumStayArrive",
    "dayofWeek": "Su",
    "value": "7",
    "valueType": "Number"
}

 

MinimumStayThrough

{
    "controlType": "MinimumStayThrough",
    "dayofWeek": "Su",
    "value": "1",
    "valueType": "Number"
}

 

MaximumStayThrough

{
    "controlType": "MaximumStayThrough",
    "dayofWeek": "M,Tu,W,Th",            
    "value": "3",
    "valueType": "Number"
}

 

LeadDays

{
    "controlType": "LeadDays",
    "dayofWeek": "F,Sa,Su",
    "value": "9",
    "valueType": "Number"
}

 

StartTime

{
    "controlType": "StartTime",
    "dayofWeek": "Su",
    "value": "0130",
    "valueType": "MilitaryTime"
}      

 

EndTime

{
    "controlType": "EndTime",
    "dayofWeek": "Su",            
    "value": "2259",
    "valueType": "MilitaryTime"
}

 

SameDay

{
    "controlType": "SameDay",
    "dayofWeek": "F",            
    "value": "true",
    "valueType": "Boolean"
}

 

MinSellDate

{
    "controlType": "MinSellDate",
    "dayofWeek": "Sa",            
    "value": "2022-04-01",
    "valueType": "Date"
}

 

MaxSellDate

{
    "controlType": "MaxSellDate",
    "dayofWeek": "F",            
    "value": "2022-04-30",
    "valueType": "Date"
}

 

SellLimit

{
    "controlType": "SellLimit",
    "dayofWeek": "Su",
    "value": "15",
    "valueType": "Number"
}

 

SellThreshold

{
    "controlType": "SellThreshold",
    "dayofWeek": "Su",
    "value": "15",
    "valueType": "Number"
}

 

TotalHotelSellThreshold

{
    "controlType": "TotalHotelSellThreshold",
    "dayofWeek": "Su",
    "value": "20",
    "valueType": "Number"
}

 

FullPatternLengthOfStayArrival

{
    "controlType": "FullPatternLengthOfStayArrival",
    "dayofWeek": "M,Tu,W,Th,F,Sa",            
    "value": "2121212",
    "valueType": "Number"
}

 

MaximumLeadDays

{
    "controlType": "MaximumLeadDays",
    "dayofWeek": "M,Tu,W,Th,F,Sa,Su",
    "value": "9",
    "valueType": "Number"
}

 

NoSellDay

{
    "controlType": "NoSellDay",
    "dayofWeek": "Su",
    "value": "true",
    "valueType": "Boolean"
}

 

Suspended

{
    "controlType": "Suspended",
    "dayofWeek": "Su",
    "value": "true",
    "valueType": "Boolean"
}

 

SeasonalClosure

{
    "controlType": "SeasonalClosure",
    "dayofWeek": "Su",
    "value": "true",
    "valueType": "Boolean"
}