Add or Update Room Dynamic Rates
post
[PlatformAddress]/api/1.0/venue?action=addOrUpdateRoomDynamicRatesCollection
Add or Update Room Dynamics Rates
NOTE: The dynamic data is only available to venues that integrate with a distribution channel.

Examples

Setting the room dynamic rate for a single date

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

Setting the room dynamic rate for a date range

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

Returns

Property
Description
Type
success
Whether or not the room dynamic rates were updated
boolean

Item Details

Property
Type
Required
Description
barId
integer
required
The unique id of the rate plan to which the dynamic rate applies
roomId
integer
required
The unique id of the room to which the rate applies
startDate
date
required
The start date from which the dynamic rate will be set (Date Format)
endDate
date
required
The end date from which the dynamic rate will be set (Date Format)
cost
integer
required
The rate amount from startDate to endDate. The amount must either include or exclude tax depending on how the venue has been configured
Last modified 8d ago