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.
We have 2 list of facilities - Property Facilities and Room Type Facilities.
Each Facility associated with Facility Category.
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.
Method to get a list of Facilities.
Request
Success Response
Error Response
Request:
GET https://staging.channex.io/api/v1/property_facilities
Success Response Example
Status Code:
200 OK
{
"data": [
{
"attributes": {
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"category": "general",
"title": "Baby safety gates"
},
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"type": "facility"
}
],
"meta": {
"page": 1,
"total": 181,
"limit": 1
}
}
Unauthorised Error Response
Status Code:
401 Unauthorized
{
"errors": {
"code": "unauthorized",
"title": "Unauthorized"
}
}
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.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.Method to get list of all facility without additional details and pagination limits.
Request
Success Response
Error Response
Request:
GET https://staging.channex.io/api/v1/property_facilities/options
Success Response Example
Status Code:
200 OK
{
"data": [
{
"attributes": {
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"category": "general",
"title": "Baby safety gates"
},
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"type": "facility"
}
]
}
Unauthorised Error Response
Status Code:
401 Unauthorized
{
"errors": {
"code": "unauthorized",
"title": "Unauthorized"
}
}
Method to get a list of Room Type Facilities.
Request
Success Response
Error Response
Request:
GET https://staging.channex.io/api/v1/room_facilities
Success Response Example
Status Code:
200 OK
{
"data": [
{
"attributes": {
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"category": "general",
"title": "Baby safety gates"
},
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"type": "facility"
}
],
"meta": {
"page": 1,
"total": 181,
"limit": 1
}
}
Unauthorised Error Response
Status Code:
401 Unauthorized
{
"errors": {
"code": "unauthorized",
"title": "Unauthorized"
}
}
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.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.Method to get list of all facility without additional details and pagination limits.
Request
Success Response
Request:
GET https://staging.channex.io/api/v1/room_facilities/options
Success Response Example
Status Code:
200 OK
{
"data": [
{
"attributes": {
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"category": "general",
"title": "Baby safety gates"
},
"id": "4d7cc1cd-d79f-407b-9be4-eb0af95e1bd5",
"type": "facility"
}
]
}
Last modified 2yr ago