Mews · Example Payload

Mews Availabilityblocks Update Example

HospitalityHotelsPMSProperty Management

Mews Availabilityblocks Update 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": "availabilityBlocks_update",
  "method": "POST",
  "path": "/api/connector/v1/availabilityBlocks/update",
  "summary": "Update availability blocks",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "AvailabilityBlocks": [
          {
            "AvailabilityBlockId": "5ee074b1-6c86-48e8-915f-c7aa4702086f",
            "Name": {
              "Value": "Mr. Smith's block"
            },
            "FirstTimeUnitStartUtc": {
              "Value": "2021-07-05T00:00:00Z"
            },
            "LastTimeUnitStartUtc": {
              "Value": "2021-07-15T00:00:00Z"
            },
            "ExternalIdentifier": {
              "Value": "Block-1002"
            },
            "State": {
              "Value": "Confirmed"
            },
            "ReservationPurpose": {
              "Value": "Business"
            },
            "BookerId": {
              "Value": "ebd507c5-6bfd-4ca9-96aa-ffed6fa94f72"
            },
            "Notes": {
              "Value": "Welcome to Washington"
            },
            "Budget": {
              "Value": {
                "Currency": "USD",
                "Value": 48.0
              }
            },
            "ReleasedUtc": {
              "Value": "2021-07-04T00:00:00Z"
            },
            "QuoteId": {},
            "BusinessSegmentId": {
              "Value": "dc9188f6-fb61-412c-b3fd-af32dab082ed"
            }
          },
          {
            "AvailabilityBlockId": "c32386aa-1cd2-414a-a823-489325842fbe",
            "State": {
              "Value": "Canceled"
            },
            "CancellationReason": {
              "Value": "ForceMajeure"
            },
            "CancellationReasonDetail": {
              "Value": "Event was canceled due to rain."
            }
          }
        ]
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "AvailabilityBlocks": [
          {
            "Id": "5ee074b1-6c86-48e8-915f-c7aa4702086f",
            "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "RateId": "ed4b660b-19d0-434b-9360-a4de2ea42eda",
            "VoucherId": null,
            "BookerId": "ebd507c5-6bfd-4ca9-96aa-ffed6fa94f72",
            "CompanyId": null,
            "TravelAgencyId": null,
            "Budget": {
              "Currency": "USD",
              "Value": 48.0,
              "Net": null,
              "Tax": null,
              "TaxRate": null
            },
            "State": "Confirmed",
            "ReservationPurpose": "Business",
            "CreatedUtc": "2020-11-04T13:00:00Z",
            "UpdatedUtc": "2020-11-05T16:11:38Z",
            "FirstTimeUnitStartUtc": "2021-07-05T00:00:00Z",
            "LastTimeUnitStartUtc": "2021-07-15T00:00:00Z",
            "ReleasedUtc": "2021-07-04T00:00:00Z",
            "RollingReleaseOffset": null,
            "ExternalIdentifier": "Block-1002",
            "Name": "Mr. Smith's block",
            "Notes": "Welcome to Washington",
            "PickupDistribution": "AllInOneGroup",
            "IsActive": false,
            "QuoteId": null,
            "AvailabilityBlockNumber": "478",
            "ReleaseStrategy": "FixedRelease",
            "PurchaseOrderNumber": "XX-123",
            "BusinessSegmentId": "dc9188f6-fb61-412c-b3fd-af32dab082ed",
            "CanceledUtc": null,
            "CancellationReason": null,
            "CancellationReasonDetail": null
          },
          {
            "Id": "c32386aa-1cd2-414a-a823-489325842fbe",
            "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
            "RateId": "ed4b660b-19d0-434b-9360-a4de2ea42eda",
            "VoucherId": null,
            "BookerId": "ebd507c5-6bfd-4ca9-96aa-ffed6fa94f72",
            "CompanyId": null,
            "TravelAgencyId": null,
            "Budget": {
              "Currency": "USD",
              "Value": 48.0,
              "Net": null,
              "Tax": null,
              "TaxRate": null
            },
            "State": "Canceled",
            "ReservationPurpose": "Leisure",
            "CreatedUtc": "2022-10-11T13:32:32Z",
            "UpdatedUtc": "2022-10-11T13:32:32Z",
            "FirstTimeUnitStartUtc": "2022-10-14T00:00:00Z",
            "LastTimeUnitStartUtc": "2022-11-17T00:00:00Z",
            "ReleasedUtc": null,
            "RollingReleaseOffset": "P-3DT4H",
            "ExternalIdentifier": "Block-0002",
            "Name": "Rolling release",
            "Notes": null,
            "PickupDistribution": "AllInOneGroup",
            "IsActive": false,
            "QuoteId": "67eaf3c8-81e0-4ffb-b5f2-2b61803feb9c",
            "AvailabilityBlockNumber": "479",
            "ReleaseStrategy": "RollingRelease",
            "PurchaseOrderNumber": null,
            "BusinessSegmentId": "dc9188f6-fb61-412c-b3fd-af32dab082ed",
            "CanceledUtc": "2022-10-12T15:12:49Z",
            "CancellationReason": "ForceMajeure",
            "CancellationReasonDetail": "Event was canceled due to rain."
          }
        ],
        "ServiceOrders": null,
        "Adjustments": [
          {
            "Id": "e19297af-373e-4701-b4ea-afae0129bded",
            "AvailabilityBlockId": "5ee074b1-6c86-48e8-915f-c7aa4702086f",
            "ResourceCategoryId": "773d5e42-de1e-43a0-9ce6-f940faf2303f",
            "StartUtc": null,
            "EndUtc": null,
            "FirstTimeUnitStartUtc": "2021-10-14T00:00:00Z",
            "LastTimeUnitStartUtc": "2021-10-17T00:00:00Z",
            "UnitCount": 6,
            "ActivityState": "Active",
            "ReleaseOverrideUtc": "2021-10-13T00:00:00Z",
            "UpdatedUtc": "2021-10-21T13:32:32Z",
            "IsActive": false,
            "PaxCounts": null,
            "FirstTimeUnitReleaseUtc": "2021-10-13T00:00:00Z"
          }
        ],
        "Rates": null,
        "Cursor": "c32386aa-1cd2-414a-a823-489325842fbe"
      }
    }
  ]
}