5. GetReservationDetails

Last modified by Giorgi Mdivnishvili on 2024/04/12 19:08

Method Description

This API endpoint facilitates the retrieval of information pertaining to a previously booked reservation for data verification purposes.

To utilize this functionality, simply provide the reservationId parameter obtained following the initial reservation request and submit the API request.

Endpoint URL - [POST]

Request Parameters

None

Request Body

{"id":"e5955628-9fbb-4418-89e4-a928a6f92d59"}

Request Body example

{"id":"e5955628-9fbb-4418-89e4-a928a6f92d59"}

Response example

{
   "reservation": {
       "id": "e5955628-9fbb-4418-89e4-a928a6f92d59",
       "rfNumber": "314612 / 104586",
       "contactNumber": "teeeest, for testing purpose !, Contact Number: 597101803",
       "agentName": "Mr. Giorgi Mdivnishvili",
       "totalPrice": 47,
       "agentCommission": 0,
       "currency": "USD",
       "tourists": [
            {
               "id": "69c369ca-cc96-40a3-bc72-914570239d52",
               "gender": "Male",
               "ageCategory": "Adult",
               "firstName": "Teeeest",
               "lastName": "Teeeest",
               "passportNumber": "123123",
               "passportExpiryDate": "2025-09-23T00:00:00.000",
               "citizenshipCountryCode": "KZ",
               "citizenshipCountryName": "Kazakhstan",
               "arrivalDate": "2024-06-30T00:00:00.000",
               "arrivalTerminalCode": "DXB2",
               "returnDate": "2024-07-01T00:00:00.000",
               "returnTerminalCode": "DXB2",
               "showReturn": true
            },
            {
               "id": "22c86f25-0914-499e-86e8-f3da7cc1b6f4",
               "gender": "Male",
               "ageCategory": "Adult",
               "firstName": "Teeeest",
               "lastName": "Teeeest",
               "birthDate": "1990-09-23T00:00:00.000",
               "passportNumber": "1231233",
               "passportExpiryDate": "2025-12-23T00:00:00.000",
               "citizenshipCountryCode": "KZ",
               "citizenshipCountryName": "Kazakhstan",
               "arrivalDate": "2024-06-30T00:00:00.000",
               "arrivalTerminalCode": "DXB2",
               "returnDate": "2024-07-01T00:00:00.000",
               "returnTerminalCode": "DXB2",
               "showReturn": true
            }
        ],
       "hotels": [
            {
               "id": "df273eac-855f-40da-b115-258647183adf",
               "hotelName": "Royal Continental Hotel",
               "cityName": "Dubai",
               "hotelClass": "4",
               "checkInDate": "2024-06-30T00:00:00.000",
               "checkOutDate": "2024-07-01T00:00:00.000",
               "roomCategoryName": "Superior King Room",
               "placementName": "DBL",
               "mealPlan": "RO"
            }
        ],
       "flights": [],
       "transfers": [],
       "services": []
    }
}

Schema

Success

GetReservationDetailsResponse{

reservationReservationDetails{
idstring($uuid)
rfNumberstring
nullable: true
contactNumberstring
nullable: true
agentNamestring
nullable: true
totalPricenumber($double)
agentCommissionnumber($double)
netPricenumber($double)
nullable: true
currencystring
nullable: true
tourists[
nullable: trueResDetailsTourist{
idstring($uuid)
genderGenderEnumstringEnum:
[ None, Male, Female ]
ageCategoryAgeCategorystringEnum:
[ Adult, Infant, Child ]
firstNamestring
nullable: true
lastNamestring
nullable: true
birthDatestring($date-time)
nullable: true
passportNumberstring
nullable: true
passportExpiryDatestring($date-time)
nullable: true
tinstring
nullable: true
citizenshipCountryCodestring
nullable: true
citizenshipCountryNamestring
nullable: true
mobilestring
nullable: true
emailstring
nullable: true
arrivalDatestring($date-time)
nullable: true
arrivalFlightNumberstring
nullable: true
arrivalTerminalCodestring
nullable: true
returnDatestring($date-time)
nullable: true
returnFlightNumberstring
nullable: true
returnTerminalCodestring
nullable: true
showReturnboolean

}]

hotels[
nullable: trueResDetailsHotel{
idstring($uuid)
hotelNamestring
nullable: true
cityNamestring
nullable: true
hotelClassstring
nullable: true
checkInDatestring($date-time)
checkOutDatestring($date-time)
roomCategoryNamestring
nullable: true
placementNamestring
nullable: true
mealPlanstring
nullable: true
agentConfirmationNumberstring
nullable: true

}]

flights[
nullable: trueResDetailsFlight{
idstring($uuid)
isArrivalboolean
touristIdstring($uuid)
touristNamestring
nullable: true
datestring($date-time)
departureAirportstring
nullable: true
departureTerminalstring
nullable: true
arrivalAirportstring
nullable: true
arrivalTerminalstring
nullable: true
agentConfirmationNumberstring
nullable: true
bookingConfirmationNumberstring
nullable: true
notestring
nullable: true

}]

transfers[
nullable: trueResDetailsTransfer{
idstring($uuid)
transferTypestring
nullable: true
vehicleNamestring
nullable: true
touristIdstring($uuid)
touristNamestring
nullable: true
datestring($date-time)
fromTerminalstring
nullable: true
fromCityNamestring
nullable: true
fromHotelNamestring
nullable: true
toHotelNamestring
nullable: true
toTerminalstring
nullable: true
toCityNamestring
nullable: true
agentConfirmationNumberstring
nullable: true
notestring
nullable: true

}]

services[
nullable: trueResDetailsService{
idstring($uuid)
serviceDatestring($date-time)
serviceNamestring
nullable: true
touristIdstring($uuid)
touristNamestring
nullable: true
notestring
nullable: true

}]

}

}

