Availability blocks
Last updated
Last updated
[PlatformAddress]/api/channelManager/v1/processAvailabilityBlockConfirmation
Property | Type | Contract | Description |
---|---|---|---|
Synchronous simple response is expected.
[async
] Use this operation to push availability blocks to Mews. The same operation is used for adding, updating and canceling availability blocks.
[PlatformAddress]/api/channelManager/v1/processAvailabilityBlock
Created
Updated
Canceled
AllInOneGroup
IndividualGroups
Fixed
Rolling
Synchronous simple response is expected to determine whether the operation was accepted or not.
[Async] availability block processing confirmation is expected to determine whether the operation was processed afterward or not.
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
relatedMessageId
string
required
Id of message which requests relates to.
success
bool
required
Determinines the result of the operation.
errors
array of Error
optional
In case of "success": false
, this property holds information about the errors that occurred.
code
string
required
Unique reference code from external system for the block. Will be sent with every block changes.
confirmationNumber
string
required
Mews confirmation number for the block.
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
messageId
string
required
Unique identification of the message. Used for asynchronous confirmations.
availabilityBlock
Availability block
object
required
Availablity block data.
code
string
required
Unique reference code from external system for the availability block. Will be returned after confirmation containing this code.
confirmationNumber
string
optional
Mews confirmation number for the block. If updating or deleting an existing block, this property is required.
status
Status
object
required
State of the availability block.
name
string
required
Name of the availability block.
dates
Dates
object
required
Dates of the availability block.
releaseStrategy
Release strategy
object
required
Release strategy of the availability block.
originalRateCode
string
required
Original rated code of the availability block.
spaceCategories
Space category allocation
collection
required
Allocated categories of the availability block.
booker
Customer
object
required
The main booker. This does not mean that the person has arrived at the property.
company
Company
object
optional
The company associated with the availability block.
notes
string
optional
Notes related to the availability block.
pickupType
PickupType
object
required
Specifies how new reservations in block should be picked up.
start
string
required
Start date in format yyyy-mm-dd
, e.g. 2024-12-05
, this is the first day of the block and so can be booked for stay.
end
string
required
End date in format yyyy-mm-dd
, e.g. 2024-12-08
, this day is not included in the block and so cannot be booked for stay (it is analogous to reservation departure).
type
string
Release strategy type
required
release strategy for the availability block.
fixedDate
string
optional
release date in format YYYY-MM-DD, for example "2024-12-08". Required if type
is Fixed
.
offset
string
optional
Offset duration from the start date before the block is released, if following the rolling release strategy. The format follows ISO 8601 for duration, i.e. "P[days]DT". Required if type
is Rolling
.
spaceTypeCode
string
required
Space type code of the block.
allocatedSpaces
Space count
collection
required
The number of spaces allocated in the time interval.
rates
Rates
collection
optional
Prices for the space category.
start
string
required
Start date in format "yyyy-MM-dd"
(e.g. "2024-12-05"
).
end
string
required
End date (excluded) in format "yyyy-MM-dd"
(e.g., "2024-12-08"
).
count
int
required
Number of spaces (base of usage either occupied or allocated.)
start
string
required
Start date in format "yyyy-MM-dd"
(e.g. "2024-12-05"
).
end
string
required
End date (excluded) in format "yyyy-MM-dd"
(e.g., "2024-12-31"
).
grossAmount
string
required
Price with taxes included.
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
messageId
string
required
Id of message which requests relates to.
code
string
required
Unique reference code from external system for the block.
confirmationNumber
string
required
Mews confirmation number for the block.
success
bool
required
Determinines the result of the operation.
errors
Error
collection
optional
In case of "success": false
, this property holds information about the errors that occurred.