Informasi hotel

Data yang mengisi kerangka halaman booking engine: detail kontak dan lokasi, tautan media sosial, teks footer (legal, tentang hotel, snippet analytics/iklan), dan pengaturan SMTP untuk email konfirmasi.

Detail kontak#

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

Autentikasi: Authorization: Bearer

Parameter path

hotelIDintegerwajib
ID hotel.

Respons

200 Berhasil.

Respons error

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

Tautan media sosial#

GET/external/online/social/media

Autentikasi: Authorization: Bearer

Parameter kueri

hotelIDintegerwajib
ID hotel.
limitintegerdefault: 20
Jumlah record per halaman.
pageintegerdefault: 1
Nomor halaman.
orderstring
id atau -id.

Respons

200 Berhasil.

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

Pengaturan server email#

GET/external/online/mail/host

Autentikasi: Authorization: Bearer

Mengembalikan pengaturan SMTP yang dikonfigurasi hotel untuk email konfirmasi reservasi online. Berisi kata sandi; gunakan hanya di sisi server.

Parameter kueri

hotelIDintegerwajib
ID hotel.

Respons

200 Berhasil.

Respons error

  • 200 mail_host_is_not_found — SMTP belum dikonfigurasi; hotel_id_is_not_found.
Permintaan
curl "https://test.hms.gen.tr/external/online/mail/host?hotelID=1000" \
  -H "Authorization: Bearer $HMS_TOKEN"
Respons · 200
{
    "success": true,
    "data": {
        "transport": "smtp",
        "encryption": "tls",
        "port": 587,
        "host": "smtp.demootel.com",
        "user": "[email protected]",
        "password": "********"
    }
}
Terakhir diperbarui: 21 September 2026Menemukan kesalahan? Beri tahu kami