Informații despre hotel

Datele care alimentează elementele fixe ale paginilor motorului de rezervări: date de contact și localizare, linkuri către rețelele sociale, texte de subsol (texte legale, despre hotel, fragmente de cod Analytics/Ads) și setările SMTP pentru e-mailurile de confirmare.

Date de contact#

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

Autentificare: Authorization: Bearer

Parametri de cale

hotelIDintegerobligatoriu
ID-ul hotelului.

Răspuns

200 Succes.

Răspunsuri de eroare

  • 404 Hotelul nu a fost găsit.
Cerere
curl "https://test.hms.gen.tr/external/hotel/1000/contact/info" \
  -H "Authorization: Bearer $HMS_TOKEN"
Răspuns · 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"
}

Linkuri către rețelele sociale#

GET/external/online/social/media

Autentificare: Authorization: Bearer

Parametri de interogare

hotelIDintegerobligatoriu
ID-ul hotelului.
limitintegerimplicit: 20
Înregistrări pe pagină.
pageintegerimplicit: 1
Numărul paginii.
orderstring
id sau -id.

Răspuns

200 Succes.

Cerere
curl "https://test.hms.gen.tr/external/online/social/media?hotelID=1000" \
  -H "Authorization: Bearer $HMS_TOKEN"
Răspuns · 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
            }
        }
    ]
}

Setările serverului de e-mail#

GET/external/online/mail/host

Autentificare: Authorization: Bearer

Returnează setările SMTP configurate de hotel pentru e-mailurile de confirmare a rezervărilor online. Conține o parolă; folosiți-le exclusiv pe server.

Parametri de interogare

hotelIDintegerobligatoriu
ID-ul hotelului.

Răspuns

200 Succes.

Răspunsuri de eroare

  • 200 mail_host_is_not_found — niciun server SMTP configurat; hotel_id_is_not_found.
Cerere
curl "https://test.hms.gen.tr/external/online/mail/host?hotelID=1000" \
  -H "Authorization: Bearer $HMS_TOKEN"
Răspuns · 200
{
    "success": true,
    "data": {
        "transport": "smtp",
        "encryption": "tls",
        "port": 587,
        "host": "smtp.demootel.com",
        "user": "[email protected]",
        "password": "********"
    }
}
Ultima actualizare: 21 septembrie 2026Ați găsit o greșeală? Anunțați-ne