Add or Update Room Counts

post
Add or Update Room Counts

[PlatformAddress]/api/1.0/venue?action=addOrUpdateRoomCounts
Add or update the dynamic inventory counts of venue rooms
Request
Response
Request
Path Parameters
venueId
required
integer
The unique id of the venue to which the room belongs
roomId
required
integer
The unique id of the room for which the inventory count will be set
startDate
required
string
The start date from which the room inventory count will be set (Date Format)
endDate
required
string
The end date from which the room inventory count will be set (Date Format)
roomCount
required
integer
The inventory count of the room from startDate to endDate
Response
200: OK
{
"success": true
}

NOTE: The dynamic data is only available to venues that integrate with a distribution channel.

Examples

Setting the room count for a single date

{
"venueId": 123,
"roomId": 456,
"startDate": "2018-07-27",
"endDate": "2018-07-27",
"roomCount": 9
}

Setting the room count for a date range

{
"venueId": 123,
"roomId": 456,
"startDate": "2018-07-27",
"endDate": "2018-08-03",
"roomCount": 10
}

Returns

Property

Description

Type

success

Whether or not the room inventory counts were updated

boolean