POSTFlight
Search Flight Round Trip
/flight/search/round-trip
Search outbound and return flight options for a round-trip itinerary.
Source: API Documentation.pdf, pages 40-44Authorization required
Call the authentication endpoint first, then include the returned access token in the Authorization header together with Content-Type: application/json.
Parameters
| Name | Type | Example | Description |
|---|---|---|---|
journeyRequired | Object | - | Flight search criteria including route, departure date, and seat class. |
passengersRequired | Object | - | Passenger count information (adult, child, infant). |
success | Boolean | true | Indicates whether the search request was successful. |
data | Object | - | Flight search result container. |
completed | Boolean | false | Indicates whether search results are fully completed. |
basicRoundTripFlightSearchResults | Array (Object) | - | List of available round-trip flight options. |
flightId | String | <flight-id> | Unique flight identifier. |
departureAirport | String | CGK | Departure airport code. |
arrivalAirport | String | DPS | Arrival airport code. |
numOfTransits | String | 0 | Number of transit stops. |
journeys | Array (Object) | - | List of journey details for outbound/inbound flights. |
segments | Array (Object) | - | List of flight segments within each journey. |
tripDuration | String | 115 | Total trip duration in minutes. |