Add or Update Rate Plan Booking Rules
post
[PlatformAddress]/api/1.0/venue?action=addOrUpdateRatePlanBookingRulesCollection
Add or Update Rate Plan Booking Rules
NOTE: The dynamic data is only available to venues that integrate with a distribution channel.

Examples

Setting the rate plan booking rules for a single date

REQUEST
1
{
2
"venueId": 1,
3
"items": [
4
{
5
"startDate": "2020-05-01",
6
"endDate": "2020-05-01",
7
"roomId": 2,
8
"barId": 1,
9
"closeOutStatus": 1
10
}
11
]
12
}
Copied!

Setting the rate plan booking rules for a date range

REQUEST
1
{
2
"venueId": 1,
3
"items": [
4
{
5
"startDate": "2020-05-01",
6
"endDate": "2020-05-10",
7
"roomId": 2,
8
"barId": 1,
9
"closeOutStatus": 1
10
},
11
{
12
"startDate": "2020-05-01",
13
"endDate": "2020-05-10",
14
"roomId": 2,
15
"barId": 147,
16
"closeOutStatus": 1
17
},
18
{
19
"startDate": "2020-05-01",
20
"endDate": "2020-05-10",
21
"roomId": 3,
22
"barId": 1,
23
"closeOutStatus": 1
24
},
25
{
26
"startDate": "2020-05-01",
27
"endDate": "2020-05-10",
28
"roomId": 3,
29
"barId": 147,
30
"closeOutStatus": 1
31
}
32
]
33
}
Copied!

Returns

Property
Description
Type
success
Whether or not the rate plan booking rules were updated
boolean

Close Out Status

The following close out status values are supported by the current booking rules.
Value
Description
1
The room is open for bookings
2
The room is closed for bookings

Item Details

Property
Type
Required
Description
barId
integer
required
The unique id of the rate plan to which the booking rule applies
roomId
integer
required
The unique id of the room to which the booking rule applies
startDate
date
required
The start date from which the booking rule will apply (Date Format)
endDate
date
required
The end date until which the booking rule will apply (Date Format)
closeOutStatus
integer
required
The close out status of the booking rule from startDate to endDate. 1 = Open, 2 = Closed