v1

latestSwagger 2.02026-07-141993129.2 KB
Blocks

Get total blocks count that match the given filter criteria.

get/api/booking/v0/blocks/$count

Query parameters

hotelIdinteger

Only return blocks for this specific hotel.

groupCodestring

Filter the blocks by the specified group code

fromstring date-time

Return all blocks where the block's last_departure is greater than specified date.

tostring date-time

Return all blocks where the block's last_departure is less than specified date.

status'Cancelled' | 'Tentative' | 'Definite'

Return all blocks where the block status is one of the specified values.

ratePlanCodesstring[]

Return all blocks that have related the specified comma-separated rate plans.

countDetailsboolean

If true it will include also details of block count per each room type.

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Request body

CanBeCanceledboolean
IsCancellationRequestedboolean

Response

The total blocks count for a given filter criteria.

_countinteger required

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