Skip to main content

GET /v1.1/bed

Returns a paginated list of all bed types.

Request

GET /v1.1/bed

Query Parameters

ParameterTypeDefaultDescription
page[number]integer1Page number (one-indexed)
page[size]integer10Items per page (max 1000)

Example Request

curl -X GET "https://api.rccl.ro/v1.1/bed?page[number]=1&page[size]=10" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"

Response

200 OK

Returns an array of bed resources.

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"
}
},
{
"type": "bed",
"id": "13dd621f-2711-3108-a10a-88e99fe9ceaf",
"attributes": {
"code": "SK",
"description": "CANAPEA EXTENSIBILA QUEEN SIZE"
},
"links": {
"self": "/v1.1/bed/13dd621f-2711-3108-a10a-88e99fe9ceaf"
}
},
{
"type": "bed",
"id": "233724c5-adf2-3da4-b784-390134db3c66",
"attributes": {
"code": "LP",
"description": "PAT SUSPENDAT"
},
"links": {
"self": "/v1.1/bed/233724c5-adf2-3da4-b784-390134db3c66"
}
},
{
"type": "bed",
"id": "38f99abb-c1d3-39c2-b7c0-669e7bc373c0",
"attributes": {
"code": "SD",
"description": "CANAPEA DUBLA"
},
"links": {
"self": "/v1.1/bed/38f99abb-c1d3-39c2-b7c0-669e7bc373c0"
}
},
{
"type": "bed",
"id": "4754db57-69c9-3799-aef0-49f3e46ab107",
"attributes": {
"code": "2C",
"description": "2 PATURI CONVERTIBILE IN PAT QUEEN SIZE"
},
"links": {
"self": "/v1.1/bed/4754db57-69c9-3799-aef0-49f3e46ab107"
}
},
{
"type": "bed",
"id": "492bb8c6-c4f8-3a1b-8192-0e00602f2f3f",
"attributes": {
"code": "2K",
"description": "2 PATURI CONVERTIBILE IN PAT MATRIMONIAL"
},
"links": {
"self": "/v1.1/bed/492bb8c6-c4f8-3a1b-8192-0e00602f2f3f"
}
},
{
"type": "bed",
"id": "54cc8994-e9bc-35f2-956e-96d1852f9e8f",
"attributes": {
"code": "2L",
"description": "2 PATURI CONFIGURATE IN FORMA DE L"
},
"links": {
"self": "/v1.1/bed/54cc8994-e9bc-35f2-956e-96d1852f9e8f"
}
},
{
"type": "bed",
"id": "5e52b418-4b10-32f4-a1b9-9a27c8d0aa12",
"attributes": {
"code": "1Q",
"description": "PAT QUEEN SIZE"
},
"links": {
"self": "/v1.1/bed/5e52b418-4b10-32f4-a1b9-9a27c8d0aa12"
}
},
{
"type": "bed",
"id": "67c3c32b-fa2b-3791-819b-63f40f0bcccd",
"attributes": {
"code": "1T",
"description": "1 PAT TWIN"
},
"links": {
"self": "/v1.1/bed/67c3c32b-fa2b-3791-819b-63f40f0bcccd"
}
},
{
"type": "bed",
"id": "7e9293e9-0055-383d-8943-872232ff638f",
"attributes": {
"code": "KL",
"description": "2 PATURI CONFIGURATE IN FORMA DE L, CONVERTIBILE IN PAT MATRIMONIAL"
},
"links": {
"self": "/v1.1/bed/7e9293e9-0055-383d-8943-872232ff638f"
}
}
],
"links": {
"self": "/v1.1/bed",
"first": "/v1.1/bed?page[number]=1&page[size]=10",
"next": "/v1.1/bed?page[number]=2&page[size]=10"
},
"meta": {
"count": 19
},
"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 — upstream query failure