You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
{"success": true,"properties": [{"id": "sample-hostel","name": "Sample Hostel","connections": [{"token": "[1st connectionToken]","name": "Connection for dorms"},{"token": "[2nd connectionToken]","name": "Connection for beds"},{"token": "[3rd connectionToken]"}]},{"id": "whh","name": "White House Hotel"}]}
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": "[Token of the connection]","property": {"name": "White House Hotel","description": "A 5* hotel with a White House view.","languageCode": "en-US","timeZoneIdentifier": "America/New_York","websiteUrl": "http://www.whh.com","email": "[email protected]","telephone": "+1 202-456-1111","spaceCount": 21,"pricingMode": 0,"address": {"addressLine1": "White House Hotel","addressLine2": "Pennsylvania Ave","city": "Washington, DC","country": "US","latitude": 38.8976763,"longitude": -77.0365298,"region": "DC","zip": "20500"},"images": [{"type": 1,"url": "http://images2.onionstatic.com/onion/5239/1/16x9/600.jpg"}]},"spaceCategories": [{"code": "DEL","name": "Deluxe Room","isSynchronized": false,"description": "Our deluxe rooms with a mountain view.","classification": 9,"bedType": 5,"bedCount": 2,"extraBedCount": 1,"spaceCount": 4,"images": [{"url": "https://cdn.mews-demo.com/Media/Image/78e5d3db-7af6-46b7-96ed-b598c447be19","type": 2}]},{"code": "STA","name": "Standard Room","isSynchronized": true,"description": "Standard Room with Shared Facilities.","classification": 9,"bedType": 4,"bedCount": 2,"extraBedCount": 0,"spaceCount": 7,"images": [{"url": "https://cdn.mews-demo.com/Media/Image/bffcb480-32d5-4784-9c71-aec792b3ef89","type": 2}]}],"ratePlans": [{"code": "NR","name": "Non Refundable","description": "This is our lowest price available. However full payment is required at the time of booking. ","currencyCode": "EUR","isSynchronized": true,"rateType": 1,"cancellationPolicies": [{"offset": "-100DT0H0M","applicability": 2,"penalty": {"relative": {"value": 1.00000000,"nights": null},"absolute": {"amount": 0.00,"currencyCode": "EUR"}}}]},{"code": "FF","name": "Fully Flexible","description": "This rate is the most flexible rate we offer. Bookings can be cancelled up to 48 hours in advance of your arrival date by 2.30 pm (and 7 days before the arrival dates of the 29th, 30th and 31st of December), without charge. The total price of the reservation will be charged 48 hours before arrival. ","currencyCode": "EUR","isSynchronized": false,"rateType": 1,"cancellationPolicies": [{"offset": "-1DT0H0M","applicability": 2,"penalty": {"relative": {"value": 1.00000000,"nights": null},"absolute": {"amount": 0.00,"currencyCode": "EUR"}}}]}],"inventoryMappings": [{"ratePlanCode": "FF","spaceTypeCode": "KD"},{"ratePlanCode": "FF","spaceTypeCode": "QD"},{"ratePlanCode": "NR","spaceTypeCode": "KD"},{"ratePlanCode": "NR","spaceTypeCode": "QD"},{"ratePlanCode": "ROM","spaceTypeCode": "KD"}],"products": [{"code": "AUR","name": "Aurora watch","description": "","pricing": 3,"unitAmount": {"currencyCode": "EUR","netValue": 16.53,"grossValue": 20.0,"taxValues": [{"code": "CZ-S","value": 3.47}]}}],"productMappings": [{"ratePlanCode": "NR","productCode": "AUR"},{"ratePlanCode": "FF","productCode": "L"}],"companies": [{"id": "","iata": "","name": "Some corporation","email": null,"contact": "Some contact","phone": "","addresses": [{"addressLine1": "Some street","addressLine2": "","city": "Some city","zip": "111111","region": null,"country": null,"longitude": null,"latitude": null}],"channel": {"code": 438,"name": "Some Channel Name"}}],"travelAgencies": [{"id": "","iata": "11111111","name": "Expedia","email": null,"contact": "Some contact","phone": "","addresses": [{"addressLine1": "Some street","addressLine2": "","city": "Some city","zip": "1111111","region": null,"country": null,"longitude": null,"latitude": null}],"channel": {"code": 2,"name": "Expedia"}}],"ageCategories": [{"code": "10","name": "Adult","minimumAge": null,"maximumAge": null},{"code": "8","name": "Child","minimumAge": 0,"maximumAge": 18}],"success": true}
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
Code
Description
Notes
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).
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".
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.