Skip to main content

Inhouse Reservations

Overview

Returns an in-house reservations report over the requested date range, intended to list currently staying guests with key reservation identifiers and totals. The response includes paging metadata and overall pax totals, and the data array contains one object per reservation detail with confirmation and source information, guest identity, rate code and room type, stay dates and night count, pax counts, and the reservation total.

Request Endpoint

  • Method: POST
  • Path: {{base_url}}/api/reports/inhouse-reservations

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Request Body Fields

FieldTypeRequiredDescription
start_datestringYesStart date (YYYY-MM-DD) for the report.
end_datestringYesEnd date (YYYY-MM-DD) for the report.
room_typestringNoRoom type ID to filter results.

Response Body Fields

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed.
statusstringYesStatus string. On success returns e.g. "ok".
messagestringYesHuman-readable message. Often empty on success.
dataobjectYes (on success)Inhouse reservation report object.

Response data Fields

FieldTypeDescriptionExample
datestringReport date (YYYY-MM-DD).2023-01-17
pageStartnumberPaging: start index of the current page.1
pageLengthnumberPaging: number of records per page.1
totalCountnumberTotal number of inhouse reservations in the result.7
totalNoOfAdultnumberTotal number of adult guests.7
totalNoOfChildrennumberTotal number of child guests.0
totalNoOfPaxnumberTotal number of guests (adults + children).7
dataarray of objectList of inhouse reservation objects (see below).[ ... ]

Response data.data Fields

FieldTypeDescriptionExample
idstringReservation detail unique ID.cd1af1b0-...
reservationIdstringReservation unique ID.cce068f0-...
statusstringReservation status (e.g., CHECK_IN).CHECK_IN
confirmationNostringReservation confirmation number.gusadidev-...
reservationSourcestringReservation source (e.g., Walk In).Walk In
guestobjectGuest information (see below).{...}
rateCodeobjectRate code info (see below).{...}
roomTypeobjectRoom type info (see below).{...}
reservationDatestringReservation creation date (YYYY-MM-DD).2022-03-12
checkInDatestringCheck-in date (YYYY-MM-DD).2022-03-12
checkOutDatestringCheck-out date (YYYY-MM-DD or null if inhouse).null
noOfNightnumberNumber of nights.1
roomNostringRoom number or name.Deluxe Villas 102
specialNotestringSpecial note (nullable).null
noOfAdultnumberNumber of adults in reservation.1
noOfChildrennumberNumber of children in reservation.0
noOfPaxnumberTotal number of guests in reservation.1
totalnumberTotal amount for the reservation.1100000

Response data.data.guest Fields

FieldTypeDescriptionExample
surNamestringGuest surname.""
fullnamestringGuest full name.Made Sari
giveNamestringGuest given name.Made Sari
countryCodestringGuest country code (nullable).ID
countryNamestringGuest country name (nullable).Indonesia

Response data.data.rateCode Fields

FieldTypeDescriptionExample
codestringRate code ID.0bfa9410-...
descriptionstringRate code description.Room And Breakfast1

Response data.data.roomType Fields

FieldTypeDescriptionExample
codestringRoom type ID.123fe740-...
namestringRoom type name.Deluxe Villa

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": {
"date": "2023-01-17",
"pageStart": 1,
"pageLength": 1,
"totalCount": 7,
"totalNoOfAdult": 7,
"totalNoOfChildren": 0,
"totalNoOfPax": 7,
"data": [
{
"id": "cd1af1b0-7e85-11ec-8cb0-d37634e3f66a",
"reservationId": "cce068f0-7e85-11ec-a0c8-597225ae10c3",
"status": "CHECK_IN",
"confirmationNo": "gusadidev-20220126-045607",
"reservationSource": "Walk In",
"guest": {
"surName": "",
"fullname": " Made Sari ",
"giveName": " Made Sari",
"countryCode": null,
"countryName": null
},
"rateCode": {
"code": "0bfa9410-1f66-11ec-9a65-e51e54f659e2",
"description": "Room And Breakfast1"
},
"roomType": {
"code": "123fe740-3869-11eb-a57f-950037ff4988",
"name": "Deluxe Villa"
},
"reservationDate": "2022-03-12",
"checkInDate": "2022-03-12",
"checkOutDate": null,
"noOfNight": 1,
"roomNo": "Deluxe Villas 102",
"specialNote": null,
"noOfAdult": 1,
"noOfChildren": 0,
"noOfPax": 1,
"total": 1100000
}
]
}
}