Skip to main content

Expected Arrival

Overview

Returns reservations expected to arrive within the requested date range for arrival planning and front office operations. The response includes paging metadata and overall pax totals, and each reservation record provides confirmation and source information, guest and room type details, stay dates and night count, a day-use flag, and optional reservation set or transfer metadata when relevant; request flags can be used to include in-house and/or historical reservations.

Request Endpoint

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

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.
include_inhousestringNoInclude inhouse reservations (true/false).
include_historystringNoInclude historical reservations (true/false).

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 arrival 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 arrivals in the result.4
totalNoOfAdultnumberTotal number of adult guests.8
totalNoOfChildrennumberTotal number of child guests.2
totalNoOfPaxnumberTotal number of guests (adults + children).10
dataarray of objectList of expected arrival reservation objects (see below).[ ... ]

Response data.data Fields

FieldTypeDescriptionExample
idstringReservation detail unique ID.c3c2a7c0-...
reservationIdstringReservation unique ID.c3ba3740-...
statusstringReservation status (e.g., DEFINITE).DEFINITE
confirmationNostringReservation confirmation number.gusadidev-...
reservationSourcestringReservation source (e.g., Online Travel Agent).Online Travel Agent
guestobjectGuest information (see below).{...}
rateCodeobjectRate code info (see below).{...}
roomTypeobjectRoom type info (see below).{...}
reservationDatestringReservation creation date (YYYY-MM-DD).2024-05-14
checkInDatestringCheck-in date (YYYY-MM-DD or null).2024-05-14
checkOutDatestringCheck-out date (YYYY-MM-DD or null).2024-05-17
noOfNightnumberNumber of nights.1
roomNostringRoom number or name.Deluxe Villas 102
isDayUsestringDay use flag ("0" or "1")."0"
specialNotestringSpecial note (nullable).null
noOfAdultnumberNumber of adults in reservation.1
noOfChildrennumberNumber of children in reservation.0
noOfPaxnumberTotal number of guests in reservation.1
reservationSetobjectReservation set info (see below).{...}
transferFromReservationIdobjectTransfer from reservation info (see below).{...}
transferToReservationIdobjectTransfer to reservation info (see below).{...}
totalnumberTotal amount for the reservation.500000

Response data.data.guest Fields

FieldTypeDescriptionExample
isVipnumberVIP flag (0/1).0
surNamestringGuest surname.""
vipCodestringVIP code.""
vipNamestringVIP name.""
fullnamestringGuest full name.Mr Yoga
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

Response data.data.reservationSet Fields

FieldTypeDescriptionExample
setCheckInDatestringSet check-in date.""
setCheckOutDatestringSet check-out date.""
setReservationIdstringSet reservation ID.""
setConfirmationNostringSet confirmation number.""

Response data.data.[transferFromReservationId|transferToReservationId] Fields

FieldTypeDescriptionExample
roomNumberstringRoom number.""
confirmationNostringConfirmation number.""

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": 4,
"totalNoOfAdult": 8,
"totalNoOfChildren": 2,
"totalNoOfPax": 10,
"data": [
{
"id": "c3c2a7c0-11ca-11ef-887a-6fc26d6fa04a",
"reservationId": "c3ba3740-11ca-11ef-a072-611aceb3c9fd",
"status": "CHECK_OUT",
"confirmationNo": "gusadidev-20240514-042003",
"reservationSource": "Online Travel Agent",
"guest": {
"isVip": 0,
"surName": "",
"vipCode": "",
"vipName": "",
"fullname": "Mr Yoga ",
"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-05-14",
"checkInDate": "2024-05-14",
"checkOutDate": "2024-05-17",
"noOfNight": 1,
"roomNo": "Deluxe Villas 102",
"isDayUse": "0",
"specialNote": null,
"noOfAdult": 1,
"noOfChildren": 0,
"noOfPax": 1,
"reservationSet": {
"setCheckInDate": "",
"setCheckOutDate": "",
"setReservationId": "",
"setConfirmationNo": ""
},
"transferFromReservationId": {
"roomNumber": "",
"confirmationNo": ""
},
"transferToReservationId": {
"roomNumber": "",
"confirmationNo": ""
},
"total": 500000
}
]
}
}