GET /v1.1/bed/:id
Returns a single bed type by its ID.
Request
GET /v1.1/bed/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The 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
| Field | Type | Description |
|---|---|---|
code | string | Unique bed type code |
description | string | Bed type description |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — bed not found or upstream query failure |