GET /v1.1/stateroom_subcategory
Returns a paginated list of all stateroom subcategories, with related ship and facility data included.
Request
GET /v1.1/stateroom_subcategory
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page[number] | integer | 1 | Page number (one-indexed) |
page[size] | integer | 10 | Items per page (max 1000) |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/stateroom_subcategory?page[number]=1&page[size]=10" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns an array of stateroom subcategory resources with related objects included.
Response body:
{
"data": [
{
"type": "stateroom_subcategory",
"id": "001dccbf-46d0-3ad1-8b67-884dbf5dc10b",
"attributes": {
"code": "RS",
"color": "009884",
"title": "Apartament Royal",
"description": "Apartament elegant unde va puteti relaxa dupa o zi plina...",
"surface_area": 55,
"balcony_area": 14,
"image_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/2019/03/RF_Cabina_RS.jpg"
},
"relationships": {
"ship": {
"links": {
"related": "/v1.1/ship/3fe3de84-275c-3edc-995e-fff999764322"
},
"data": {
"type": "ship",
"id": "3fe3de84-275c-3edc-995e-fff999764322"
}
},
"facility": {
"links": {
"related": "/v1.1/facility/3147da8a-b4a0-337c-95ef-51a5cc7f2dc4"
},
"data": {
"type": "facility",
"id": "3147da8a-b4a0-337c-95ef-51a5cc7f2dc4"
}
}
},
"links": {
"self": "/v1.1/stateroom_subcategory/001dccbf-46d0-3ad1-8b67-884dbf5dc10b"
}
}
],
"links": {
"self": "/v1.1/stateroom_subcategory",
"first": "/v1.1/stateroom_subcategory?page[number]=1&page[size]=10",
"next": "/v1.1/stateroom_subcategory?page[number]=2&page[size]=10"
},
"meta": {
"count": 3873
},
"included": [
{
"type": "ship",
"id": "3fe3de84-275c-3edc-995e-fff999764322",
"attributes": {
"code": "RF",
"title": "Celebrity Reflection",
"description": "..."
},
"links": {
"self": "/v1.1/ship/3fe3de84-275c-3edc-995e-fff999764322"
}
},
{
"type": "facility",
"id": "3147da8a-b4a0-337c-95ef-51a5cc7f2dc4",
"attributes": {
"title": "CELEBRITY CRUISES - APARTAMENTE",
"description": "..."
},
"links": {
"self": "/v1.1/facility/3147da8a-b4a0-337c-95ef-51a5cc7f2dc4"
}
}
],
"jsonapi": {
"version": "1.0"
}
}
Stateroom Subcategory Attributes
| Field | Type | Description |
|---|---|---|
code | string | Subcategory code |
color | string | Display color (hex without #) |
title | string | Subcategory name |
description | string | Subcategory description |
surface_area | number | Cabin surface area in m² |
balcony_area | number | Balcony area in m² |
image_url | string | Subcategory image URL |
Relationships
| Relationship | Type | Description |
|---|---|---|
ship | ship | The ship this subcategory is available on |
facility | facility | The facility group this subcategory belongs to |
Included Resources
The response includes related ship and facility objects.
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — upstream query failure |