Breadcrumb
- Stay Controls
- Rate Category Level
Rate Category Level
Manage Stay Controls - Rate Category Level
The following examples show how to Create, Retrieve and Delete Stay Controls at the Rate Category level
For the complete list of Stay Controls Click Here.
Rate Category Level Stay Controls - Create Request
Create Rate Category level stay controls for SellLimit and NoArrival.
{
"criteria": {
"startDate": "2021-07-01",
"endDate": "2021-07-07",
"Hotel": {
"id": 13098
},
"ChannelList": [
{
"code": "ALL"
}
]
},
"valueList": [
{
"Rate": {
"categoryCode": "BAR"
},
"controlType": "SellLimit",
"dayofWeek": "W,Th,F",
"value": "55",
"valueType": "Number"
},
{
"Rate": {
"categoryCode": "BAR"
},
"controlType": "NoArrival",
"dayofWeek": "M,Tu,W",
"value": "true",
"valueType": "Boolean"
}
]
}
Rate Category Level Stay Controls - Retrieve Request
Return a list of Rate Category level stay restrictions. @rateCategoryCode
and @level=RateCategory
are required input parameters.
GET /v1/api/admin/product/stayControls?rateCategoryCode=BAR&level=RateCategory&hotelId=13098&startDate=2021-07-01&endDate=2021-07-07
Response
{
"paging": {
"Size": 6,
"Start": 0,
"Total": 6
},
"StayControlList": [
{
"Hotel": {
"Id": 13098
},
"Channel": {
"Code": "ALL"
},
"Rate": {
"CategoryCode": "BAR"
},
"StartDate": "2021-07-01T00:00:00",
"EndDate": "2021-07-07T00:00:00",
"DayofWeek": "Wednesday, Thursday, Friday",
"Level": "RateCategory",
"Type": "SellLimit",
"Value": "55",
"ValueType": "Number"
},
{
"Hotel": {
"Id": 13098
},
"Channel": {
"Code": "ALL"
},
"Rate": {
"CategoryCode": "BAR"
},
"StartDate": "2021-07-01T00:00:00",
"EndDate": "2021-07-07T00:00:00",
"DayofWeek": "Monday, Tuesday, Wednesday",
"Level": "RateCategory",
"Type": "NoArrival",
"Value": "True",
"ValueType": "Boolean"
}
],
"ContentList": {
"ChannelList": [
{
"Code": "ALL",
"Name": "Channel Independent"
}
],
"HotelList": [
{
"Code": "CRSPROD1",
"ID": 13098,
"Name": "SynXis Test Hotel"
}
],
}
}
Rate Category 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": [
{
"Rate": {
"categoryCode": "BAR"
}
}
]
}