getAllotmentBlocks

Retrieve allotment blocks

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Property ID (optional, by default all authorized properties will be included)

string

Allotment block code

string

Allotment block name

string

GPS (Group Profile Service) external profile ID. Returns all allotment blocks linked to this GPS profile.

string

An event (group profile) code

string
enum

Allotment block status(es)

Allowed:
string
enum

The type of allotment block

Allowed:
string

Filters allotment blocks with the supplied Room Type ID.

integer

Number of allotment blocks to return per page (min: 1, max: 100)

integer

Which page in the results to access

date

Lower limit for the block's date range. That range includes shoulder dates, so it can begin before the earliest interval startDate. A block is returned only if its date range starts on or after this date.

date

Upper limit for the block's date range. That range includes shoulder dates, so it can end after the latest interval endDate. A block is returned only if its date range ends on or before this date.

boolean

If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals.

boolean

When true, each block in the response will include a resources[] array with associated space resource quotes. Requires the spaces-allotment-blocks feature flag to be enabled for the property; when the flag is off, resources[] will be empty even if the param is true.

boolean

When true, each interval's availability[] also includes the interval's shoulder dates, and every availability entry carries isShoulderDate. On a shoulder date blockAllotted and blockRemaining are 0 and blockConfirmed is the number of rooms picked up against the block for that night, so it may exceed blockAllotted. Requires the property's shoulder-dates feature to be enabled; when it is off, availability[] holds only the interval's own dates even if the param is true. Has no effect when forUpdate=true: that mode reads raw interval availability, which carries no shoulder dates.

Response

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json