Hotel information
Data that fills the booking engine’s page chrome: contact details and location, social media links, footer texts (legal, about, analytics/ads snippets) and SMTP settings for confirmation e-mails.
GET
/external/hotel/{hotelID}/contact/infoContact detailsGET/external/online/social/mediaSocial media linksGET/external/online/footerFooter textsGET/external/online/mail/hostE-mail server settingsContact details#
GET
/external/hotel/{hotelID}/contact/infoAuthentication: Authorization: Bearer
Path parameters
hotelIDintegerrequiredHotel ID.
Response
200 Success.
Error responses
- 404 Hotel not found.
curl "https://test.hms.gen.tr/external/hotel/1000/contact/info" \
-H "Authorization: Bearer $HMS_TOKEN"const res = await fetch("https://test.hms.gen.tr/external/hotel/1000/contact/info", {
headers: {
"Authorization": `Bearer ${process.env.HMS_TOKEN}`
}
});
const data = await res.json();$ch = curl_init('https://test.hms.gen.tr/external/hotel/1000/contact/info');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('HMS_TOKEN'),
],
]);
$data = json_decode(curl_exec($ch), true);{
"title": "Demo Otel",
"phone": "+90 258 000 00 00",
"cellPhone": "+90 555 000 00 00",
"email": "[email protected]",
"www": "https://www.demootel.com",
"address": "Kumsal Cad. No: 12",
"country": "Türkiye",
"countryIng": "Turkey",
"city": "Antalya",
"district": "Muratpaşa",
"latitude": "36.8841",
"longitude": "30.7056"
}E-mail server settings#
GET
/external/online/mail/hostAuthentication: Authorization: Bearer
Returns the SMTP settings the hotel configured for online booking confirmation e-mails. Contains a password; use server-side only.
Query parameters
hotelIDintegerrequiredHotel ID.
Response
200 Success.
Error responses
- 200
mail_host_is_not_found— no SMTP configured;hotel_id_is_not_found.
curl "https://test.hms.gen.tr/external/online/mail/host?hotelID=1000" \
-H "Authorization: Bearer $HMS_TOKEN"const res = await fetch("https://test.hms.gen.tr/external/online/mail/host?hotelID=1000", {
headers: {
"Authorization": `Bearer ${process.env.HMS_TOKEN}`
}
});
const data = await res.json();$ch = curl_init('https://test.hms.gen.tr/external/online/mail/host?hotelID=1000');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('HMS_TOKEN'),
],
]);
$data = json_decode(curl_exec($ch), true);{
"success": true,
"data": {
"transport": "smtp",
"encryption": "tls",
"port": 587,
"host": "smtp.demootel.com",
"user": "[email protected]",
"password": "********"
}
}
Social media links#
/external/online/social/mediaAuthentication:
Authorization: BearerQuery parameters
hotelIDintegerrequiredlimitintegerdefault:20pageintegerdefault:1orderstringidor-id.Response
200 Success.