Facilities Collection

API Methods to work with Facilities

A Facility is an entity to represent facilities, amenities, inventory available for Guest coming to your Property.

Each Property and Room Type can have they own list of Facilities.

Channex provides around 181 default facilities. If you can't find a required facility on our list, please contact us.

Facilities List

Method to get a list of Facilities.

Request
Success Response
Error Response
Request

Request:

GET https://staging.channex.io/api/v1/facilities
Success Response

Success Response Example

Status Code: 200 OK

{
"data": [
{
"attributes": {
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"title": "Baby safety gates"
},
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"type": "facility"
}
],
"meta": {
"page": 1,
"total": 181,
"limit": 1
}
}
Error Response

Unauthorised Error Response

Status Code: 401 Unauthorized

{
"errors": {
"code": "unauthorized",
"title": "Unauthorized"
}
}

Pagination

By default, this method returns the first 10 elements. To get more details, you should use the Pagination arguments. Information about count of entities and current pagination position contained at meta section at response object.

Returns

Success Method can return a Success result with 200 OK HTTP Code if operation is successful. Will contain a list of Facilities objects in the answer. Unauthorised Error Method can return a Unauthorised Error result with 401 Unauthorized HTTP Code if wrong Bearer Token provided.

Facility Options

Method to get list of all facility without additional details and pagination limits.

Request
Success Response
Error Response
Request

Request:

GET https://staging.channex.io/api/v1/facilities/options
Success Response

Success Response Example

Status Code: 200 OK

{
"data": [
{
"attributes": {
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"title": "Baby safety gates"
},
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"type": "facility"
}
]
}
Error Response

Unauthorised Error Response

Status Code: 401 Unauthorized

{
"errors": {
"code": "unauthorized",
"title": "Unauthorized"
}
}