Add or Update Room Dynamic Rates

post
Add or Update Room Dynamics Rates

[PlatformAddress]/api/1.0/venue?action=addOrUpdateRoomDynamicRates
Add or update the dynamic rates of venue rooms
Request
Response
Request
Path Parameters
venueId
required
integer
The unique id of the venue to which the rate plan belongs
barId
required
integer
The unique id of the rate plan to which the dynamic rate applies
roomId
required
integer
The unique id of the room to which the rate applies
startDate
required
string
The start date from which the dynamic rate will be set (Date Format)
endDate
required
string
The end date from which the dynamic rate will be set (Date Format)
cost
required
number
The rate amount from startDate to endDate. The amount must either include or exclude tax depending on how the venue has been configured
Response
200: OK
{
"success": true
}

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

{
"venueId": 123,
"barId": 456,
"roomId": 789,
"startDate": "2018-07-27",
"endDate": "2018-07-27",
"cost": 240.00
}

Setting the room dynamic rate for a date range

{
"venueId": 123,
"barId": 456,
"roomId": 789,
"startDate": "2018-07-27",
"endDate": "2018-08-03",
"cost": 234.50
}

Returns

Property

Description

Type

success

Whether or not the room dynamic rates were updated

boolean