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

Examples

Setting the room count 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
"roomCount": 11
9
}
10
]
11
}
Copied!

Setting the room count 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
"roomCount": 11
9
},
10
{
11
"startDate": "2020-05-01",
12
"endDate": "2020-05-10",
13
"roomId": 3,
14
"roomCount": 21
15
},
16
{
17
"startDate": "2020-05-01",
18
"endDate": "2020-05-10",
19
"roomId": 4,
20
"roomCount": 16
21
},
22
{
23
"startDate": "2020-05-11",
24
"endDate": "2020-05-20",
25
"roomId": 2,
26
"roomCount": 11
27
},
28
{
29
"startDate": "2020-05-11",
30
"endDate": "2020-05-20",
31
"roomId": 3,
32
"roomCount": 21
33
},
34
{
35
"startDate": "2020-05-11",
36
"endDate": "2020-05-20",
37
"roomId": 4,
38
"roomCount": 16
39
}
40
]
41
}
Copied!

Returns

Property
Description
Type
success
Whether or not the room inventory counts were updated
boolean

Item Details

Property
Type
Required
Description
roomId
integer
required
The unique id of the room for which the inventory count will be set
startDate
date
required
The start date from which the room inventory count will be set (Date Format)
endDate
date
required
The end date from which the room inventory count will be set (Date Format)
roomCount
integer
required
The inventory count of the room from startDate to endDate
Last modified 8d ago