Mews
App · 25 actions
Book, change, confirm, check in, check out and cancel reservations in Mews, manage guest profiles, companies, room status and staff tasks, check availability, read bills and payments, and follow new and changed reservations, arrivals, departures, guests, tasks, payments and room status.
Actions
| Action | What it does |
|---|---|
| Cancel reservation | Cancel a reservation, with or without the rate's cancellation fee. |
| Check in reservation | Check a guest in. |
| Check out reservation | Check a guest out on the last day of their stay. |
| Confirm reservation | Confirm an optional reservation. |
| Create company | Add a company or travel agency. |
| Create customer | Add a customer (guest profile). |
| Create reservation | Book a stay for a customer: a room type and rate for the nights between two dates. |
| Create task | Give the property's staff a task, such as preparing a room, optionally for a department or a reservation. |
| Delete company | Delete a company. |
| Get availability | Get each room type's availability and occupancy for each night between two dates. |
| Get property details | Get the property's details: its name, time zone, language, currencies and contact details. |
| Get reservation | Get a reservation's details: its dates, status, guests, room type, room and rate. |
| List bills | List bills by customer, status, type or date. |
| List companies | List the active companies and travel agencies, by name, ID or when they were added or changed. |
| List customers | Find customers (guest profiles) by email, name, loyalty code, ID or when they were added or changed. |
| List payments | List payments by reservation, customer, bill, status, type or date. |
| List rates | List a service's active rates (pricing plans). |
| List reservations | List reservations by arrival, departure, stay, check-in, check-out, creation or update date, status, confirmation number or customer. |
| List room types | List a service's room types (resource categories), with their names and capacity. |
| List rooms | List the property's rooms and other resources, with each one's housekeeping status. |
| List services | List the property's services, such as accommodation, parking or breakfast. |
| List tasks | List tasks for the property's staff, by when they were created, are due or were closed, or by reservation. |
| Update customer | Change a customer's details. |
| Update reservation | Change a reservation's dates, room type, room, rate, purpose, company or channel number. |
| Update room status | Set a room's housekeeping status: dirty, clean, inspected or out of service. |
Cancel reservation
Cancel a reservation, with or without the rate's cancellation fee.
Inputs
- Reservation ID
reservation_idtextRequired - The reservation's ID, which List reservations and Create reservation return.
- Reason
notestextRequired - Why it's canceled. Mews keeps it with the reservation.
- Charge cancellation fee
charge_cancellation_feetrue/false - Charge the cancellation fee the rate sets. Leave empty for no fee.
- Send cancellation email
send_emailtrue/false - Whether Mews emails the guest that it's canceled. Leave empty to send it.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"ReservationIds": [
"example"
]
}
}Check in reservation
Check a guest in. The reservation must be confirmed, due today and have an inspected room assigned.
Inputs
- Reservation ID
reservation_idtextRequired - The reservation's ID, which List reservations and Create reservation return.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {}
}Check out reservation
Check a guest out on the last day of their stay.
Inputs
- Reservation ID
reservation_idtextRequired - The reservation's ID, which List reservations and Create reservation return.
- Close bills
close_billstrue/false - Close the guest's bills that can be closed.
- Allow an open balance
allow_open_balancetrue/false - Check out even if the guest still owes money. Give the reason in Notes.
- Notes
notestext - Why the guest leaves with a balance open.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {}
}Confirm reservation
Confirm an optional reservation.
Inputs
- Reservation ID
reservation_idtextRequired - The reservation's ID, which List reservations and Create reservation return.
- Send confirmation email
send_confirmation_emailtrue/false - Whether Mews emails the guest a confirmation. Leave empty to send it.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"ReservationIds": [
"example"
]
}
}Create company
Add a company or travel agency.
Inputs
- Name
nametextRequired - The company's name.
- Invoicing email
invoicing_emailtext - The email address invoices go to.
- Website
website_urltext - The company's website.
- Phone
telephonetext - The phone number.
- Contact person
contact_persontext - The person to contact.
- Other contact details
contacttext - Other contact details.
- Tax ID
tax_identifiertext - The tax identification number, such as a VAT number.
- Company number
identifiertext - The fiscal or legal identifier, such as a company number.
- IATA code
iatatext - The IATA code, for a travel agency.
- Department
departmenttext - The department, such as sales.
- External ID
external_identifiertext - Your own ID for the company, from another system.
- Notes
notestext - Notes about the company.
- Can be invoiced
invoiceabletrue/false - Whether the company can be invoiced. Leave empty for no.
- Address
address_line1text - The street address.
- Address line 2
address_line2text - The second line of the address.
- City
citytext - The city.
- Postal code
postal_codetext - The ZIP or postal code.
- Country
country_codetext - The country.One of:
AF(Afghanistan),AL(Albania),DZ(Algeria),AS(American Samoa),AD(Andorra),AO(Angola),AI(Anguilla),AQ(Antarctica),AG(Antigua & Barbuda),AR(Argentina), and 240 more.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"AddressId": "example",
"ChainId": "example",
"Contact": "example",
"ContactPerson": "example",
"CreatedUtc": "example",
"Department": "example",
"ExternalIdentifier": "example",
"Iata": "example",
"Id": "example",
"Identifier": "example",
"InvoicingEmail": "example",
"IsActive": true,
"Name": "example",
"Notes": "example",
"Number": 1,
"Options": {
"Invoiceable": true
},
"TaxIdentifier": "example",
"Telephone": "example",
"UpdatedUtc": "example",
"WebsiteUrl": "example"
}
}Create customer
Add a customer (guest profile).
Inputs
- Last name
last_nametextRequired - The last name.
- First name
first_nametext - The first name.
- Email
emailtext - The email address.
- Phone
phonetext - The phone number, such as +442071234567.
- Title
titletext - The title.One of:
Mister(Mr.),Miss(Ms.),Misses(Mrs.). - Sex
sextext - The sex, as the property records it.One of:
Male,Female. - Birth date
birth_datedate - The date of birth.
- Nationality
nationalitytext - The nationality.One of:
AF(Afghanistan),AL(Albania),DZ(Algeria),AS(American Samoa),AD(Andorra),AO(Angola),AI(Anguilla),AQ(Antarctica),AG(Antigua & Barbuda),AR(Argentina), and 240 more. - Preferred language
languagetext - The preferred language and culture code, such as en-GB or fr-FR.
- Loyalty code
loyalty_codetext - The loyalty program code.
- Notes
notestext - Internal notes about the customer.
- Company
company_idtext - The company the customer belongs to.
- Classifications
classificationslist - How the property classifies the customer, such as VIP or returning guest.One or more of:
Important,VeryImportant(Very important (VIP)),Returning(Returning guest),LoyaltyProgram(Loyalty program member),Staff,FriendOrFamily(Friend or family),TopManagement(Top management),Media,Airline,Military, and 9 more. - Consents and options
optionslist - What the customer agreed to, such as marketing emails.One or more of:
SendMarketingEmails(Marketing emails),SendMarketingPostalMail(Marketing post),SendPartnerMarketingEmails(Partner marketing emails),SendPartnerMarketingPostalMail(Partner marketing post),Invoiceable(Can be invoiced),BillAddressObjection(Objects to an address on bills),WithdrawCardConsent(Card consent withdrawn),GuestPhotoConsent(Consents to guest photo),IdPhotosConsent(Consents to ID photos). - Address
address_line1text - The street address.
- Address line 2
address_line2text - The second line of the address.
- City
citytext - The city.
- Postal code
postal_codetext - The ZIP or postal code.
- Country
country_codetext - The country.One of:
AF(Afghanistan),AL(Albania),DZ(Algeria),AS(American Samoa),AD(Andorra),AO(Angola),AI(Anguilla),AQ(Antarctica),AG(Antigua & Barbuda),AR(Argentina), and 240 more. - Update an existing customer with this email
overwrite_existingtrue/false - If a customer with this email already exists, update their profile instead of failing. Leave empty for no.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"AddressId": "example",
"BirthDate": "example",
"ChainId": "example",
"Classifications": [
"example"
],
"CompanyId": "example",
"CreatedUtc": "example",
"Email": "example",
"FirstName": "example",
"Id": "example",
"IsActive": true,
"LastName": "example",
"LoyaltyCode": "example",
"NationalityCode": "example",
"Notes": "example",
"Number": "example",
"Options": [
"example"
],
"Phone": "example",
"PreferredLanguageCode": "example",
"SecondLastName": "example",
"Title": "example",
"UpdatedUtc": "example"
}
}Create reservation
Book a stay for a customer: a room type and rate for the nights between two dates.
Inputs
- Service
service_idtextRequired - The service, such as accommodation.
- Customer ID
customer_idtextRequired - The ID of the customer who owns the reservation, which List customers and Create customer return.
- Arrival
arrivaldateRequired - The arrival date. Mews uses the service's check-in time at the property.
- Departure
departuredateRequired - The departure date. Mews uses the service's check-out time at the property.
- Room type
room_category_idtextRequired - The room type (resource category).
- Rate
rate_idtextRequired - The rate to price it with.
- Adults
adultsnumberRequired - How many adults.From 1 to 50.
- Children
childrennumber - How many children. Leave empty for none.From 0 to 50.
- Room
room_idtext - A particular room (resource) to assign. Leave empty and Mews assigns one.
- Status
statetext - Confirmed books it, optional holds the room for the guest and inquired records an inquiry. Leave empty for confirmed.One of:
Confirmed,Optional(Optional (held for the guest)),Enquired(Inquired (not yet confirmed by either side)). - Company
company_idtext - The company the booking is made on behalf of.
- Booker ID
booker_idtext - The ID of the customer who made the booking for the guest, if someone else.
- Channel number
channel_numbertext - The booking's number in another system, such as a booking site.
- Notes
notestext - Notes for the reservation.
- Send confirmation email
send_confirmation_emailtrue/false - Whether Mews emails the guest a confirmation. Leave empty to send it.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"AssignedResourceId": "example",
"BookerId": "example",
"BusinessSegmentId": "example",
"CancelledUtc": "example",
"ChannelNumber": "example",
"CompanyId": "example",
"CreatedUtc": "example",
"EndUtc": "example",
"GroupId": "example",
"Id": "example",
"Number": "example",
"Origin": "example",
"OwnerId": "example",
"PersonCounts": [
{
"AgeCategoryId": "example",
"Count": 1
}
],
"Purpose": "example",
"RateId": "example",
"RequestedCategoryId": "example",
"ServiceId": "example",
"StartUtc": "example",
"State": "example",
"TravelAgencyId": "example",
"UpdatedUtc": "example"
}
}Create task
Give the property's staff a task, such as preparing a room, optionally for a department or a reservation.
Inputs
- Task
nametextRequired - What to do.
- Deadline
deadlinedate and timeRequired - When it's due.
- Description
descriptiontext - More detail.
- Department
department_idtext - The department it's for, such as housekeeping.
- Reservation ID
reservation_idtext - The ID of the reservation it's about.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"TaskId": "example"
}
}Delete company
Delete a company.
Inputs
- Company
company_idtextRequired - The company.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {}
}Get availability
Get each room type's availability and occupancy for each night between two dates.
Inputs
- Service
service_idtextRequired - The service, such as accommodation.
- First night
first_datedateRequired - The first night.
- Last night
last_datedateRequired - The last night, up to a year after the first.
- Measures
metricslist - What to count. Leave empty for occupied rooms, confirmed and optional reservations, and sellable and active rooms.One or more of:
Occupied(Rooms occupied),ConfirmedReservations(Confirmed reservations),OptionalReservations(Optional reservations),UsableResources(Rooms that can be sold),ActiveResources(Active rooms),OutOfOrderBlocks(Rooms out of order),HouseUse(House use),BlockAvailability(Availability in blocks),AllocatedBlockAvailability(Allocated block availability),PublicAvailabilityAdjustment(Availability adjustment),OtherServiceReservationCount(Reservations of other services).
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"ResourceCategoryAvailabilities": [
{
"Metrics": {},
"ResourceCategoryId": "example"
}
],
"TimeUnitStartsUtc": [
"example"
]
}
}Get property details
Get the property's details: its name, time zone, language, currencies and contact details.
Inputs
None.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Enterprise": {
"ChainId": "example",
"ChainName": "example",
"Currencies": [
{
"Currency": "example",
"IsDefault": true,
"IsEnabled": true
}
],
"DefaultLanguageCode": "example",
"Email": "example",
"Id": "example",
"Name": "example",
"Phone": "example",
"Pricing": "example",
"TimeZoneIdentifier": "example",
"WebsiteUrl": "example"
},
"NowUtc": "example",
"Service": {
"Id": "example",
"Name": "example"
}
}
}Get reservation
Get a reservation's details: its dates, status, guests, room type, room and rate.
Inputs
- Reservation ID
reservation_idtextRequired - The reservation's ID, which List reservations and Create reservation return.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"AccountId": "example",
"AccountType": "example",
"ActualEndUtc": "example",
"ActualStartUtc": "example",
"AssignedResourceId": "example",
"BookerId": "example",
"BusinessSegmentId": "example",
"CancellationReason": "example",
"CancelledUtc": "example",
"ChannelNumber": "example",
"CreatedUtc": "example",
"GroupId": "example",
"Id": "example",
"Number": "example",
"Origin": "example",
"PartnerCompanyId": "example",
"PersonCounts": [
{
"AgeCategoryId": "example",
"Count": 1
}
],
"Purpose": "example",
"RateId": "example",
"RequestedResourceCategoryId": "example",
"ScheduledEndUtc": "example",
"ScheduledStartUtc": "example",
"ServiceId": "example",
"State": "example",
"TravelAgencyId": "example",
"UpdatedUtc": "example"
}
}List bills
List bills by customer, status, type or date. With no filter, lists those changed in the last 90 days.
Inputs
- Date
date_filtertext - Which date of the bill the range applies to. Leave empty for updated.One of:
UpdatedUtc(Updated),CreatedUtc(Created),IssuedUtc(Issued),PaidUtc(Paid),DueUtc(Due). - From
date_fromdate and time - The start of the range.
- To
date_todate and time - The end of the range. It can cover up to 90 days.
- Customer IDs
customer_idslist - Only bills of these customers (their IDs).
- Bill IDs
bill_idslist - Only these bills (their IDs).
- Status
statetext - Only open or only closed bills.One of:
Open,Closed. - Type
typetext - Only receipts or only invoices.One of:
Receipt,Invoice. - How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Bills": [
{
"AccountId": "example",
"AccountType": "example",
"CompanyId": "example",
"CorrectionState": "example",
"CreatedUtc": "example",
"CustomerId": "example",
"DueUtc": "example",
"EnterpriseId": "example",
"Id": "example",
"IssuedUtc": "example",
"Name": "example",
"Notes": "example",
"Number": "example",
"PaidUtc": "example",
"State": "example",
"Type": "example",
"UpdatedUtc": "example"
}
],
"Cursor": "example"
}
}List companies
List the active companies and travel agencies, by name, ID or when they were added or changed.
Inputs
- Names
nameslist - Only companies with these exact names.
- Company IDs
company_idslist - Only these companies (their IDs).
- Added from
created_fromdate and time - Only companies added on or after this time.
- Added to
created_todate and time - Only companies added before this time. The range can cover up to 90 days.
- Changed from
updated_fromdate and time - Only companies changed on or after this time.
- Changed to
updated_todate and time - Only companies changed before this time. The range can cover up to 90 days.
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Companies": [
{
"AddressId": "example",
"ChainId": "example",
"Contact": "example",
"ContactPerson": "example",
"CreatedUtc": "example",
"Department": "example",
"ExternalIdentifier": "example",
"Iata": "example",
"Id": "example",
"Identifier": "example",
"InvoicingEmail": "example",
"IsActive": true,
"Name": "example",
"Notes": "example",
"Number": 1,
"Options": {
"Invoiceable": true
},
"TaxIdentifier": "example",
"Telephone": "example",
"UpdatedUtc": "example",
"WebsiteUrl": "example"
}
],
"Cursor": "example"
}
}List customers
Find customers (guest profiles) by email, name, loyalty code, ID or when they were added or changed. With no filter, lists those changed in the last 90 days.
Inputs
- Emails
emailslist - Only customers with these email addresses.
- Last names
last_nameslist - Only customers with these last names.
- First names
first_nameslist - Only customers with these first names.
- Loyalty codes
loyalty_codeslist - Only customers with these loyalty codes.
- Customer IDs
customer_idslist - Only these customers (their IDs).
- Added from
created_fromdate and time - Only customers added on or after this time.
- Added to
created_todate and time - Only customers added before this time. The range can cover up to 90 days.
- Changed from
updated_fromdate and time - Only customers changed on or after this time.
- Changed to
updated_todate and time - Only customers changed before this time. The range can cover up to 90 days.
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Customers": [
{
"AddressId": "example",
"BirthDate": "example",
"ChainId": "example",
"Classifications": [
"example"
],
"CompanyId": "example",
"CreatedUtc": "example",
"Email": "example",
"FirstName": "example",
"Id": "example",
"IsActive": true,
"LastName": "example",
"LoyaltyCode": "example",
"NationalityCode": "example",
"Notes": "example",
"Number": "example",
"Options": [
"example"
],
"Phone": "example",
"PreferredLanguageCode": "example",
"SecondLastName": "example",
"Title": "example",
"UpdatedUtc": "example"
}
]
}
}List payments
List payments by reservation, customer, bill, status, type or date. With no filter, lists those changed in the last 90 days.
Inputs
- Date
date_filtertext - Which date of the payment the range applies to. Leave empty for updated.One of:
UpdatedUtc(Updated),CreatedUtc(Created),ChargedUtc(Charged),ClosedUtc(Closed). - From
date_fromdate and time - The start of the range.
- To
date_todate and time - The end of the range. It can cover up to 90 days.
- Reservation IDs
reservation_idslist - Only payments for these reservations (their IDs).
- Customer IDs
customer_idslist - Only payments of these customers (their IDs).
- Bill IDs
bill_idslist - Only payments on these bills (their IDs).
- Statuses
stateslist - Only payments with these statuses.One or more of:
Charged,Pending,Verifying,Canceled,Failed. - Kind
typetext - Only payments of this kind.One of:
CreditCardPayment(Card),CashPayment(Cash),InvoicePayment(Invoice),ExternalPayment(External),AlternativePayment(Alternative (such as a wallet)),TaxDeductedPayment(Tax deducted),GhostPayment(Ghost),Payment(Other). - How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Payments": [
{
"AccountId": "example",
"AccountType": "example",
"AccountingState": "example",
"Amount": {
"Currency": "example",
"GrossValue": 1,
"NetValue": 1
},
"BillId": "example",
"ChargedUtc": "example",
"ClosedUtc": "example",
"CreatedUtc": "example",
"EnterpriseId": "example",
"Id": "example",
"Identifier": "example",
"Kind": "example",
"Notes": "example",
"OriginalAmount": {
"Currency": "example",
"GrossValue": 1,
"NetValue": 1
},
"ReservationId": "example",
"State": "example",
"Type": "example",
"UpdatedUtc": "example"
}
]
}
}List rates
List a service's active rates (pricing plans).
Inputs
- Service
service_idtextRequired - The service, such as accommodation.
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Rates": [
{
"BaseRateId": "example",
"ExternalIdentifier": "example",
"GroupId": "example",
"Id": "example",
"IsActive": true,
"IsBaseRate": true,
"IsEnabled": true,
"IsPublic": true,
"Name": "example",
"ServiceId": "example",
"ShortName": "example",
"Type": "example",
"UpdatedUtc": "example"
}
]
}
}List reservations
List reservations by arrival, departure, stay, check-in, check-out, creation or update date, status, confirmation number or customer.
Inputs
- Date
date_filtertext - Which date of the reservation the range applies to. Leave empty for arrival.One of:
ScheduledStartUtc(Arrival),ScheduledEndUtc(Departure),CollidingUtc(Staying (any night in the range)),ActualStartUtc(Checked in),ActualEndUtc(Checked out),CreatedUtc(Created),UpdatedUtc(Updated). - From
date_fromdate and time - The start of the range.
- To
date_todate and time - The end of the range. It can cover up to 90 days.
- Statuses
stateslist - Only reservations with these statuses.One or more of:
Inquired(Inquired (not yet confirmed by either side)),Confirmed,Started(Checked in),Processed(Checked out),Canceled,Optional(Optional (held for the guest)),Requested(Requested (waitlist)). - Confirmation numbers
numberslist - Only these confirmation numbers.
- Customer IDs
customer_idslist - Only reservations of these customers (their IDs).
- Services
service_idslist - Only reservations of these services. Leave empty for every bookable service.
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Reservations": [
{
"AccountId": "example",
"AccountType": "example",
"ActualEndUtc": "example",
"ActualStartUtc": "example",
"AssignedResourceId": "example",
"BookerId": "example",
"BusinessSegmentId": "example",
"CancellationReason": "example",
"CancelledUtc": "example",
"ChannelNumber": "example",
"CreatedUtc": "example",
"GroupId": "example",
"Id": "example",
"Number": "example",
"Origin": "example",
"PartnerCompanyId": "example",
"PersonCounts": [
{
"AgeCategoryId": "example",
"Count": 1
}
],
"Purpose": "example",
"RateId": "example",
"RequestedResourceCategoryId": "example",
"ScheduledEndUtc": "example",
"ScheduledStartUtc": "example",
"ServiceId": "example",
"State": "example",
"TravelAgencyId": "example",
"UpdatedUtc": "example"
}
]
}
}List room types
List a service's room types (resource categories), with their names and capacity.
Inputs
- Service
service_idtextRequired - The service, such as accommodation.
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"ResourceCategories": [
{
"Capacity": 1,
"Classification": "example",
"EnterpriseId": "example",
"ExternalIdentifier": "example",
"ExtraCapacity": 1,
"Id": "example",
"IsActive": true,
"Names": {},
"Ordering": 1,
"ServiceId": "example",
"ShortNames": {},
"Type": "example"
}
]
}
}List rooms
List the property's rooms and other resources, with each one's housekeeping status.
Inputs
- Room names
nameslist - Only rooms with these names, such as 101.
- Include inactive rooms
include_inactivetrue/false - Include rooms that are no longer in use.
- Updated from
updated_fromdate and time - Only rooms changed on or after this time.
- Updated to
updated_todate and time - Only rooms changed before this time. The range can cover up to 90 days.
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Resources": [
{
"CreatedUtc": "example",
"Data": {
"Discriminator": "example",
"Value": {}
},
"EnterpriseId": "example",
"Id": "example",
"IsActive": true,
"Name": "example",
"ParentResourceId": "example",
"State": "example",
"UpdatedUtc": "example"
}
]
}
}List services
List the property's services, such as accommodation, parking or breakfast.
Inputs
- Type
service_typetext - Only bookable services (stays and other reservations) or only additional ones (sold with a stay). Leave empty for both.One of:
Bookable(Bookable (stays and other reservations)),Additional(Additional (sold with a stay)). - How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Services": [
{
"CreatedUtc": "example",
"Data": {
"Discriminator": "example",
"Value": {}
},
"EnterpriseId": "example",
"Id": "example",
"IsActive": true,
"Name": "example",
"Ordering": 1,
"Type": "example",
"UpdatedUtc": "example"
}
]
}
}List tasks
List tasks for the property's staff, by when they were created, are due or were closed, or by reservation. With no filter, lists those created in the last 90 days.
Inputs
- Created from
created_fromdate and time - Only tasks created on or after this time.
- Created to
created_todate and time - Only tasks created before this time. The range can cover up to 90 days.
- Due from
deadline_fromdate and time - Only tasks due on or after this time.
- Due to
deadline_todate and time - Only tasks due before this time. The range can cover up to 90 days.
- Closed from
closed_fromdate and time - Only tasks closed on or after this time.
- Closed to
closed_todate and time - Only tasks closed before this time. The range can cover up to 90 days.
- Reservation IDs
reservation_idslist - Only tasks for these reservations (their IDs).
- Task IDs
task_idslist - Only these tasks (their IDs).
- How many
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Next page
cursortext - The Cursor the last page returned, to read the next page.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Cursor": "example",
"Tasks": [
{
"ClosedUtc": "example",
"CreatedUtc": "example",
"DeadlineUtc": "example",
"DepartmentId": "example",
"Description": "example",
"EnterpriseId": "example",
"Id": "example",
"Name": "example",
"ServiceOrderId": "example",
"State": "example"
}
]
}
}Update customer
Change a customer's details. Fields left empty stay as they are.
Inputs
- Customer ID
customer_idtextRequired - The customer's ID, which List customers and Create customer return.
- Last name
last_nametext - The last name.
- First name
first_nametext - The first name.
- Email
emailtext - The email address.
- Phone
phonetext - The phone number, such as +442071234567.
- Title
titletext - The title.One of:
Mister(Mr.),Miss(Ms.),Misses(Mrs.). - Sex
sextext - The sex, as the property records it.One of:
Male,Female. - Birth date
birth_datedate - The date of birth.
- Nationality
nationalitytext - The nationality.One of:
AF(Afghanistan),AL(Albania),DZ(Algeria),AS(American Samoa),AD(Andorra),AO(Angola),AI(Anguilla),AQ(Antarctica),AG(Antigua & Barbuda),AR(Argentina), and 240 more. - Preferred language
languagetext - The preferred language and culture code, such as en-GB or fr-FR.
- Loyalty code
loyalty_codetext - The loyalty program code.
- Notes
notestext - Internal notes about the customer.
- Company
company_idtext - The company the customer belongs to.
- Classifications
classificationslist - How the property classifies the customer, such as VIP or returning guest.One or more of:
Important,VeryImportant(Very important (VIP)),Returning(Returning guest),LoyaltyProgram(Loyalty program member),Staff,FriendOrFamily(Friend or family),TopManagement(Top management),Media,Airline,Military, and 9 more. - Consents and options
optionslist - What the customer agreed to, such as marketing emails.One or more of:
SendMarketingEmails(Marketing emails),SendMarketingPostalMail(Marketing post),SendPartnerMarketingEmails(Partner marketing emails),SendPartnerMarketingPostalMail(Partner marketing post),Invoiceable(Can be invoiced),BillAddressObjection(Objects to an address on bills),WithdrawCardConsent(Card consent withdrawn),GuestPhotoConsent(Consents to guest photo),IdPhotosConsent(Consents to ID photos). - Address
address_line1text - The street address.
- Address line 2
address_line2text - The second line of the address.
- City
citytext - The city.
- Postal code
postal_codetext - The ZIP or postal code.
- Country
country_codetext - The country.One of:
AF(Afghanistan),AL(Albania),DZ(Algeria),AS(American Samoa),AD(Andorra),AO(Angola),AI(Anguilla),AQ(Antarctica),AG(Antigua & Barbuda),AR(Argentina), and 240 more.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"AddressId": "example",
"BirthDate": "example",
"ChainId": "example",
"Classifications": [
"example"
],
"CompanyId": "example",
"CreatedUtc": "example",
"Email": "example",
"FirstName": "example",
"Id": "example",
"IsActive": true,
"LastName": "example",
"LoyaltyCode": "example",
"NationalityCode": "example",
"Notes": "example",
"Number": "example",
"Options": [
"example"
],
"Phone": "example",
"PreferredLanguageCode": "example",
"SecondLastName": "example",
"Title": "example",
"UpdatedUtc": "example"
}
}Update reservation
Change a reservation's dates, room type, room, rate, purpose, company or channel number. Fields left empty stay as they are.
Inputs
- Reservation ID
reservation_idtextRequired - The reservation's ID, which List reservations and Create reservation return.
- Arrival
arrivaldate - The arrival date. Mews uses the service's check-in time at the property.
- Departure
departuredate - The departure date. Mews uses the service's check-out time at the property.
- Room type
room_category_idtext - The room type (resource category).
- Room
room_idtext - A particular room (resource) to assign. Leave empty and Mews assigns one.
- Rate
rate_idtext - The rate to price it with.
- Purpose
purposetext - Why the guest is staying.One of:
Leisure,Business,Student. - Company
company_idtext - The company the booking is made on behalf of.
- Channel number
channel_numbertext - The booking's number in another system.
- Reprice
repricetrue/false - Whether to reprice the stay at the current price for its dates, rate and room type. Leave empty to reprice.
- Reason
reasontext - Why it changed. Mews needs one when the price changes.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {
"Reservations": [
{
"AssignedResourceId": "example",
"BookerId": "example",
"BusinessSegmentId": "example",
"CancelledUtc": "example",
"ChannelNumber": "example",
"CompanyId": "example",
"CreatedUtc": "example",
"EndUtc": "example",
"GroupId": "example",
"Id": "example",
"Number": "example",
"Origin": "example",
"OwnerId": "example",
"PersonCounts": [
{
"AgeCategoryId": "example",
"Count": 1
}
],
"Purpose": "example",
"RateId": "example",
"RequestedCategoryId": "example",
"ServiceId": "example",
"StartUtc": "example",
"State": "example",
"TravelAgencyId": "example",
"UpdatedUtc": "example"
}
]
}
}Update room status
Set a room's housekeeping status: dirty, clean, inspected or out of service.
Inputs
- Room
room_idtextRequired - The room.
- Status
statetextRequired - The new status.One of:
Dirty,Clean,Inspected,OutOfService(Out of service). - Reason
reasontext - Why, such as a broken shower.
Outputs
dataobject- The response from Mews.
Example output
{
"data": {}
}