v1

latestSwagger 2.02026-07-14214688.6 KB
RatePlans

Update a list of base rateplans for a given period and a given base price for single occupancy.

Currently this call only allows to set the base price for non-derived rateplans if the rateplan is active and already loaded for the specified time period. <br /><br /> A request example:<br /><pre> [ { "rateplan": "STDN01", "from": "2018-01-01", "to": "2018-01-30", "base_price": 120.00 } ] </pre><br /> For more details on how the API responds to errors please check our documentation on <a href="https://developer.hetras.com/docs/errors/" onfocus="this.blur()">Error Handling</a>.<br />

put/api/hotel/v0/hotels/{hotelId}/rateplans/batch/$rates

Path parameters

hotelIdinteger required

The hotel id the rateplan belongs to.

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Request body

base_pricenumber double required

The price of the rateplan for the default room type and single occupancy.

fromstring date-time required

Defines the first business day you would like to update rates. The maximum time span between <i>from</i>´and <i>to</i> is limited to 365 days.

rateplanstring required

The rateplan code to be updated. NOTE: this must be a base rateplan and not a derived one.

tostring date-time required

Defines the last business day you would like to update rates. This can be same as {Hetras.PublicApi.Models.Hotels.Rateplans.Rates.RatesBatchUpdateRequestItem.To} if the update is for a single date.

Response

The update was successful

Object required