Hotelinformatie

Gegevens voor het paginaframe van de boekingsmodule: contactgegevens en locatie, links naar sociale media, footerteksten (juridische teksten, over het hotel, analytics- en advertentiecodes) en SMTP-instellingen voor bevestigingsmails.

Contactgegevens#

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

Authenticatie: Authorization: Bearer

Padparameters

hotelIDintegerverplicht
Hotel-ID.

Antwoord

200 Geslaagd.

Foutantwoorden

  • 404 Hotel niet gevonden.
Verzoek
curl "https://test.hms.gen.tr/external/hotel/1000/contact/info" \
  -H "Authorization: Bearer $HMS_TOKEN"
Antwoord · 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"
}

Links naar sociale media#

GET/external/online/social/media

Authenticatie: Authorization: Bearer

Queryparameters

hotelIDintegerverplicht
Hotel-ID.
limitintegerstandaard: 20
Aantal records per pagina.
pageintegerstandaard: 1
Paginanummer.
orderstring
id of -id.

Antwoord

200 Geslaagd.

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

Instellingen e-mailserver#

GET/external/online/mail/host

Authenticatie: Authorization: Bearer

Geeft de SMTP-instellingen terug die het hotel heeft ingesteld voor bevestigingsmails van online boekingen. Bevat een wachtwoord; gebruik dit alleen aan de serverkant.

Queryparameters

hotelIDintegerverplicht
Hotel-ID.

Antwoord

200 Geslaagd.

Foutantwoorden

  • 200 mail_host_is_not_found — geen SMTP ingesteld; hotel_id_is_not_found.
Verzoek
curl "https://test.hms.gen.tr/external/online/mail/host?hotelID=1000" \
  -H "Authorization: Bearer $HMS_TOKEN"
Antwoord · 200
{
    "success": true,
    "data": {
        "transport": "smtp",
        "encryption": "tls",
        "port": 587,
        "host": "smtp.demootel.com",
        "user": "[email protected]",
        "password": "********"
    }
}
Laatst bijgewerkt: 21 september 2026Fout gevonden? Laat het ons weten