v1

latestSwagger 2.02026-07-14214688.6 KB
RatePlans

Get the count of all active and loaded daily rates for the defined rateplan in a specified time period.

get/api/hotel/v0/hotels/{hotelId}/rateplans/{rateplanCode}/rates/$count

Path parameters

hotelIdinteger required

The hotel id the rateplan belongs to.

rateplanCodestring required

The code of the rateplan you want to count daily rates 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.

Response

The count of daily rates for the specified time period.

_countinteger required

Returns the total count for all items matching the query parameters. If none is matching it will return 0.