Skip to main content

GET /v1.1/stateroom_attribute/:id

Returns a single stateroom attribute by its ID.

Request

GET /v1.1/stateroom_attribute/:id

URL Parameters

ParameterTypeRequiredDescription
idstringYesThe 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

FieldTypeDescription
codestringStateroom attribute code
descriptionstringStateroom attribute description

Error Responses

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