Get sales terms
curl --request GET \
--url https://{apiBaseUrl}/v2/{sessionId}/termsconst url = 'https://{apiBaseUrl}/v2/{sessionId}/terms';
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}/terms"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{apiBaseUrl}/v2/{sessionId}/terms",
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}/terms");
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}/terms")
.asString();{
"terms": {
"cancellationPolicy": "Si annulée 1 jour avant l'arrivée, 10% de la réservation sont facturés et non remboursables. Si annulé le jour d'arrivée ou en cas de non présentation, la première nuit sans les extras est facturée et non remboursable.",
"cancellationDescription": "Mes customs cancel conditions",
"taxes": {
"onSite": [
{
"name": "Taxe de séjour",
"type": "StayTax",
"definition": "2,00 € par personne par nuit"
}
],
"included": [],
"excluded": []
},
"checkInTime": {
"text": "12:00",
"value": "12:00:00"
},
"checkOutTime": {
"text": "14:00",
"value": "14:00:00"
},
"openingHours": {
"text": "Réception 24h/24",
"value": {
"openingTime": "00:00:00"
}
},
"deposit": {
"text": "La première nuit sans les extras est débitée à la réservation.",
"value": "FirstNightWithoutExtras"
},
"depositCurrency": {
"text": "Le débit de votre compte s'effectuera en EUR",
"value": "EUR"
},
"acceptedCards": [
"MasterCard",
"Visa"
],
"allowGuestModification": true,
"allowStayModification": true
}
}{
"code": "InvalidUserAuthentication",
"message": "<string>"
}Basket
Get sales terms
Get sales terms
GET
/
v2
/
{sessionId}
/
terms
Get sales terms
curl --request GET \
--url https://{apiBaseUrl}/v2/{sessionId}/termsconst url = 'https://{apiBaseUrl}/v2/{sessionId}/terms';
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}/terms"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{apiBaseUrl}/v2/{sessionId}/terms",
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}/terms");
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}/terms")
.asString();{
"terms": {
"cancellationPolicy": "Si annulée 1 jour avant l'arrivée, 10% de la réservation sont facturés et non remboursables. Si annulé le jour d'arrivée ou en cas de non présentation, la première nuit sans les extras est facturée et non remboursable.",
"cancellationDescription": "Mes customs cancel conditions",
"taxes": {
"onSite": [
{
"name": "Taxe de séjour",
"type": "StayTax",
"definition": "2,00 € par personne par nuit"
}
],
"included": [],
"excluded": []
},
"checkInTime": {
"text": "12:00",
"value": "12:00:00"
},
"checkOutTime": {
"text": "14:00",
"value": "14:00:00"
},
"openingHours": {
"text": "Réception 24h/24",
"value": {
"openingTime": "00:00:00"
}
},
"deposit": {
"text": "La première nuit sans les extras est débitée à la réservation.",
"value": "FirstNightWithoutExtras"
},
"depositCurrency": {
"text": "Le débit de votre compte s'effectuera en EUR",
"value": "EUR"
},
"acceptedCards": [
"MasterCard",
"Visa"
],
"allowGuestModification": true,
"allowStayModification": true
}
}{
"code": "InvalidUserAuthentication",
"message": "<string>"
}Was this page helpful?