Mews · Example Payload

Mews Rules Getall Example

HospitalityHotelsPMSProperty Management

Mews Rules Getall Example is an example object payload from Mews, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "rules_getAll",
  "method": "POST",
  "path": "/api/connector/v1/rules/getAll",
  "summary": "Get all rules",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
        "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
        "Client": "Sample Client 1.0.0",
        "EnterpriseIds": [
          "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "4d0201db-36f5-428b-8d11-4f0a65e960cc"
        ],
        "ServiceIds": [
          "bd26d8db-86da-4f96-9efc-e5a4654a4a94"
        ],
        "UpdatedUtc": {
          "StartUtc": "2023-10-01T00:00:00Z",
          "EndUtc": "2023-10-31T00:00:00Z"
        },
        "Extent": {
          "RuleActions": true,
          "Rates": true,
          "RateGroups": true,
          "ResourceCategories": true,
          "BusinessSegments": true
        },
        "Limitation": {
          "Count": 10
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Rules": [
          {
            "Id": "13638b12-53f1-4b35-baab-ac1e006ed8cb",
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "Conditions": {
              "RateId": {
                "Value": "8a13f4e8-0274-4bcc-b2d4-ac1c00d1cd3f",
                "ConditionType": "Equals"
              },
              "RateGroupId": null,
              "BusinessSegmentId": null,
              "ResourceCategoryId": null,
              "ResourceCategoryType": null,
              "Origin": {
                "Value": "Connector",
                "ConditionType": "NotEquals"
              },
              "TravelAgencyId": null,
              "MinimumTimeUnitCount": null,
              "MaximumTimeUnitCount": null
            },
            "CreatedUtc": "2023-10-01T11:48:57Z",
            "UpdatedUtc": "2023-10-28T11:48:57Z"
          }
        ],
        "RuleActions": [
          {
            "Id": "307e75a6-2cc8-4226-a600-ac1e006fbdb9",
            "RuleId": "13638b12-53f1-4b35-baab-ac1e006ed8cb",
            "Data": {
              "Discriminator": "Product",
              "Value": {
                "ProductId": "122fd92d-c561-4995-8ebc-ac1c00d1eaa8",
                "ActionType": "Add"
              }
            }
          }
        ],
        "Rates": [
          {
            "Id": "8a13f4e8-0274-4bcc-b2d4-ac1c00d1cd3f",
            "GroupId": "e4a9d8d1-5793-4d35-954e-ac1c00d1eaa8",
            "ServiceId": "ea80bbca-372f-4550-8e48-ac1c00d1cd20",
            "BaseRateId": null,
            "IsActive": true,
            "IsEnabled": true,
            "IsPublic": true,
            "Name": "Fully Flexible",
            "ShortName": "FF",
            "ExternalNames": {}
          }
        ],
        "RateGroups": [],
        "ResourceCategories": [],
        "BusinessSegments": [],
        "Cursor": "13638b12-53f1-4b35-baab-ac1e006ed8cb"
      }
    }
  ]
}