Availability blocks
Get all availability blocks
This feature is being actively developed, features and behavior of this operation may change at short notice.
Returns all availability blocks filtered by services, unique identifiers and other filters. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/availabilityBlocks/getAll
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseIds
array of string
optional, max 1000 items
AvailabilityBlockIds
string
optional, max 1000 items
ServiceIds
string
optional, max 1000 items
CreatedUtc
optional, max length 3 months
UpdatedUtc
optional, max length 3 months
CollidingUtc
optional, max length 3 months
ReleasedUtc
optional, max length 3 months
States
optional
States the availability blocks should be in.
ExternalIdentifiers
string
optional, max 1000 items
ActivityStates
optional
Whether to return only active, only deleted or both records.
Extent
required
Extent of data to be returned, e.g. it is possible to specify that related service orders (for example reservations) are returned.
Availability block state
Confirmed
- The block deducts availability and can have reservations assigned.Optional
- The block deducts availability and cannot have reservations assigned.Inquired
- The block does not deduct availability and cannot have reservations assigned (waitlist).Released
- The block deducts availability, but only for reservations assigned to the block before release. Remaining availability is returned back to general availability (waitlist).Canceled
- The block does not deduct availability and cannot have reservations assigned (waitlist).
Availability block extent
AvailabilityBlocks
bool
optional
Whether the response should contain the general availability blocks.
Adjustments
bool
optional
Whether the response should contain individual availability adjustments related to availability blocks.
ServiceOrders
bool
optional
Whether the response should contain reservations related to availability blocks.
Rates
bool
optional
Whether the response should contain rates related to availability blocks.
Response
AvailabilityBlocks
optional
Availability blocks.
ServiceOrders
optional
Service orders (for example reservations) linked to availability blocks.
Adjustments
optional
Availability adjustments of availability blocks.
Cursor
string
optional
Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.
Availability block
Id
string
required
Unique identifier of the availability block.
ServiceId
string
required
RateId
string
required
VoucherId
string
optional
BookerId
string
optional
CompanyId
string
optional
Budget
optional
The tentative budget for the total price of reservations in the block.
State
required
State of the availability block.
ReservationPurpose
optional
The purpose of the block.
CreatedUtc
string
required
Creation date and time of the block in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the block in UTC timezone in ISO 8601 format.
FirstTimeUnitStartUtc
string
required
LastTimeUnitStartUtc
string
required
ReleasedUtc
string
optional
The moment when the block and its availability is released in UTC timezone in ISO 8601 format. Mutually exclusive with RollingReleaseOffset
; the block will not be automatically released if neither ReleasedUtc
nor RollingReleaseOffsetUtc
is specified.
RollingReleaseOffset
string
optional
Exact offset from the start of availability adjustments to the moment the individual days in the adjustment should be released, in ISO 8601 duration format. Mutually exclusive with ReleasedUtc
; the block will not be automatically released if neither ReleasedUtc
nor RollingReleaseOffsetUtc
is specified.
ExternalIdentifier
string
optional, max 255 characters
Identifier of the block from external system.
Name
string
optional
The name of the block in Mews.
Notes
string
optional
Additional notes of the block.
QuoteId
string
optional
Unique identifier of the Mews Events quote associated with the availability block.
AvailabilityBlockNumber
string
required
Unique number for a specific availability block within the Mews system.
ReleaseStrategy
required
The strategy for automatic release of the availability block.
Add availability blocks
This feature is being actively developed, features and behavior of this operation might change on short notice.
Adds availability blocks which are used to group related Availability updates. This makes limiting public availability easier and more organized. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/availabilityBlocks/add
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseId
string
optional
AvailabilityBlocks
required, max 1000 items
Availability blocks to be added.
Availability block parameters
ServiceId
string
required
RateId
string
required
VoucherCode
string
optional
Name
string
optional
The name of the block.
FirstTimeUnitStartUtc
string
required
LastTimeUnitStartUtc
string
required
ReleasedUtc
string
optional
The moment when the block and its availability is released, in UTC timezone ISO 8601 format. Takes precedence over RollingReleaseOffset
.
RollingReleaseOffset
string
optional
Exact offset from the start of availability adjustments to the moment the availability adjustment should be released, in ISO 8601 duration format. Ignored if ReleasedUtc
is specified.
ExternalIdentifier
string
optional, max 255 characters
Identifier of the block from external system.
Budget
optional
The tentative budget for the total price of reservations.
ReservationPurpose
optional
The purpose of the block.
Notes
string
optional
Additional notes of the block.
State
required
State of the availability block.
BookerId
string
optional
QuoteId
string
optional
Unique identifier of the Mews Events quote associated with the availability block.
Response
AvailabilityBlocks
required
Availability blocks.
Reservation purpose
Leisure
Business
Student
Update availability blocks
This feature is being actively developed, features and behavior of this operation might change on short notice.
Updates information about the specified Availability block.
Request
[PlatformAddress]/api/connector/v1/availabilityBlocks/update
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseId
string
optional
AvailabilityBlocks
required, max 1000 items
Availability blocks to be updated.
Availability block update parameters
AvailabilityBlockId
string
required
Name
optional
The name of the block (or null
if the name should not be updated).
FirstTimeUnitStartUtc
required
LastTimeUnitStartUtc
required
ExternalIdentifier
optional, max 255 characters
Identifier of the block from external system (or null
if the identifier should not be updated).
State
optional
State of the availability block (or null
if not updated).
ReservationPurpose
optional
The purpose of the block (or null
if not updated).
BookerId
optional
Unique identifier of the Booker as a creator of an availability block (or null
if not updated).
Notes
optional
Additional notes of the block (or null
if not updated).
Budget
optional
The tentative budget for the total price of reservations (or null
if not updated).
RollingReleaseOffset
optional
Exact offset from the start of availability adjustments to the moment the availability adjustment should be released, in ISO 8601 duration format. Required if ReleaseStrategy
is set to RollingRelease
, ignored otherwise.
ReleasedUtc
optional
The moment when the block and its availability is released, in UTC timezone ISO 8601 format. Required if ReleaseStrategy
is set to FixedRelease
, or used when ReleaseStrategy
update is unspecified.
ReleaseStrategy
optional
The strategy for automatic release of the availability block. If this property is not specified, the release strategy is not updated.
QuoteId
optional
Unique identifier of the Mews Events quote associated with the availability block (or null
if not updated).
Release strategy
The strategy for automatic release of the availability block.
FixedRelease
- The availability block is released at a fixed time.RollingRelease
- Each availability adjustment is released at a fixed offset from its start.None
- The availability block is not automatically released.
Response
AvailabilityBlocks
required
Availability blocks.
Delete availability blocks
Delete availability blocks. Note that an availability block containing active reservations (reservations which are not Canceled
) cannot be deleted.
Request
[PlatformAddress]/api/connector/v1/availabilityBlocks/delete
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseId
string
optional
AvailabilityBlockIds
array of string
required, max 1000 items
Unique identifier of the Availability block to delete.
Response
Last updated