Gets the extra descriptions.
curl --request GET \
--url https://{apiBaseUrl}/v2/{sessionId}/description/extras/{extraId}const url = 'https://{apiBaseUrl}/v2/{sessionId}/description/extras/{extraId}';
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/extras/{extraId}"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{apiBaseUrl}/v2/{sessionId}/description/extras/{extraId}",
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/extras/{extraId}");
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/extras/{extraId}")
.asString();{
"extraId": 123,
"hotelId": "<string>",
"rateIds": [],
"roomIds": [],
"information": {
"class": "Room",
"type": {
"value": "Undefined"
},
"gratuitousnessType": {
"value": "None"
},
"stock": "Uncountable",
"summary": [],
"pictures": [],
"maximumQuantity": 0,
"isMandatory": false,
"isPreselected": false,
"payOnline": false,
"sortOrder": 0,
"countingType": {
"value": "Booking"
},
"occupancyDefinition": {}
},
"name": "<string>"
}{
"code": "InvalidSessionId",
"message": "<string>"
}{
"code": "InvalidUserAuthentication",
"message": "<string>"
}Description
Gets the extra descriptions
Gets the extra descriptions
GET
/
v2
/
{sessionId}
/
description
/
extras
/
{extraId}
Gets the extra descriptions.
curl --request GET \
--url https://{apiBaseUrl}/v2/{sessionId}/description/extras/{extraId}const url = 'https://{apiBaseUrl}/v2/{sessionId}/description/extras/{extraId}';
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/extras/{extraId}"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{apiBaseUrl}/v2/{sessionId}/description/extras/{extraId}",
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/extras/{extraId}");
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/extras/{extraId}")
.asString();{
"extraId": 123,
"hotelId": "<string>",
"rateIds": [],
"roomIds": [],
"information": {
"class": "Room",
"type": {
"value": "Undefined"
},
"gratuitousnessType": {
"value": "None"
},
"stock": "Uncountable",
"summary": [],
"pictures": [],
"maximumQuantity": 0,
"isMandatory": false,
"isPreselected": false,
"payOnline": false,
"sortOrder": 0,
"countingType": {
"value": "Booking"
},
"occupancyDefinition": {}
},
"name": "<string>"
}{
"code": "InvalidSessionId",
"message": "<string>"
}{
"code": "InvalidUserAuthentication",
"message": "<string>"
}Headers
The properties.
Type of the description.
The picture templates.
Was this page helpful?