-
Notifications
You must be signed in to change notification settings - Fork 0
Cleartrip Flights Create Itinerary Search
SoumyaSian edited this page Feb 27, 2018
·
9 revisions
oneway_create_itinerary
KEYWORD | DESCRIPTION |
---|---|
ADULTS | No. of Adults travelling |
CHILDREN | No. of Children travelling |
INFANTS | No. of Infants travelling |
ITINERARY | Key is 'itinerary', Object which has complete info of segments and fare of flight |
ITINERARY.CABIN_TYPE | route Id of bus |
ITINERARY.FARE_DETAILS | Fare Details of the onward flight |
ITINERARY.FARE_DETAILS.AMOUNT | Total price of the journey |
ITINERARY.FARE_DETAILS.FARE_KEY | Fare key of the journey |
ITINERARY.FLIGHTS | Object with flight info |
ITINERARY.FLIGHTS.SEGMENTS | Object with no. of flights based on the stops |
ITINERARY.FLIGHTS.SEGMENTS.DAPARTURE_AIRPORT | Departure Airport code |
ITINERARY.FLIGHTS.SEGMENTS.ARRIVAL_AIRPORT | Arrival airport code |
ITINERARY.FLIGHTS.SEGMENTS.FLIGHT_NUMBER | Flight number |
ITINERARY.FLIGHTS.SEGMENTS.AIRLINE | Airline code |
ITINERARY.FLIGHTS.SEGMENTS.DEPARTURE_DATE | Departure Date of the journey |
ITINERARY.FLIGHTS.SEGMENTS.OPERATING_AIRLINE | Operating Airline |
{
"adults":$ADULTS,
"children":$CHILDREN,
"infants":$INFANTS,
"$ITINERARY": {
"cabin_type": "$CABIN_TYPE",
"$FARE_DETAILS": [
{
"amount": $AMOUNT,
"fare_key": "$FARE_KEY"
}
],
"$FLIGHTS": [
{
"$SEGMENTS": {
"1": {
"departure_airport": "$DAPARTURE_AIRPORT",
"arrival_airport": "$ARRIVAL_AIRPORT",
"flight_number": "$FLIGHT_NUMBER",
"airline": "$AIRLINE",
"operating_airline": "$OPERATING_AIRLINE",
"departure_date": "$DEPARTURE_DATE"
}
}
}
]
}
}
KEY | DESCRIPTION |
---|---|
$HOLD_ID | Travelyaari ID for booking to hold seat |
{
"HoldId": $HOLD_ID
}
Some error messages, you might get for an invalid search request. The HTTP response code in this case will be 400.
Status | Error message | Description |
---|---|---|
512 | The flight you were trying to book is no longer available. Please pick a different flight option. | Unavailabity . |