Skip to main content

GET /v1.1/facility/:id

Returns a single facility by its ID, with its related company data included.

Request

GET /v1.1/facility/:id

URL Parameters

ParameterTypeRequiredDescription
idstringYesThe facility ID

Example Request

curl -X GET "https://api.rccl.ro/v1.1/facility/1a3f91fe-ad97-397b-9a96-d6104ad339f6" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"

Response

200 OK

Returns a single facility resource with its related company included.

Response body:

{
"data": {
"type": "facility",
"id": "1a3f91fe-ad97-397b-9a96-d6104ad339f6",
"attributes": {
"title": "CELEBRITY CRUISES - CABINE CU BALCON CONCIERGE CLASS",
"description": "<h4><b>Cabinele cu balcon CONCIERGE CLASS® includ urmatoarele facilitati</b>:</h4>..."
},
"relationships": {
"company": {
"links": {
"related": "/v1.1/company/43e5ba84-528c-38bc-87a9-34ece4c4aa03"
},
"data": {
"type": "company",
"id": "43e5ba84-528c-38bc-87a9-34ece4c4aa03"
}
}
},
"links": {
"self": "/v1.1/facility/1a3f91fe-ad97-397b-9a96-d6104ad339f6"
}
},
"links": {
"self": "/v1.1/facility/1a3f91fe-ad97-397b-9a96-d6104ad339f6"
},
"included": [
{
"type": "company",
"id": "43e5ba84-528c-38bc-87a9-34ece4c4aa03",
"attributes": {
"code": "CEL",
"title": "Celebrity Cruises®",
"description": "Celebrity Cruises® este o companie premium de croaziere..."
},
"links": {
"self": "/v1.1/company/43e5ba84-528c-38bc-87a9-34ece4c4aa03"
}
}
],
"jsonapi": {
"version": "1.0"
}
}

Facility Attributes

FieldTypeDescription
titlestringFacility title
descriptionstringFacility description (HTML)

Relationships

RelationshipTypeDescription
companycompanyThe cruise line this facility belongs to

Included Resources

The response includes the related company object. See GET /v1.1/company for company attribute details.

Error Responses

StatusDescription
401Unauthorized — missing or invalid API key
500Internal Server Error — facility not found or upstream query failure