Configuration
Last updated
Last updated
This operation is used to get the list of available properties and their connection details, based on your Client Token
and an employee email address. A valid email address must be supplied which corresponds to an employee of the enterprise to which the properties belong. The system will verify the email address and return the list of properties and connections (including Connection Tokens
) for which the owner of the email address has access.
[PlatformAddress]/api/channelManager/v1/getProperties
Property | Type | Contract | Description |
---|---|---|---|
This sample response shows that the owner of the email address has access to two properties: Sample Hostel and White House Hotel. Sample Hostel has two connections to this channel manager, whilst White House Hotel has no connections.
This operation returns the configuration of the given property connection.
[PlatformAddress]/api/channelManager/v1/getConfiguration
This is an example of a successful response. In case an error occurred, the response will contain only the Error
object.
Get the list of all supported channels (including OTAs or Online Travel Agents) plus their assigned mapping codes.
Note: The mapping code is not a continuous sequence of numbers, there are some gaps. Gaps arise because OTAs get merged over time or otherwise disappear. New Channels will always be added to the bottom of the list, so you can easily keep track. Please check the list periodically to update your channels list.
[PlatformAddress]/api/channelManager/v1/getChannels
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 |
---|---|---|---|
Code | Description |
---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Code | Description |
---|---|
Property | Type | Contract | Description |
---|---|---|---|
Code | Description | Notes |
---|---|---|
Code | Description |
---|---|
Property | Type | Contract | Description |
---|---|---|---|
Code | Description | Notes |
---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Code | Description |
---|---|
Code | 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 |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
Property | Type | Contract | Description |
---|---|---|---|
clientToken
string
required
Client token of the channel manager.
email
string
required
Verified email of an enterprise employee held on the Mews system.
properties
Property Info
collection
required
List of available properties.
name
string
required
Name of the property.
id
string
required
Unique ID of the property.
connections
Connection Info
collection
optional
List of supported connections.
token
string
required
Connection Token for the connection.
name
string
optional
Name of the connection.
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Connection token of a property connection.
extent
Configuration extent
object
optional
Specifies what to include in the return data.
includeUnsynchronizedRates
bool
optional
If true
, unsynchronized Rate plans
will be returned as well. Unsynchronized rate plan means that Mews will not push prices and restrictions for that rate plan, but when a reservation comes with the rate plan code, Mews will link the correct rate plan with the reservation.
includeProducts
bool
optional
If true
, products mapped to a channel manager rate plan will be returned. Products mapped to a channel manager rate plan means that Mews sends a total price combining nightly price and product price in Update Prices
requests.
includeCompanies
bool
optional
If true
, mapped profiles for companies (e.g. Microsoft) and travel agencies (e.g. Expedia) will be returned. A company profile needs to be mapped with a Channel code
. To map a travel agency, follow the guide Setting up travel agencies.
includeUnsynchronizedCategories
bool
optional
If true
, unsynchronized space categories will be returned as well. Unsynchronized space category means that Mews will not push availability for that space category, but when a reservation comes with the space category code, Mews will link the correct space category with the reservation.
includeAgeCategories
bool
optional
If true
, age categories mapped to a channel manager integration will be returned.
connectionToken
string
required
Token of the connection.
property
Property
object
required
Details of the property.
ratePlans
RatePlan
collection
required
Rate plans of the property.
spaceCategories
Space Categories
collection
required
Space categories (space types) of the property.
inventoryMappings
Inventory Mappings
collection
required
Defines relations between rate plans and space categories.
ageCategories
Age categories
collection
optional
Age categories of the property.
name
string
required
Name of the property.
description
string
optional
Description of the property.
languageCode
string
required
Language code of the default language of the property. All names and descriptions are in this language.
timeZoneIdentifier
string
required
Property time zone identifier.
websiteUrl
string
optional
Website of the property.
email
string
optional
Email contact of the property.
telephone
string
optional
Phone contact of the property.
spaceCount
int
required
Total count of spaces sold/offered by the property.
pricingMode
int
required
Pricing Mode type
. Determines whether net
or gross
prices are sent to the channel manger.
address
Address
object
optional
Address of the property.
images
Image
object
optional
Images associated with the property, e.g. brand logos and exterior photographs.
0
Gross
1
Net
addressLine1
string
optional
First line of the address.
addressLine2
string
optional
Second line of the address.
city
string
optional
City.
region
string
optional
Region.
zip
string
optional
Zip code.
country
string
optional
ISO 3166-1 alpha-2 country code - two letter country code or ISO 3166-1 alpha-3 country code - three letter country code.
latitude
decimal
optional
Latitude - from range [-90, 90].
longitude
decimal
optional
Longitude - from range [-180, 180].
type
int
required
Image type
code.
url
string
required
Public URL of the image.
1
Logo
2
Photo
code
string
required
Mapping code of the rate plan.
name
string
required
Name of the rate plan.
currencyCode
string
required
ISO-4217 three-letter currency code of the rate plan price.
description
string
optional
Description of the rate plan.
paymentType
int
required
Payment type code. Deprecated!
cancellationPolicies
Cancellation Policy
collection
optional
Cancellation policies of the rate plan.
isSynchronized
bool
required
Determines whether rate plan is synchronized, i.e. that Mews pushes prices and restrictions for the rate plan. Otherwise, unsynchronized rate plan is used just for mapping correct rate plan for incoming reservations (as well as sychronized rate plan).
rateType
int
required
Determines whether rate plan is private (available for channel reservations only) or public (bookable via Mews Distributor as well).
1
Prepaid
When guest has already paid to the Channel (i.e. OTA).
2
Preauthorized
When the booking is covered by a guarantee (preauthorization or a payment card).
3
OnSite
When guest will pay on site.
0
Private
1
Public
applicability
int
required
offset
string
optional
Offset specifying a "shift" from the moment given by applicability
when the cancellation policy starts to apply. Format "[days]DT[hours]H[minutes]M"
inspired by ISO 8601 for durations. E.g. "-1DT2H0M"
means "-1 day and 2 hours before applicability
moment", "0DT2H0M"
means "2 hours after applicability
moment".
penalty
Cancellation Penalty
object
required
Defines penalty that applies based on the cancellation policy.
1
Creation
Cancellation policy applies from the moment the booking is created.
2
Start
Cancellation policy applies from the moment the booking starts (i.e. time included).
3
Start Date
Cancellation policy applies from the 0:00 on the day when the booking starts (i.e. time is not included).
absolute
required
Defines absolute fee penalty.
relative
required
Defines relative (i.e. %) fee penalty.
amount
decimal
required
Defines the amount of the absolute fee. Sent in gross
.
currencyCode
string
required
ISO-4217 three-letter currency code of the absolute fee.
value
decimal
required
Defines the % value of the relative fee (e.g 0.3
for "30%").
nights
decimal
optional
Determines maximum number of nights included in the relative fee calculation, empty means "all nights".
code
string
required
Mapping code of the space type.
name
string
required
Name of the space type.
description
string
optional
Description of the space type.
spaceCount
int
required
Number of sold/offered spaces of the type.
bedCount
int
optional
Number of beds of the space type - required if the type describes some room type. Represents default occupancy.
extraBedCount
int
optional
Number of extra beds of the space type.
classification
int
required
Space classification
code.
bedType
int
optional
Bed Type
- required if the type describes some room type.
images
Image
object
optional
Images of the space type. These are always image type
2 because they are photos, not logos.
1
Apartment
2
Bungalow
3
Chalet
4
Double Room
5
Holiday Home
6
Mobile Home
7
Quadruple Room
8
Dormitory Bed
9
Single Room
10
Studio
11
Suite
12
Tent
13
Triple Room
14
Twin Room
15
Villa
16
Dormitory
17
Site
18
Office
19
MeetingRoom
20
ParkingSpot
21
Desk
22
TeamArea
24
CaravanOrRv
25
UnequippedCampsite
1
Single bed
2
Twin bed
3
Double bed
4
Queen bed
5
King bed
6
Sofa bed
ratePlanCode
string
required
Mapping code of the rate plan
spaceTypeCode
string
required
Mapping code of the space type related to the rate plan.
code
string
required
Mapping code of the product.
name
string
required
Name of the product.
description
string
optional
Description of the product.
unitAmount
Amount
object
required
A product cost.
currencyCode
string
required
ISO-4217 three-letter currency code of the product.
netValue
decimal
required
Tax exclusive product cost.
grossValue
decimal
required
Tax inclusive product cost.
cancellationPolicies
Cancellation Policy
collection
optional
Cancellation policies of the rate plan.
taxValues
object
required
Identifies legal environment specific taxes.
code
string
required
Tax code corresponding to legal environment.
value
decimal
required
Tax amount.
pricing
string
required
Identified in pricing types
.
ratePlanCode
string
required
Mapping code of the rate plan.
productCode
string
required
Mapping code of the product related to the rate plan.
id
string
optional
Company identifier. Not supported yet.
iata
string
optional
Related to Travel Agencies only.
name
string
required
Company name.
contact
string
optional
Company contact.
phone
string
optional
Company phone number.
addresses
Address
object
optional
Company address.
channel
optional
Mapping channel of the company.
id
string
optional
Company identifier. Not supported yet.
iata
string
optional
IATA code.
name
string
required
Travel Agency name.
contact
string
optional
Travel Agency contact.
phone
string
optional
Travel Agency phone number.
addresses
Address
object
optional
Travel Agency address.
channel
optional
Mapping channel of the company.
code
string
required
Mapping code of age category.
name
string
required
Display name.
minimumAge
int
optional
Minimal age for the age category.
maximumAge
int
optional
Maximal age for the age category.
clientToken
string
required
Client token of the channel manager.
channels
Channel
collection
required
All mapped channels.
code
int
required
Mapping code of channel.
name
string
required
Name of channel.