v1

latestSwagger 2.02026-07-14214688.6 KB
RatePlans

Partially update a rate of the specified rateplan for the defined time period.

The hetras API is using this <a href="https://developer.hetras.com/docs/patch" onfocus="this.blur()" target="_blank">Patch Specification</a> to partially update an existing resource. 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> [ { "op": "replace", "path": "/base_price", "value": 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 />

patch/api/hotel/v0/hotels/{hotelId}/rateplans/{rateplanCode}/rates

Path parameters

hotelIdinteger required

The hotel id the rateplan belongs to.

rateplanCodestring required

The code of the rateplan you want to update the daily rate details for.

Query parameters

fromstring date-time required

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

tostring date-time required

Defines the first business day you would like to get rates for.

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Request body

fromstring
opstring
pathstring
valueObject

Response

The update was successful

Object required