GET /v1.1/stateroom_category/:id
Returns a single stateroom category by its ID, with related stateroom supracategory and ship data included.
Request
GET /v1.1/stateroom_category/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The stateroom category ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/stateroom_category/01866e49-4eca-36ee-b18d-68802ea0f7c1" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single stateroom category resource with related objects included.
Response body:
{
"data": {
"type": "stateroom_category",
"id": "01866e49-4eca-36ee-b18d-68802ea0f7c1",
"attributes": {
"title": "Cabine interioare",
"description": "Cabinele noastre interioare includ o gama larga de facilitati pentru intreaga familie...",
"image_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/IC-cabina-interioara-1125x900-dropbox-rci-02.jpg"
},
"relationships": {
"stateroom_supracategory": {
"links": {
"related": "/v1.1/stateroom_supracategory/dd753679-4b63-3f90-accf-d37f9b147d7f"
},
"data": {
"type": "stateroom_supracategory",
"id": "dd753679-4b63-3f90-accf-d37f9b147d7f"
}
},
"ship": {
"links": {
"related": "/v1.1/ship/cfe6055d-2e05-33be-b78b-b63449ec7ba6"
},
"data": {
"type": "ship",
"id": "cfe6055d-2e05-33be-b78b-b63449ec7ba6"
}
}
},
"links": {
"self": "/v1.1/stateroom_category/01866e49-4eca-36ee-b18d-68802ea0f7c1"
}
},
"links": {
"self": "/v1.1/stateroom_category/01866e49-4eca-36ee-b18d-68802ea0f7c1"
},
"included": [
{
"type": "stateroom_supracategory",
"id": "dd753679-4b63-3f90-accf-d37f9b147d7f",
"attributes": {
"code": "I",
"title": "Cabina interioara"
},
"links": {
"self": "/v1.1/stateroom_supracategory/dd753679-4b63-3f90-accf-d37f9b147d7f"
}
},
{
"type": "ship",
"id": "cfe6055d-2e05-33be-b78b-b63449ec7ba6",
"attributes": {
"code": "IC",
"title": "Icon of the Seas",
"description": "..."
},
"links": {
"self": "/v1.1/ship/cfe6055d-2e05-33be-b78b-b63449ec7ba6"
}
}
],
"jsonapi": {
"version": "1.0"
}
}
Stateroom Category Attributes
| Field | Type | Description |
|---|---|---|
title | string | Category name |
description | string | Category description |
image_url | string | Category image URL |
Relationships
| Relationship | Type | Description |
|---|---|---|
stateroom_supracategory | stateroom_supracategory | The cabin type this category belongs to |
ship | ship | The ship this category is available on |
Included Resources
The response includes related stateroom_supracategory and ship objects.
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — stateroom category not found or upstream query failure |