Availability blocks
Process availability block
[async
] This method is used when Mews push availability blocks. It is used to send availability blocks changes such as create, modification, cancellation.
Request
[ChannelManagerApiAddress]/processAvailabilityBlock
The example shows a valid availability block definition.
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Token of a concrete connection. |
|
| required | Unique identification of the message. Used for asynchronous confirmations |
|
| required (always) | Url which should be used for asynchronous confirmation. |
|
| required | Availablity block data |
Availability block
Property | Type | Contract | Description |
---|---|---|---|
|
| optional | Unique reference code from external system for the block. Will be returned after confirmation containing this code. |
|
| required | Mews confirmation number for the block. |
|
| required | Represents state of block. |
|
| required | Name of block. |
|
| required | Represents dates of block. |
|
| required | Represents allocated categories of block. |
|
| required | Represents the main booker. Does not mean that the person arrives to the property. |
|
| optional | Represents the company associated with the block. |
Dates
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Start date in format |
|
| required | End date in format |
|
| required | End date in format |
Space category allocation
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Start date in format |
|
| required | End date in format |
|
| required | Space type code of the reservation. |
|
| required | Represents number of spaces allocated in time. |
|
| required | Represents number of occupied spaces in time. |
|
| required | Represents prices for current space category. |
Space count
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Start date in format |
|
| required | End date in format |
|
| required | Number of spaces (base of usage either occupied or allocated.) |
Rate
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Start date in format |
|
| required | End date in format |
|
| required | 3 letter code of currency. |
|
| required | Collection of prices for each person count for the specified rate plan - space type - date combination. |
Status
Create
Update
Cancel
Response
Synchronous simple response is expected to determine whether the update was accepted or not.
Async availability block confirmation is expected to determine whether the update was processed afterwards or not.
Last updated