Mews Routingrules Add 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": "routingRules_add",
"method": "POST",
"path": "/api/connector/v1/routingRules/add",
"summary": "Add routing rules",
"requestExamples": [
{
"contentType": "application/json",
"example": {
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"RoutingRules": [
{
"CompanyId": "c6f5c82d-621a-4c8a-903b-1b0a9a23b71f",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"CompanyRelation": "PartnerCompany",
"Applicability": "PrepaidOnly",
"RouteType": "AllStayItems"
},
{
"CompanyId": "c021013e-4930-4592-8e32-91b0b1fc9663",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"CompanyRelation": "TravelAgency",
"Applicability": "Always",
"RouteType": "SelectedStayItems",
"AssignmentTargetType": "CompanyAsDetails",
"SelectedStayItems": {
"Nights": true,
"CityTax": true,
"ProductCategoryIds": [
"004fa262-7b08-4853-b544-af2a00d5cf1f",
"8f0dc6ef-1fd4-44e4-b353-af2c00b24caf",
"d4c1b435-0ed1-4d98-9833-af2c00b28518"
]
}
}
]
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"RoutingRules": [
{
"Id": "ff785b22-5422-4d1d-87f4-af2e00b3dfda",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"CompanyId": "c6f5c82d-621a-4c8a-903b-1b0a9a23b71f",
"CompanyRelation": "PartnerCompany",
"Applicability": "PrepaidOnly",
"RouteType": "AllStayItems",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"SelectedStayItems": null,
"CreatedUtc": "2023-10-01T11:48:57Z",
"UpdatedUtc": "2023-10-28T11:48:57Z"
},
{
"Id": "d98c9611-0006-4691-a835-af2e00b170c4",
"EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"CompanyId": "c021013e-4930-4592-8e32-91b0b1fc9663",
"CompanyRelation": "TravelAgency",
"Applicability": "Always",
"RouteType": "SelectedStayItems",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"SelectedStayItems": {
"Nights": true,
"CityTax": true,
"ProductCategoryIds": [
"004fa262-7b08-4853-b544-af2a00d5cf1f",
"8f0dc6ef-1fd4-44e4-b353-af2c00b24caf",
"d4c1b435-0ed1-4d98-9833-af2c00b28518"
]
},
"CreatedUtc": "2023-10-01T11:48:57Z",
"UpdatedUtc": "2023-10-28T11:48:57Z"
}
]
}
}
]
}