GET /v1.1/stateroom_attribute
Returns a paginated list of all stateroom attributes.
Request
GET /v1.1/stateroom_attribute
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_attribute?page[number]=1&page[size]=10" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns an array of stateroom attribute resources.
Response body:
{
"data": [
{
"type": "stateroom_attribute",
"id": "08cd1a31-f17f-3247-ac89-e2fbaadaa9e8",
"attributes": {
"code": "ROLL",
"description": "PAT PLIABIL"
},
"links": {
"self": "/v1.1/stateroom_attribute/08cd1a31-f17f-3247-ac89-e2fbaadaa9e8"
}
},
{
"type": "stateroom_attribute",
"id": "123b2896-1dd0-397d-91bc-b55d7a3b7c1c",
"attributes": {
"code": "KING",
"description": "PAT MATRIMONIAL"
},
"links": {
"self": "/v1.1/stateroom_attribute/123b2896-1dd0-397d-91bc-b55d7a3b7c1c"
}
},
{
"type": "stateroom_attribute",
"id": "290fc9ad-147e-3a7b-bb7b-1d8a4d421a88",
"attributes": {
"code": "3LWR",
"description": "3 PATURI"
},
"links": {
"self": "/v1.1/stateroom_attribute/290fc9ad-147e-3a7b-bb7b-1d8a4d421a88"
}
}
],
"links": {
"self": "/v1.1/stateroom_attribute",
"first": "/v1.1/stateroom_attribute?page[number]=1&page[size]=10",
"next": "/v1.1/stateroom_attribute?page[number]=2&page[size]=10"
},
"meta": {
"count": 11
},
"jsonapi": {
"version": "1.0"
}
}
Stateroom Attribute Fields
| Field | Type | Description |
|---|---|---|
code | string | Stateroom attribute code |
description | string | Stateroom attribute description |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — upstream query failure |