GET /v1.1/stateroom_attribute/:id
Returns a single stateroom attribute by its ID.
Request
GET /v1.1/stateroom_attribute/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The stateroom attribute ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/stateroom_attribute/08cd1a31-f17f-3247-ac89-e2fbaadaa9e8" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single stateroom attribute resource.
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"
}
},
"links": {
"self": "/v1.1/stateroom_attribute/08cd1a31-f17f-3247-ac89-e2fbaadaa9e8"
},
"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 — stateroom attribute not found or upstream query failure |