getInhouseGuests API Docs

getInhouseGuests API Docs

Documentación del API para obtener huéspedes en casa: 

Request Payload Description

Componente
Valor
Nota
URL https://{NOVOHIT_BASE_URL}/api/index.php Base URL to reach API endpoint
Route /novohit/rcp/getInhouseGuests
If authentication valid, returns HTTP 200 with data payload.
Method GET HTTP Method GET.
Parameters ?{param=value} List of URL parameters in query string (name/value pairs).
id_hotel 4260 Novohit Hotel ID Code. Required.
token_auth {SEC_TOKEN} Unique token for authentication. Required. DO NOT SHARE. Sensitive information.
format xml | json Format in which the response is preferred. Optional. Default: json 

Request Example

The following example is a standard curl call:
curl https://${NOVOHIT_BASE_URL}/api/index.php/novohit/rcp/getInhouseGuests?id_hotel=${NOVOHIT_HOTEL_ID}&token_auth=${YOUR_TOKEN_AUTH}&format=xml

Return Payload Description

The returned data will be only Guests In House who have not checked out.

Field
tag
Data Type
Notes
Hotel ID 
id_hotel
Integer
Novohit ID Code
Customer Unique ID
id_customer
Integer
Novohit ID Code.
Warning, this code may vary over time if the property merges Guests data. We do not recommend using this ID as primary key. Instead use holistic combination of other fields (e.g. email, last name, name, nationality) as keys.

Guest First Name 
first_name
String

Guest Last Name 
last_name
String

Birthday
dt_birth
Integer
Always in YYYYMMDD format. Example:19990711 for July 11th 1999.
Email 
e_mail
String

Guest’s Phone Number 
phone
String

Language
lang
String
ISO 2-digit Code to identify guests preferred language. Example: pt for Portuguese
Country
country_code
String
ISO 2-digit Code to identify guest's address. Example: US for USA
Nationality
nationality
String
ISO 2-digit Code to identify guests identified nationality at check-in. Example: BR for Brasil
Guest Segment
guest_segment
String
Guest's Segment
Guest Plan
guest_plan
String
Guest's Plan for this stay (usually associated to Food plan)
Guest Category
guest_category
String
Guest's category for this stay
Rate Type
rate_type
String
Guests rate type for this stay
Agency (Channel)
agency
String
Agency, channel or company on which this guest made his reservation
Room Name 
room_name
String

Arrival Date / check-in 
dt_arrival
Integer
Always in YYYYMMDD format. Example:20251201 for December 1st 2025.
Departure Date / check-out 
dt_departure
Integer
Always in YYYYMMDD format. Example:20260115 for January 15th 2026.
Reservation Date
dt_rsv
Integer
Always in YYYYMMDD format. Example:20220510 for May 10th 2022.
Adults 
no_adults
Integer
Number of adults in this party for this stay
Children (Paying)
no_children_pay
Integer
Number of paying children in this party for this stay
Children (non-paying)
no_children_free
Integer
Number of non-paying (free) children in this party for this stay

Return example

The following response is in XML format, as the request was made with format=xml:
  1. <?xml version="1.0"?>
  2. <response>
  3.     <item key="0">
  4.         <id_hotel>1055</id_hotel>
  5.         <dt_arrival>20251122</dt_arrival>
  6.         <dt_departure>20251126</dt_departure>
  7.         <room_name>4055</room_name>
  8.         <cd_rsv>ABC12</cd_rsv>
  9.         <dt_rsv>20200510</dt_rsv>
  10.         <id_customer>123456</id_customer>
  11.         <last_name>APLESEED</last_name>
  12.         <first_name>OSCAR</first_name>
  13.         <dt_birth>19990509</dt_birth>
  14.         <lang/>
  15.         <nationality>AE</nationality>
  16.         <e_mail>OSCAR.APPLESEED@EMAIL.COM</e_mail>
  17.         <phone>+97190125552</phone>
  18.         <country_code>AE</country_code>
  19.         <promo_name/>
  20.         <guest_segment>CORPORATE</guest_segment>
  21.         <guest_plan>BEDANDBREAKFAST</guest_plan>
  22.         <guest_category>BUSINESS</guest_category>
  23.         <rate_type>SINGLE</rate_type>
  24.         <no_adults>1</no_adults>
  25.         <no_children_pay>0</no_children_pay>
  26.         <no_children_free>0</no_children_free>
  27.         <agency>TRAVELOCITY</agency>
  28.     </item>
  29.     <item key="1">
  30.         <id_hotel>1055</id_hotel>
  31.         <dt_arrival>20251122</dt_arrival>
  32.         <dt_departure>20251230</dt_departure>
  33.         <room_name>1812</room_name>
  34.         <cd_rsv>CDE34</cd_rsv>
  35.         <dt_rsv>20211210</dt_rsv>
  36.         <id_customer>678954</id_customer>
  37.         <last_name>MOREIRA</last_name>
  38.         <first_name>ANDRESSA</first_name>
  39.         <dt_birth>20020220</dt_birth>
  40.         <lang>pt</lang>
  41.         <nationality>BR</nationality>
  42.         <e_mail/>
  43.         <phone/>
  44.         <country_code>US</country_code>
  45.         <promo_name/>
  46.         <guest_segment>TRAVELER</guest_segment>
  47.         <guest_plan>FAMILYMEALS</guest_plan>
  48.         <guest_category>TOUR</guest_category>
  49.         <rate_type>QUAD</rate_type>
  50.         <no_adults>2</no_adults>
  51.         <no_children_pay>2</no_children_pay>
  52.         <no_children_free>1</no_children_free>
  53.         <agency>HOTELRSV</agency>
  54.     </item>
  55.     ...
  56. </response>
If you wish to obtain JSON, use &format=json on the GET request. Fields are named the same

    • Related Articles

    • Analytics

      La plataforma de Analytics está solo disponible para clientes con el motor de Reservaciones de HotelRSV. Para poder realizar Tracking de hotelRSV y de la Página Web acceda a analytics.novohit.com Solicite su usuario en help.novohit.com En la ...
    • Sync entre Novohit y SiteMinder Channel Manager

      Novohit puede conectarse a SiteMinder y permitir el control de las tarifas, disponibilidades y restricciones desde nuestra plataforma PMS de Novohit, automatizando el proceso de la venta online en todos los canales OTA y GDS que tenga a través de ...