Mews Restrictions 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": "restrictions_getAll",
"method": "POST",
"path": "/api/connector/v1/restrictions/getAll",
"summary": "Get all restrictions",
"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"
],
"ResourceCategoryIds": [
"34c29e73-c8db-4e93-b51b-981e42655e03"
],
"RateIds": [
"ed4b660b-19d0-434b-9360-a4de2ea42eda"
],
"Origin": "Integration",
"CollidingUtc": {
"StartUtc": "2020-02-15T00:00:00Z",
"EndUtc": "2020-02-20T00:00:00Z"
},
"CreatedUtc": {
"StartUtc": "2020-02-05T00:00:00Z",
"EndUtc": "2020-02-15T00:00:00Z"
},
"UpdatedUtc": {
"StartUtc": "2020-02-05T00:00:00Z",
"EndUtc": "2020-02-15T00:00:00Z"
},
"Limitation": {
"Count": 10
}
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"Restrictions": [
{
"Id": "40c24757-c16e-4094-91d3-4ca952e488a1",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"ExternalIdentifier": "5678",
"Origin": "Integration",
"Conditions": {
"Type": "Stay",
"ExactRateId": "7c7e89d6-69c0-4cce-9d42-35443f2193f3",
"BaseRateId": null,
"RateGroupId": null,
"ResourceCategoryId": "86336EAC-4168-46B1-A544-2A47251BF864",
"ResourceCategoryType": null,
"StartUtc": "2018-10-09T00:00:00Z",
"EndUtc": "2018-10-31T00:00:00Z",
"Days": [
"Saturday",
"Sunday"
]
},
"Exceptions": {
"MinAdvance": null,
"MaxAdvance": null,
"MinLength": "P0M2DT0H0M0S",
"MaxLength": "P0M7DT0H0M0S",
"MinPrice": {
"Value": 50,
"Currency": "EUR"
},
"MaxPrice": {
"Value": 150,
"Currency": "EUR"
}
}
},
{
"Id": "b40ac4a8-f5da-457d-88fe-7a895e1580ab",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"ExternalIdentifier": "5678",
"Origin": "Integration",
"Conditions": {
"Type": "Start",
"ExactRateId": null,
"BaseRateId": "e5b538b1-36e6-43a0-9f5c-103204c7f68e",
"RateGroupId": null,
"ResourceCategoryId": null,
"ResourceCategoryType": "Room",
"StartUtc": "2018-10-01T00:00:00Z",
"EndUtc": "2018-10-31T00:00:00Z",
"Days": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
]
},
"Exceptions": {
"MinAdvance": "P0M1DT0H0M0S",
"MaxAdvance": "P0M3DT0H0M0S",
"MinLength": null,
"MaxLength": null,
"MinPrice": null,
"MaxPrice": null
}
}
],
"Cursor": "b40ac4a8-f5da-457d-88fe-7a895e1580ab"
}
}
]
}