Getting Started with the Xeni Activities APIHow to Book an ActivityHow to Browse Activity Tags and CategoriesHow to Cancel an Activity BookingHow to Check Activity AvailabilityHow to Get Activity DetailsHow to Retrieve Activity Booking DetailsHow to Search for Activities with FiltersHow to Search for Activity DestinationsCar Rental API - Getting StartedCar Rental API - Understanding Response FieldsHow to Book a Car RentalHow to Get Rental Car Details and Equipment Add-OnsHow to Retrieve or Cancel a Car Rental BookingHow to Search for Available Rental CarsHow to Search for Pickup LocationsHow to Use Car Rental Search FiltersDeals API Best Practices for IntegrationDeals API Frequently Asked QuestionsGetting Started with the Xeni Deals APIDeals API Request Parameters and Headers ReferenceDeals API Supported Currencies and LocalizationHow to Display Deals in Your ApplicationHow to Fetch Hotel Deals by LocationFlights API Error Codes and TroubleshootingGetting Started with the Xeni Flights APIHow to Book a FlightHow to Check Flight Availability and PricingHow to Confirm or Cancel a Flight BookingHow to Retrieve Fare Rules for a FlightHow to Retrieve Flight Booking DetailsHow to Search for Airports Using AutocompleteHow to Search for FlightsHow to Use Flight Search Filters, Sorting, and PaginationHow to Check Room Availability and PricingHow to Filter Vacation Rental ResultsHow to Get Resort Property Details, Amenities, and AccessibilityHow to Hold and Confirm a Resort BookingHow to Release a Resort HoldHow to Retrieve Resort Booking DetailsHow to Search for Available ResortsHow to Search for Resort DestinationsHow to Search for Vacation Rental LocationsHow to Search for Vacation RentalsHow to Use Resort Search Filters and SortingGetting Started with the Xeni Resorts APIResorts API: Understanding Booking Statuses and PoliciesGetting Started with the Vacation Rentals APIVacation Rentals Frequently Asked QuestionsVacation Rentals Supported Property TypesUnderstanding Async Search for Vacation RentalsAuthentication & API SignaturesBooking Hotels — Direct API & SSO CheckoutError Handling, Rate Limits & Best PracticesGetting Started with the Xeni Hotels APIManaging Bookings: Status, Retrieval & CancellationPricing Confirmation & Token LifecycleRetrieving Hotel Details & Room AvailabilitySearching for Hotels: Locations, Filters & PaginationSearching for HotelsSession Management & Correlation IDsAPI authentication and getting your API keys

How to Retrieve Flight Booking Details

Last updated: 2026-03-03

How to Retrieve Flight Booking Details

Use the get booking endpoint to retrieve the full details of an existing booking, including flight segments, traveler information, pricing, and current status.

Endpoint

GET /flights/api/v2/bookings?bookingid={bookingid}

Headers

HeaderRequiredDescription
x-api-keyYesYour API key.
x-correlation-idYesCorrelation ID from the autocomplete response.

Query Parameters

ParameterTypeRequiredDescription
booking_idstringYesThe booking ID returned when the booking was created.

Example Request

GET /flights/api/v2/bookings?booking_id=XNFiEtVA3LL

Example Response

JSON
{
  "status": "success",
  "data": {
    "travel_date": "2026-04-15",
    "booking_id": "XNFiEtVA3LL",
    "airline_pnr": "ABC123",
    "booking_status": "TICKETED",
    "trip_type": "Oneway",
    "flight_segments": [
      {
        "flight_number": "UA123",
        "airline": "United Airlines",
        "origin": "SFO",
        "originairportname": "San Francisco International Airport",
        "destination": "FRA",
        "destinationairportname": "Frankfurt Airport",
        "departure_time": "2026-04-15T10:30:00",
        "arrival_time": "2026-04-16T06:45:00",
        "duration": "12h 15m",
        "cabin_class": "Economy",
        "status": "CONFIRMED"
      },
      {
        "flight_number": "LH456",
        "airline": "Lufthansa",
        "origin": "FRA",
        "originairportname": "Frankfurt Airport",
        "destination": "BLR",
        "destinationairportname": "Kempegowda International Airport",
        "departure_time": "2026-04-16T09:00:00",
        "arrival_time": "2026-04-16T22:30:00",
        "duration": "9h 0m",
        "cabin_class": "Economy",
        "status": "CONFIRMED"
      }
    ],
    "traveller_details": [
      {
        "type": "ADULT",
        "title": "Mr",
        "first_name": "John",
        "last_name": "Smith",
        "dateofbirth": "1985-06-15",
        "ticket_number": "0161234567890"
      },
      {
        "type": "CHILD",
        "title": "Miss",
        "first_name": "Emma",
        "last_name": "Smith",
        "dateofbirth": "2018-03-22",
        "ticket_number": "0169876543210"
      }
    ],
    "pricing": {
      "base_price": 900,
      "taxandfees": 171,
      "total_price": 1071,
      "currency_code": "USD"
    },
    "tickettimelimit": "2026-04-14T23:59:00Z"
  },
  "message": "Booking details retrieved successfully"
}

Response Fields

Booking Information

FieldTypeDescription
traveldatestringPrimary travel date (YYYY-MM-DD).
bookingidstringXeni booking identifier.
airlinepnrstringAirline PNR (Passenger Name Record) / confirmation code. Share this with travelers for airline check-in.
bookingstatusstringCurrent booking status. See status reference below.
triptypestring"Oneway" or "Return".
tickettime_limitstringDeadline to confirm the booking (ISO 8601). Only relevant for BOOKED status.

Flight Segments

FieldTypeDescription
flightnumberstringAirline flight number.
airlinestringOperating airline.
origin / destinationstringIATA airport codes.
originairportname / destinationairportnamestringFull airport names.
departuretime / arrivaltimestringISO 8601 timestamps.
durationstringSegment flight duration.
cabinclassstringCabin class for this segment.
statusstringSegment status (e.g., CONFIRMED, CANCELLED).

Traveller Details

FieldTypeDescription
typestringPassenger type (ADULT, CHILD, INFANT).
titlestringTitle (Mr, Mrs, Ms, Miss).
firstname / lastnamestringTraveler name.
dateofbirthstringDate of birth (YYYY-MM-DD).
ticket_numberstringIssued ticket number (present when status is TICKETED).

Pricing

FieldTypeDescription
basepricenumberBase fare before taxes (total for all passengers).
taxandfeesnumberTotal taxes and fees.
totalpricenumberFinal total price.
currency_codestringCurrency of the pricing.

Booking Status Reference

StatusDescription
BOOKEDReservation is held. Confirm before the ticket time limit.
TICKETEDTickets have been issued.
TICKETINPROCESSTicketing is being processed.
CANCELLEDBooking has been cancelled.

Use Cases

  • Display booking confirmation — Show travelers their itinerary, PNR, and ticket numbers after booking.
  • Check ticketing status — Poll this endpoint after confirmation to verify that ticketing has completed (if the confirm response returned TICKETINPROCESS).
  • Pre-cancellation review — Retrieve booking details to display the itinerary and pricing before the user confirms cancellation.

Related Articles

Was this article helpful?