Skip to main content

Expected Departure

Overview

Returns reservations expected to depart within the requested date range, which is commonly used for housekeeping and front office planning. The response includes paging metadata and overall pax totals, and each record provides confirmation and source information, guest and room type details, stay dates and night count, pax counts, and the reservation total.

Request Endpoint

  • Method: POST
  • Path: {{base_url}}/api/hq/reports/expected-departure

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)Expected departure report object.

Response data Fields

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

Response data.data Fields

FieldTypeDescriptionExample
idstringReservation detail unique ID.11a62c60-...
reservationIdstringReservation unique ID.113d5ae0-...
statusstringReservation status (e.g., DEFINITE).DEFINITE
confirmationNostringReservation confirmation number.gusadidev-...
reservationSourcestringReservation source (e.g., Online Travel Agent).Complimentary
guestobjectGuest information (see below).{...}
rateCodeobjectRate code info (see below).{...}
roomTypeobjectRoom type info (see below).{...}
reservationDatestringReservation creation date (YYYY-MM-DD).2024-08-01
checkInDatestringCheck-in date (YYYY-MM-DD or null).null
checkOutDatestringCheck-out date (YYYY-MM-DD or null).null
noOfNightnumberNumber of nights.1
roomNostringRoom number or name.Deluxe Villas 103
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.500000

Response data.data.guest Fields

FieldTypeDescriptionExample
surNamestringGuest surname.Puniatmaja
fullnamestringGuest full name.Mr Yoga Puniatmaja
giveNamestringGuest given name.Mr Yoga
countryCodestringGuest country code.AF
countryNamestringGuest country name.Afghanistan

Response data.data.rateCode Fields

FieldTypeDescriptionExample
codestringRate code ID.04c22000-...
descriptionstringRate code description.Package

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-13",
"pageStart": 1,
"pageLength": 1,
"totalCount": 7,
"totalNoOfAdult": 11,
"totalNoOfChildren": 2,
"totalNoOfPax": 13,
"data": [
{
"id": "11a62c60-4faf-11ef-80f1-5319c70e4cad",
"reservationId": "113d5ae0-4faf-11ef-92e7-dbd5f158598d",
"status": "DEFINITE",
"confirmationNo": "gusadidev-20240801-103759",
"reservationSource": "Complimentary",
"guest": {
"surName": "Puniatmaja",
"fullname": "Mr Yoga Puniatmaja",
"giveName": "Mr Yoga",
"countryCode": "AF",
"countryName": "Afghanistan"
},
"rateCode": {
"code": "04c22000-a7cf-11eb-928a-69db90ee6a0d",
"description": "Package"
},
"roomType": {
"code": "123fe740-3869-11eb-a57f-950037ff4988",
"name": "Deluxe Villa"
},
"reservationDate": "2024-08-01",
"checkInDate": null,
"checkOutDate": null,
"noOfNight": 1,
"roomNo": "Deluxe Villas 103",
"specialNote": null,
"noOfAdult": 1,
"noOfChildren": 0,
"noOfPax": 1,
"total": 500000
}
]
}
}