Gets the room description.
curl --request GET \
--url https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}const url = 'https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}using RestSharp;
var options = new RestClientOptions("https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}")
.asString();{
"roomId": 12345,
"hotelId": "10133",
"name": "Nom de la chambre",
"information": {
"totalCount": 2,
"code": "ROOMTRIPLE",
"type": {
"text": "Chambre triple",
"value": "Triple"
},
"category": {
"text": "Chambre confort",
"value": "Comfort"
},
"qualifier": {
"text": "Vue sur jardin",
"value": "GardenSight"
},
"surfaceArea": {
"text": "12m2",
"value": 12
},
"bedding": {
"beds": [
{
"type": {
"text": "Lit double",
"value": "Double"
},
"size": {
"text": "Grande chambre",
"value": {
"type": "Size200By200Cm",
"width": 200,
"length": 200
}
},
"count": 2,
"twoPersonConvertible": false
}
],
"singleBedCount": 1,
"doubleBedCount": 2,
"sofaCount": 0
},
"beddingConfigurations": [],
"summary": [
{
"text": "Summary de la chambre",
"value": "PlainText"
}
],
"pictures": [
{
"templates": [
{
"name": "TEMPLATE1",
"url": "http://url/to/template1/image1"
},
{
"name": "TEMPLATE2",
"url": "http://url/to/template2/image1"
}
],
"sortOrder": 1
},
{
"templates": [
{
"name": "TEMPLATE1",
"url": "http://url/to/template1/image2"
},
{
"name": "TEMPLATE2",
"url": "http://url/to/template2/image2"
}
],
"sortOrder": 2
}
],
"displayedPersonCount": 3,
"sortOrder": 1
},
"services": [
{
"category": {
"text": "General",
"value": "General"
},
"amenities": [
{
"text": "Balcon",
"value": "Balcony"
},
{
"text": "Air conditionné",
"value": "AirConditioning"
}
]
}
],
"occupancies": [
{
"occupancyId": 0,
"isDefault": true,
"definition": {
"text": "2 personnes",
"value": {
"isDetailed": false,
"personCount": 2,
"adultCount": 0,
"childCount": 0,
"infantCount": 0
}
}
}
],
"extraIds": [
1111,
2222,
3333
],
"rateIds": [
1111,
2222,
3333
]
}{
"code": "InvalidSessionId"
}{
"code": "InvalidUserAuthentication",
"message": "<string>"
}Description
Gets the room description
Gets the room description
GET
/
v2
/
{sessionId}
/
description
/
rooms
/
{roomId}
Gets the room description.
curl --request GET \
--url https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}const url = 'https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}using RestSharp;
var options = new RestClientOptions("https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://{apiBaseUrl}/v2/{sessionId}/description/rooms/{roomId}")
.asString();{
"roomId": 12345,
"hotelId": "10133",
"name": "Nom de la chambre",
"information": {
"totalCount": 2,
"code": "ROOMTRIPLE",
"type": {
"text": "Chambre triple",
"value": "Triple"
},
"category": {
"text": "Chambre confort",
"value": "Comfort"
},
"qualifier": {
"text": "Vue sur jardin",
"value": "GardenSight"
},
"surfaceArea": {
"text": "12m2",
"value": 12
},
"bedding": {
"beds": [
{
"type": {
"text": "Lit double",
"value": "Double"
},
"size": {
"text": "Grande chambre",
"value": {
"type": "Size200By200Cm",
"width": 200,
"length": 200
}
},
"count": 2,
"twoPersonConvertible": false
}
],
"singleBedCount": 1,
"doubleBedCount": 2,
"sofaCount": 0
},
"beddingConfigurations": [],
"summary": [
{
"text": "Summary de la chambre",
"value": "PlainText"
}
],
"pictures": [
{
"templates": [
{
"name": "TEMPLATE1",
"url": "http://url/to/template1/image1"
},
{
"name": "TEMPLATE2",
"url": "http://url/to/template2/image1"
}
],
"sortOrder": 1
},
{
"templates": [
{
"name": "TEMPLATE1",
"url": "http://url/to/template1/image2"
},
{
"name": "TEMPLATE2",
"url": "http://url/to/template2/image2"
}
],
"sortOrder": 2
}
],
"displayedPersonCount": 3,
"sortOrder": 1
},
"services": [
{
"category": {
"text": "General",
"value": "General"
},
"amenities": [
{
"text": "Balcon",
"value": "Balcony"
},
{
"text": "Air conditionné",
"value": "AirConditioning"
}
]
}
],
"occupancies": [
{
"occupancyId": 0,
"isDefault": true,
"definition": {
"text": "2 personnes",
"value": {
"isDetailed": false,
"personCount": 2,
"adultCount": 0,
"childCount": 0,
"infantCount": 0
}
}
}
],
"extraIds": [
1111,
2222,
3333
],
"rateIds": [
1111,
2222,
3333
]
}{
"code": "InvalidSessionId"
}{
"code": "InvalidUserAuthentication",
"message": "<string>"
}Headers
The properties.
Type of the description.
The picture templates.
Was this page helpful?