← all test cases

International, one way, 1 adult

DEL-DXB · one way · 1 adult

International one way for 1 adult: search, reprice the cheapest fare, then the ancillaries and the seat map of the itinerary, book it on hold (no payment), read the booking details and release the hold. One search segment; one group, journey_indexes [0]; reprice takes one item.

  1. 1 Search: 194 options
  2. 2 Reprice: 1 items
  3. 3 Ancillaries: 0 items
  4. 4 Seat map: 0 seats
▸2. RepricePOST /flights/reprice1 items
What this step returned: 1 items(click to expand)
  • 1 item(s) sent: option edecb614… / price ae7740f4…
  • Repriced option on journey_indexes [0]: 2 flights (QR 4771 DEL-DOH, QR 1022 DOH-DXB); multi-flight reprice: yes
  • Fare Economy Classic PARTIALLY_REFUNDABLE: adult total 19,714, net 19,714; segments[] in the reply: no (detail=journey)
  • Price unchanged since search (no messages)
  • Booking requirements: hold allowed True, passport mandatory True, GST mandatory False, PAN applicable False, DOB adult/child/infant True/True/True
  • Price for the whole booking: total 19,714, net 19,714; itinerary_id expires at valid_till
  • 1 fare rule(s) in the reply
Request body
{
  "items": [
    {
      "option_id": "edecb614-6660-424e-b44b-4e4f19076120",
      "price_id": "ae7740f4-e721-4ee5-83a4-b05607ca8a87"
    }
  ]
}
Reply
{
  "itinerary_id": "5f8653b7-cb14-4ee7-85a6-79cefdc324f2",
  "valid_till": "2026-10-21T01:09:26+05:30",
  "fare_rules": {
    "fr_1": {
      "cancellation": [
        {
          "allowed": true,
          "amount": 13290,
          "from": {
            "value": 0,
            "unit": "HOURS"
          },
          "to": {
            "value": 365,
            "unit": "DAYS"
          }
        }
      ],
      "date_change": [
        {
          "allowed": true,
          "amount": 7595,
          "from": {
            "value": 0,
            "unit": "HOURS"
          },
          "to": {
            "value": 365,
            "unit": "DAYS"
          }
        }
      ]
    }
  },
  "results": [
    {
      "journey_indexes": [
        0
      ],
      "option_id": "edecb614-6660-424e-b44b-4e4f19076120",
      "segments": [
        {
          "segment_index": 0,
          "journey_index": 0,
          "from": "DEL",
          "to": "DOH",
          "airline_code": "QR",
          "airline_name": "Qatar Airways",
          "operating_airline_code": "6E",
          "operating_airline_name": "IndiGo Airlines",
          "aircraft_type": "Airbus A320",
          "flight_number": "4771",
          "departure_time": "2026-11-20T21:15:00",
          "departure_terminal": "3",
          "arrival_time": "2026-11-20T23:25:00",
          "duration": 280,
          "connecting_time": 595,
          "next_day": 1
        },
        {
          "segment_index": 1,
          "journey_index": 0,
          "from": "DOH",
          "to": "DXB",
          "airline_code": "QR",
          "airline_name": "Qatar Airways",
          "aircraft_type": "Airbus A359",
          "flight_number": "1022",
          "departure_time": "2026-11-21T09:20:00",
          "arrival_time": "2026-11-21T11:40:00",
          "arrival_terminal": "1",
          "duration": 80,
          "connecting_time": 595,
          "next_day": 1
        }
      ],
      "fare": {
        "price_id": "ae7740f4-e721-4ee5-83a4-b05607ca8a87",
        "fare_rules": {
          "0": "fr_1"
        },
        "adult": {
          "fare": {
            "base_fare": 4830,
            "yq": 6359,
            "yr": 2088,
            "airline_gst": 664,
            "other_taxes": 3532,
            "total_fare": 19714,
            "net_fare": 19714,
            "pax_count": 1
          },
          "fare_ref": "Economy Classic",
          "refundable_type": "PARTIALLY_REFUNDABLE",
          "cabin_class": "Economy",
          "booking_class": "N",
          "fare_basis": "NJR4I1RI",
          "baggage": {
            "hand": {
              "kg": 7
            },
            "checkin": {
              "kg": 25
            }
          }
        },
        "varies_by_segment": true
      }
    }
  ],
  "booking_requirements": {
    "is_gst_mandatory": false,
    "pan_applicable": false,
    "passport_mandatory": true,
    "dob_applicable": {
      "adt": true,
      "chd": true,
      "inf": true
    },
    "is_hold": true,
    "firstname_length": 50,
    "lastname_length": 50,
    "firstname_min_length": 2,
    "lastname_min_length": 2,
    "seat_mandatory": false,
    "meal_mandatory": false,
    "baggage_mandatory": false
  },
  "price": {
    "adult": {
      "base_fare": 4830,
      "yq": 6359,
      "yr": 2088,
      "airline_gst": 664,
      "other_taxes": 3532,
      "total_fare": 19714,
      "net_fare": 19714,
      "pax_count": 1
    },
    "total": {
      "base_fare": 4830,
      "yq": 6359,
      "yr": 2088,
      "airline_gst": 664,
      "other_taxes": 3532,
      "total_fare": 19714,
      "net_fare": 19714,
      "pax_count": 1
    }
  }
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
items[]arrayrequired, one per groupmust readOne item per search group you chose from: one for a one way or a combined return, two for a domestic return (one per direction).
items[].option_idstringrequiredmust readThe option_id from the search reply.
items[].price_idstringrequiredmust readThe price_id of the chosen fare of that option. An option_id or price_id not in a current search answers 400 with errors[] (search again).
Total: 3 keys
Reply
keytypewhen presentimportancemeaning
itinerary_idstringalwaysmust readNames the repriced itinerary. Send it to ancillaries, seat map and book.
valid_tilldatetimealwaysmust readUntil when the itinerary_id can be booked. After it, book answers 410: reprice again.
results[]arrayalwaysmust readOne entry per item sent: journey_indexes, option_id, the flights (segments) and the one fare, priced again.
results[].segments[]arrayalwaysmust readThe flights in order, each named by (journey_index, segment_index); segment_index restarts at 0 in every journey.
results[].fareobjectalwaysmust readThe fare in the shape of search: price_id, per passenger type (adult, child, infant) the fare_ref, refundable_type, cabin_class, booking_class, fare_basis, baggage and fare, and fare_rules ids.
price.totalobjectalwaysmust readThe price in the components of search: base_fare, yq, yr, airline_gst, booking_fee, commission, other_taxes, total_fare (what the traveller pays), net_fare (what you pay us), pax_count, and the baggage stated in the fare. For the whole booking.
price.adult (child, infant)objectalways (child, infant when requested)usefulThe price in the components of search: base_fare, yq, yr, airline_gst, booking_fee, commission, other_taxes, total_fare (what the traveller pays), net_fare (what you pay us), pax_count, and the baggage stated in the fare. For one passenger of that type.
booking_requirementsobjectalwaysmust readWhat book must carry: is_gst_mandatory, pan_applicable, passport_mandatory, dob_applicable (adt, chd, inf), name lengths, and whether a seat, meal or bag is mandatory.
booking_requirements.is_holdbooleanalwaysmust readtrue when this fare may be booked on hold (book with is_hold true); false: book directly, paid at once.
fare_rulesobjectwhen knownusefulThe cancellation and date-change rules the fares point at, keyed by id (fr_1, …): bands with allowed, amount or percent, the window (from, to) and the airline's text.
messages[]arrayonly when the price changedmust readOne entry per repriced option whose price changed since search: type FARE_ALERT, option_id, old_value, new_value. Show the new price before booking.
Total: 11 keys
Errors this call answers with (6)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4005100Invalid search requestoption_id and price_id are requiredAlso 'each review item needs option_id and price_id'.
4045103Flight not foundoption_id or price_id not in a stored search.
4105102Search results have expired
5025001The airline or supplier could not complete the requestReprice failed at the airline.
5045002A supplier or service did not answer in time
Questions developers ask (2)
The price changed. What now?
messages has a FARE_ALERT with old_value and new_value for that option_id. Show the new price to the traveller before booking; the itinerary is priced at the new value.
Until when can I book?
valid_till of the reprice reply: the airline's session for this itinerary. Book before it or reprice again.
▸3. AncillariesPOST /flights/ancillaries0 items
What this step returned: 0 items(click to expand)
  • 2 flight(s) in segments[]: (journey 0, segment 0) QR 4771 DEL-DOH; (journey 0, segment 1) QR 1022 DOH-DXB
  • No bags offered on this itinerary
  • No meals offered on this itinerary
  • No other items offered on this itinerary
  • Flights with nothing offered: (journey 0, segment 0), (journey 0, segment 1)
Request body
{
  "itinerary_id": "5f8653b7-cb14-4ee7-85a6-79cefdc324f2"
}
Reply
{
  "itinerary_id": "5f8653b7-cb14-4ee7-85a6-79cefdc324f2",
  "segments": [
    {
      "journey_index": 0,
      "segment_index": 0,
      "airline_code": "QR",
      "flight_number": "4771",
      "from": "DEL",
      "to": "DOH"
    },
    {
      "journey_index": 0,
      "segment_index": 1,
      "airline_code": "QR",
      "flight_number": "1022",
      "from": "DOH",
      "to": "DXB"
    }
  ],
  "baggage": [],
  "meal": [],
  "other": []
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
itinerary_idstringrequiredmust readThe itinerary_id from reprice. An expired one answers 404: reprice again.
Total: 1 keys
Reply
keytypewhen presentimportancemeaning
segments[]arrayalwaysusefulThe flights of the itinerary, each named by (journey_index, segment_index), with airline_code, flight_number, from and to.
baggage[]arrayalways (empty when none)must readExtra bags per journey: journey_index and items. A bag covers every flight of its journey, so it has no segment_index.
meal[]arrayalways (empty when none)must readMeals per flight: journey_index, segment_index and items.
other[]arrayalways (empty when none)usefulOther items per flight (priority check-in, bundles): journey_index, segment_index and items.
<list>[].items[]arrayalwaysmust readWhat can be bought: code (send it to book), label (show it), price (per passenger, INR).
Total: 5 keys
Errors this call answers with (4)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4005100Invalid search requestitinerary_id is requirederrors[]: field itinerary_id, rule required.
4045104Itinerary not found or expiredUnknown or expired itinerary_id.
5025001The airline or supplier could not complete the request
Questions developers ask (1)
How do I send a bag and a meal on book?
A bag with its code and journey_index; a meal, seat or other item with its code, journey_index and segment_index, exactly as this reply gave them.
▸4. Seat mapPOST /flights/seat-map0 seats
What this step returned: 0 seats(click to expand)
  • 0 flight(s) with a seat map of 2 in the itinerary:
  • No seats returned for this itinerary
  • Errors: seat map on errorDetails dropped: not a flight of this itinerary
Request body
{
  "itinerary_id": "5f8653b7-cb14-4ee7-85a6-79cefdc324f2"
}
Reply
{
  "itinerary_id": "5f8653b7-cb14-4ee7-85a6-79cefdc324f2",
  "segments": [
    {
      "journey_index": 0,
      "segment_index": 0,
      "airline_code": "QR",
      "flight_number": "4771",
      "from": "DEL",
      "to": "DOH"
    },
    {
      "journey_index": 0,
      "segment_index": 1,
      "airline_code": "QR",
      "flight_number": "1022",
      "from": "DOH",
      "to": "DXB"
    }
  ],
  "seats": [],
  "errors": [
    "seat map on errorDetails dropped: not a flight of this itinerary"
  ]
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
itinerary_idstringrequiredmust readThe itinerary_id from reprice.
Total: 1 keys
Reply
keytypewhen presentimportancemeaning
segments[]arrayalwaysusefulThe flights of the itinerary, each named by (journey_index, segment_index), with airline_code, flight_number, from and to.
seats[]arrayalways (empty when the airline gives no map)must readOne seat map per flight: journey_index, segment_index, aircraft_type, total_seats and seats.
seats[].seats[]arrayalwaysmust readEvery seat: code (send it to book), desc (e.g. 3A, show it), row, column, amount (price; 0 = free), tax, is_available.
seats[].seats[].window / aisle / middlebooleanalwaysusefulWhere the seat is in its row.
seats[].seats[].exit_row / leg_room / infant / near_wings / recliningbooleanalwaysusefulSeat features. A passenger with an infant needs a seat with infant true; exit rows have rules of their own.
Total: 5 keys
Errors this call answers with (4)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4005100Invalid search requestitinerary_id is required
4045104Itinerary not found or expired
5025001The airline or supplier could not complete the request