Configuration
Get properties
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.
Request
[PlatformAddress]/api/channelManager/v1/getProperties
clientToken
string
required
Client token of the channel manager.
email
string
required
Verified email of an enterprise employee held on the Mews system.
Response
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.
Property Info
name
string
required
Name of the property.
id
string
required
Unique ID of the property.
Connection Info
token
string
required
Connection Token for the connection.
name
string
optional
Name of the connection.
Get configuration
This operation returns the configuration of the given property connection.
Request
[PlatformAddress]/api/channelManager/v1/getConfiguration
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Connection token of a property connection.
Configuration Extent
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.
Response
This is an example of a successful response. In case an error occurred, the response will contain only the Error
object.
connectionToken
string
required
Token of the connection.
inventoryMappings
Inventory Mappings
collection
required
Defines relations between rate plans and space categories.
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.
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.
images
Image
object
optional
Images associated with the property, e.g. brand logos and exterior photographs.
Pricing Mode types
0
Gross
1
Net
Address
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].
Image
url
string
required
Public URL of the image.
Image types
1
Logo
2
Photo
Rate Plan
code
string
required
Mapping code of the rate plan.
name
string
required
Name of the rate plan.
description
string
optional
Description 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).
Payment types
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.
Rate types
0
Private
1
Public
Cancellation Policy
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.
Cancellation Policy Applicability
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).
Cancellation Penalty
Absolute Cancellation Penalty
amount
decimal
required
Defines the amount of the absolute fee. Sent in gross
.
Relative Cancellation Penalty
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".
Space Categories
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.
Space Classifications
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
Bed Types
1
Single bed
2
Twin bed
3
Double bed
4
Queen bed
5
King bed
6
Sofa bed
Inventory Mappings
ratePlanCode
string
required
Mapping code of the rate plan
spaceTypeCode
string
required
Mapping code of the space type related to the rate plan.
Products
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.
netValue
decimal
required
Tax exclusive product cost.
grossValue
decimal
required
Tax inclusive product cost.
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
.
Product Mapping
ratePlanCode
string
required
Mapping code of the rate plan.
productCode
string
required
Mapping code of the product related to the rate plan.
Companies
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.
Travel Agencies
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.
Age categories
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.
Get channels
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.
Request
[PlatformAddress]/api/channelManager/v1/getChannels
clientToken
string
required
Client token of the channel manager.
Response
Channel
code
int
required
Mapping code of channel.
name
string
required
Name of channel.
Last updated