Mews · Example Payload
Mews Availabilityblocks Getall Example
HospitalityHotelsPMSProperty Management
Mews Availabilityblocks 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
{
"operationId": "availabilityBlocks_getAll",
"method": "POST",
"path": "/api/connector/v1/availabilityBlocks/getAll",
"summary": "Get all availability blocks",
"requestExamples": [
{
"contentType": "application/json",
"example": {
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"Extent": {
"AvailabilityBlocks": true,
"Adjustments": true,
"ServiceOrders": false,
"Rates": false
},
"ServiceIds": [
"bd26d8db-86da-4f96-9efc-e5a4654a4a94"
],
"AvailabilityBlockIds": [
"5ee074b1-6c86-48e8-915f-c7aa4702086f"
],
"CreatedUtc": {
"StartUtc": "2020-11-04T00:00:00Z",
"EndUtc": "2020-11-05T00:00:00Z"
},
"UpdatedUtc": {
"StartUtc": "2020-11-04T00:00:00Z",
"EndUtc": "2020-11-05T00:00:00Z"
},
"CollidingUtc": {
"StartUtc": "2020-11-04T00:00:00Z",
"EndUtc": "2020-11-05T00:00:00Z"
},
"ReleasedUtc": {
"StartUtc": "2020-11-04T00:00:00Z",
"EndUtc": "2020-11-05T00:00:00Z"
},
"ExternalIdentifiers": [
"Block-0001"
],
"States": [
"Confirmed"
],
"ActivityStates": [
"Active"
],
"Limitation": {
"Count": 100
}
}
}
],
"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": "Leisure",
"CreatedUtc": "2020-11-04T13:00:00Z",
"UpdatedUtc": "2020-11-04T13:00:00Z",
"FirstTimeUnitStartUtc": "2020-11-04T13:00:00Z",
"LastTimeUnitStartUtc": "2020-11-04T13:00:00Z",
"ReleasedUtc": "2020-11-04T13:00:00Z",
"RollingReleaseOffset": null,
"ExternalIdentifier": "Block-0001",
"Name": "Wedding group",
"Notes": "Have a nice stay",
"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": "Confirmed",
"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": null,
"CancellationReason": null,
"CancellationReasonDetail": null
}
],
"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"
}
}
]
}