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.

Contact details#

GET/external/hotel/{hotelID}/contact/info

Authentication: Authorization: Bearer

Path parameters

hotelIDintegerrequired
Hotel ID.

Response

200 Success.

Error responses

  • 404 Hotel not found.
Request
curl "https://test.hms.gen.tr/external/hotel/1000/contact/info" \
  -H "Authorization: Bearer $HMS_TOKEN"
Response · 200
{
    "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"
}

Social media links#

GET/external/online/social/media

Authentication: Authorization: Bearer

Query parameters

hotelIDintegerrequired
Hotel ID.
limitintegerdefault: 20
Records per page.
pageintegerdefault: 1
Page number.
orderstring
id or -id.

Response

200 Success.

Request
curl "https://test.hms.gen.tr/external/online/social/media?hotelID=1000" \
  -H "Authorization: Bearer $HMS_TOKEN"
Response · 200
{
    "success": true,
    "count": 2,
    "items": [
        {
            "url": "https://www.instagram.com/demootel",
            "SosyalMedyaKategori": {
                "icon": "fa-instagram",
                "iconsvg": null
            }
        },
        {
            "url": "https://www.facebook.com/demootel",
            "SosyalMedyaKategori": {
                "icon": "fa-facebook",
                "iconsvg": null
            }
        }
    ]
}

E-mail server settings#

GET/external/online/mail/host

Authentication: Authorization: Bearer

Returns the SMTP settings the hotel configured for online booking confirmation e-mails. Contains a password; use server-side only.

Query parameters

hotelIDintegerrequired
Hotel ID.

Response

200 Success.

Error responses

  • 200 mail_host_is_not_found — no SMTP configured; hotel_id_is_not_found.
Request
curl "https://test.hms.gen.tr/external/online/mail/host?hotelID=1000" \
  -H "Authorization: Bearer $HMS_TOKEN"
Response · 200
{
    "success": true,
    "data": {
        "transport": "smtp",
        "encryption": "tls",
        "port": 587,
        "host": "smtp.demootel.com",
        "user": "[email protected]",
        "password": "********"
    }
}
Last updated: 8 September 2026Found a mistake? Let us know