Skip to main content

GET /v1.1/bed/:id

Returns a single bed type by its ID.

Request

GET /v1.1/bed/:id

URL Parameters

ParameterTypeRequiredDescription
idstringYesThe bed type ID

Example Request

curl -X GET "https://api.rccl.ro/v1.1/bed/0a5a4d73-8606-3c6c-aac1-9c303768c7e1" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"

Response

200 OK

Returns a single bed resource.

Response body:

{
"data": {
"type": "bed",
"id": "0a5a4d73-8606-3c6c-aac1-9c303768c7e1",
"attributes": {
"code": "DB",
"description": "PAT DUBLU"
},
"links": {
"self": "/v1.1/bed/0a5a4d73-8606-3c6c-aac1-9c303768c7e1"
}
},
"links": {
"self": "/v1.1/bed/0a5a4d73-8606-3c6c-aac1-9c303768c7e1"
},
"jsonapi": {
"version": "1.0"
}
}

Bed Attributes

FieldTypeDescription
codestringUnique bed type code
descriptionstringBed type description

Error Responses

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