Description

ParameterValue TypeDescription
idStringThe unique identifier for the reservation, typically a UUID or similar.
rfNumberStringThe reference number for the reservation, usually generated by the system.
contactNumberStringThe contact number associated with the reservation, used for communication purposes.
agentNameStringThe name of the agent who made the reservation, useful for tracking and accountability.
totalPriceNumberThe total price of the reservation, calculated based on the services and products included.
agentCommissionNumberThe commission earned by the agent for this reservation, calculated as a percentage of the total price.
currencyStringThe currency in which the price and commission are denominated, typically in ISO 4217 format (e.g., USD, EUR).
tourists[].idStringThe unique identifier for each tourist, typically a UUID.
tourists[].genderStringThe gender of the tourist, usually : [ None, Male, Female ]
tourists[].ageCategoryStringThe age category of the tourist, such as 'Adult', 'Child', or 'Infant'.
tourists[].firstNameStringThe first name of the tourist, as it appears on their passport.
tourists[].lastNameStringThe last name of the tourist, as it appears on their passport.
tourists[].birthDateString (Date)The birth date of the tourist, typically in ISO 8601 format (YYYY-MM-DD).
tourists[].passportNumberStringThe passport number of the tourist, as it appears on their passport.
tourists[].passportExpiryDateString (Date)The expiry date of the tourist's passport, typically in ISO 8601 format (YYYY-MM-DD).
tourists[].citizenshipCountryCodeStringThe ISO 3166-1 alpha-2 code of the tourist's country of citizenship (e.g., US, GB).
tourists[].citizenshipCountryNameStringThe full name of the tourist's country of citizenship.
tourists[].arrivalDateString (Date)The date of the tourist's arrival, typically in ISO 8601 format (YYYY-MM-DD).
tourists[].arrivalFlightNumberStringThe flight number for the tourist's arrival, as provided by the airline.
tourists[].arrivalTerminalCodeStringThe terminal code for the tourist's arrival, as provided by the airport.
tourists[].returnDateString (Date)The date of the tourist's return, typically in ISO 8601 format (YYYY-MM-DD).
tourists[].returnFlightNumberStringThe flight number for the tourist's return, as provided by the airline.
tourists[].returnTerminalCodeStringThe terminal code for the tourist's return, as provided by the airport.
tourists[].showReturnBooleanA boolean indicating whether the return information should be displayed, useful for one-way trips.
hotels[].idStringThe unique identifier for each hotel booking, typically a UUID or similar.
hotels[].hotelNameStringThe name of the hotel where the booking is made.
hotels[].cityNameStringThe city where the hotel is located.
hotels[].hotelClassStringThe class or rating of the hotel, such as '3-star', '4-star', '5-star', etc.
hotels[].checkInDateString (Date)The check-in date for the hotel booking, typically in ISO 8601 format (YYYY-MM-DD).
hotels[].checkOutDateString (Date)The check-out date for the hotel booking, typically in ISO 8601 format (YYYY-MM-DD).
hotels[].roomCategoryNameStringThe category of the room booked, such as 'Standard', 'Deluxe', 'Suite', etc.
hotels[].placementNameStringThe type of placement, such as 'DBL' for double room, 'SGL' for single room, etc.
hotels[].mealPlanStringThe meal plan for the hotel booking, such as 'RO' for Room Only, 'BB' for Bed and Breakfast, etc.
flights[].idStringThe unique identifier for each flight, typically a UUID or similar.
flights[].isArrivalBooleanA boolean indicating whether this flight is an arrival flight, useful for distinguishing between arrival and departure flights.
flights[].touristIdStringThe id of the tourist taking this flight, linking the flight to a specific tourist.
flights[].touristNameStringThe name of the tourist taking this flight, useful for passenger lists.
flights[].dateString (Date)The date and time of the flight, typically in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
flights[].departureAirportStringThe IATA code of the airport from which the flight departs (e.g., JFK, LHR).
flights[].departureTerminalStringThe terminal from which the flight departs, as provided by the airport.
flights[].arrivalAirportStringThe IATA code of the airport at which the flight arrives (e.g., JFK, LHR).
flights[].arrivalTerminalStringThe terminal at which the flight arrives, as provided by the airport.
flights[].noteStringAny additional notes about the flight, such as 'Overnight flight', 'Meal included', etc.
transfers[].idStringThe unique identifier for each transfer, typically a UUID or similar.
transfers[].transferTypeStringThe type of transfer, such as 'ARRIVAL' for airport to hotel transfers, 'DEPARTURE' for hotel to airport transfers.
transfers[].vehicleNameStringThe name of the vehicle used for the transfer, such as 'Private Car', 'Shared Shuttle', etc.
transfers[].touristIdStringThe id of the tourist using this transfer, linking the transfer to a specific tourist.
transfers[].touristNameStringThe name of the tourist using this transfer, useful for passenger lists.
transfers[].dateString (Date)The date and time of the transfer, typically in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
transfers[].fromTerminalStringThe terminal from which the transfer starts, as provided by the airport or hotel.
transfers[].fromCityNameStringThe city from which the transfer starts.
transfers[].toHotelNameStringThe hotel to which the transfer goes.
transfers[].toCityNameStringThe city to which the transfer goes.
transfers[].noteStringAny additional notes about the transfer, such as 'Private transfer', 'Shared transfer', etc.
services[].idStringThe unique identifier for each service, typically a UUID or similar.
services[].serviceDateString (Date)The date and time of the service, typically in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
services[].serviceNameStringThe name of the service, such as insurance in this example.
services[].touristIdStringThe id of the tourist using this service, linking the service to a specific tourist.
services[].touristNameStringThe name of the tourist using this service, useful for booking confirmations.