{ "opencollection": "1.0.0", "info": { "name": "Mews Booking Engine API (Distributor) Account notes Customers API", "version": "v1" }, "request": { "auth": { "type": "apikey", "key": "ClientToken", "value": "{{ClientToken}}", "placement": "header" } }, "items": [ { "info": { "name": "Customers", "type": "folder" }, "items": [ { "info": { "name": "Mews Get All Customers", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/getAll", "body": { "type": "json", "data": "{}" } }, "docs": "Returns all customers filtered by identifiers, emails, names and other filters.\nNote this operation uses [Pagination](https://mews-systems.gitbook.io/connector-api/guidelines/pagination/) and supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property)." }, { "info": { "name": "Mews Search Customers", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/search", "body": { "type": "json", "data": "{}" } }, "docs": "Searches for customers that are active at the moment in the enterprise (e.g. companions of checked-in reservations or paymasters)." }, { "info": { "name": "Mews Get Customers Open Items", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/getOpenItems", "body": { "type": "json", "data": "{}" } }, "docs": "Use [Get all payments](https://mews-systems.gitbook.io/connector-api/operations/payments#get-all-payments) and [Get all order items](https://mews-systems.gitbook.io/connector-api/operations/orderitems#get-all-order-items) instead." }, { "info": { "name": "Mews Add Customer", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/add", "body": { "type": "json", "data": "{}" } }, "docs": "Adds a new customer to the system and returns details of the added customer. If a customer with the specified email already exists, and `OverwriteExisting` is set to `true`, then the existing customer profile information is overwritten and the existing customer data returned. If `OverwriteExisting` is set to `false`, an error response is returned. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property)." }, { "info": { "name": "Mews Update Customer", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/update", "body": { "type": "json", "data": "{}" } }, "docs": "Updates personal information of a customer. Note that if any of the fields is left blank, it won't clear the field in Mews. The field will be left intact. In case of email update, the email will change in Mews only if there is no other customer profile in the hotel with such email. Otherwise an error response is returned. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property)." }, { "info": { "name": "Mews Merge Customers", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/merge", "body": { "type": "json", "data": "{}" } }, "docs": "Use [Merge accounts](https://mews-systems.gitbook.io/connector-api/operations/accounts#merge-accounts) instead." }, { "info": { "name": "Mews Add Customer File", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/addFile", "body": { "type": "json", "data": "{}" } }, "docs": "Attaches the specified file to the customer profile. \r\n\r\nAllowed MIME types: `application/pdf`, `image/bmp`, `image/gif`, `image/jpeg`, `image/png`, `image/tiff`.\r\n\r\nNote this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/guidelines/multi-property)." }, { "info": { "name": "Mews Get Customers Relationships", "type": "http" }, "http": { "method": "POST", "url": "https://api.mews.com/api/connector/v1/customers/getRelationships", "body": { "type": "json", "data": "{}" } }, "docs": "Returns relationships between customers (e.g. Spouse, Friend) for the provided unique identifiers of customers." } ] } ], "bundled": true }