hms_agents
ChatGPTAgents / accounts (cari): tour operators, companies and the walk-in agent (usually 'Münferit'). Ids for bookings and payments. (GET /apiv2/current)
hms_booking_add_payment
ChatGPTRecord a payment (tahsilat) on a booking: amount, payment method (hms_payment_methods) and currency; date, due date and totals are filled in. Confirm amount and method with the user first. Schema is curated in src/booking.ts. (POST /apiv2/booking/{booking}/collaction)
hms_booking_balance
ChatGPTOutstanding balance of a booking (field 'blance'). (GET /apiv2/booking/info/{booking}/balance)
hms_booking_cancel
ChatGPTCancel a booking. Confirm with the user first. (PUT /apiv2/booking/{booking}/cancel)
hms_booking_checkin
ChatGPTCheck in one or more bookings (checkinList = booking ids). Confirm with the user first. (POST /apiv2/booking/checkin)
hms_booking_checkout
ChatGPTCheck out one or more bookings (checkoutList = booking ids). Confirm with the user first. (POST /apiv2/booking/checkout)
hms_booking_create
ChatGPTCreate a new booking. Call hms_booking_prepare first (it returns the room, rate, currency and agent ids in one go), confirm the details and price with the user, then call this with one rooms[] entry per room. Side effect: a new reservation appears in HMS; retrying creates a duplicate. (POST /apiv2/booking)
hms_booking_folio
ChatGPTFolio / account history of a booking: opening balance, room charges, extras, payments and the running balance. (GET /apiv2/booking/info/{booking}/account/transactions)
hms_booking_guests
ChatGPTGuests attached to a booking (guest_id, name, check-in/out). (GET /apiv2/booking/info/{booking}/guest)
hms_booking_list
ChatGPTList bookings (reservations), newest first. (GET /apiv2/booking)
hms_booking_payments
ChatGPTPayments (collections) recorded on a booking. (GET /apiv2/booking/{booking}/collaction)
hms_booking_prepare
ChatGPTEverything needed to create a booking, in ONE call: rooms free between two dates with their room type and currency ids, plus booking types, rate (board) types, hotel currencies with exchange rates and agents. Call this first, let the user pick room / rate / agent and confirm, then call hms_booking_create.
hms_booking_show
ChatGPTFull detail of one booking by its id. (GET /apiv2/booking/{booking})
hms_booking_update
ChatGPTChange dates, room, people count, price or check-in/out flags of a booking. Send only the fields that change. Confirm with the user first. (PUT /apiv2/booking/{booking})
hms_cash_registers
ChatGPTCash registers (id, baslik). (GET /apiv2/cash)
hms_guest_create
ChatGPTCreate a guest profile (ad, soyad, tarihDogum DD.MM.YYYY, cinsiyet 1 erkek / 0 kadın ...). Retrying creates a duplicate profile. (POST /apiv2/guest)
hms_guest_list
ChatGPTList guest profiles (id, full_name, balance). (GET /apiv2/guest)
hms_guest_show
ChatGPTOne guest profile by id. (GET /apiv2/guest/{guest})
hms_guest_update
ChatGPTUpdate a guest profile; send only the fields that change. (PUT /apiv2/guest/{guest})
hms_guests_in_hotel
ChatGPTGuests currently staying in the hotel with their room and booking id (rezervasyonId). (GET /apiv2/guest/inhotel)
hms_hotel_currencies
ChatGPTHotel currencies: id (the value for currency / hotelCurrency fields), code (_para_birimi.baslik_kod) and selling rate (fiyat_satis). (GET /apiv2/hotel/currency)
hms_housekeeping_board
ChatGPTRoom board for today, grouped by facility: every room with its cleaning status (Temiz / Kirli / Kullanım Dışı) and the check-in/out dates of its current booking. Use for 'which rooms are dirty / occupied / free today'. (GET /apiv2/room/housekeeping)
hms_payment_methods
ChatGPTPayment methods of the hotel: id is the paymentType for hms_booking_add_payment, baslikDil names it (nakit, kredikarti, havale ...). (GET /apiv2/collaction/payment/type)
hms_report_arrivals
ChatGPTExpected arrivals (will check in) between startDate and endDate. (GET /apiv2/report/booking/will-checkin/list)
hms_report_booking_totals
ChatGPTBooking totals / revenue summary between start and end. (GET /apiv2/report/booking/total)
hms_report_bookings
ChatGPTBooking report by date criterion (criterion: 1 check-in, 2 check-out, 3 created, 4 per day, 0 both) with totals per booking. (GET /apiv2/report/booking/list)
hms_report_cashflow
ChatGPTCash flow by payment method (cash in, cash out, difference) between startDate and endDate. (GET /apiv2/report/cashflow)
hms_report_checked_in
ChatGPTBookings that actually checked in between startDate and endDate. (GET /apiv2/report/booking/checkin/list)
hms_report_collections
ChatGPTCollections (payments received) and refunds summary between startDate and endDate. (GET /apiv2/report/collection)
hms_report_daily_guests
ChatGPTDaily guest list between startDate and endDate. (GET /apiv2/report/guest/dailylist)
hms_report_departures
ChatGPTExpected departures (will check out) between startDate and endDate. (GET /apiv2/report/booking/will-checkout/list)
hms_report_expenses
ChatGPTExpenses summary between startDate and endDate. (GET /apiv2/report/expense)
hms_report_forecast
ChatGPTDay-by-day occupancy forecast for one month (check-ins, occupied/empty rooms, occupancy %). (GET /apiv2/report/forecast)
hms_report_in_house
ChatGPTIn-house list: who is staying on a given date with room, nights, prices and balances, plus a summary. (GET /apiv2/report/inhouse/list)
hms_report_main_courante
ChatGPTMain courante (daily room revenue ledger) for a date: every in-house booking with day price and balances. (GET /apiv2/report/maincourante)
hms_report_occupancy
ChatGPTOccupancy per room (full days and ratio) between startDate and endDate. (GET /apiv2/report/room/occupancy/list)
hms_room_availability
ChatGPTRooms free between check-in (giris) and check-out (cikis) with room id (value), room type id (odatipiid) and hotel currency id (parabirimio). When the goal is a booking, prefer hms_booking_prepare. (POST /apiv2/room/availability)
hms_room_list
ChatGPTAll rooms with type, facility (block) and status. Default limit 500 so the whole hotel fits in one call. (GET /apiv2/room)
hms_room_mark_clean
ChatGPTMark a room as clean (Temiz). (POST /apiv2/room/{roomID}/clear)
hms_room_mark_dirty
ChatGPTMark a room as dirty (Kirli). (POST /apiv2/room/{roomID}/dirty)
hms_room_mark_out_of_use
ChatGPTMark a room as out of use (Kullanım Dışı). Confirm with the user first. (POST /apiv2/room/{roomID}/outofuse)
hms_room_price_quote
ChatGPTPrice of a room type for a date range from the hotel's rate table. total is 0 when no rate is defined for that period; then ask the user for the price. (GET /apiv2/accommodation/type/price)
hms_room_status_types
ChatGPTRoom status definitions only (id + name: Temiz, Kirli, Kullanım Dışı). NOT a room board; for rooms use hms_housekeeping_board. (GET /apiv2/roomstatus)
hms_room_types
ChatGPTActive room types of the hotel (ids needed for bookings). (GET /apiv2/room/type/active/list)
hms_rooms_occupied
ChatGPTRooms occupied between startDate and endDate, each with its booking id and guest name. (GET /apiv2/room/occupied)