← all test cases

Fare attributes per flight (detail: segment)

DEL-BOM · one way · 1 adult

detail: segment adds segments[] inside every fare option, with the cabin, booking class, fare basis, meal and baggage of each flight. Useful when varies_by_segment is true.

  1. 1 Search: 215 options
  2. 2 Reprice: 1 items
▸2. RepricePOST /flights/reprice1 items
What this step returned: 1 items(click to expand)
  • 1 item(s) sent: option 0cf2ee70… / price c723a668…
  • Repriced option on journey_indexes [0]: 1 flight (6E 46 DEL-BOM); multi-flight reprice: no
  • Fare Series Purchase NON_REFUNDABLE: adult total 1,799, net 1,799; segments[] in the reply: no (detail=journey)
  • Price unchanged since search (no messages)
  • Booking requirements: hold allowed True, passport mandatory False, GST mandatory False, PAN applicable False, DOB adult/child/infant False/True/True
  • Price for the whole booking: total 1,799, net 1,799; itinerary_id expires at valid_till
  • 0 fare rule(s) in the reply
Request body
{
  "items": [
    {
      "option_id": "0cf2ee70-b51a-4e63-a4c4-cbca83270eb3",
      "price_id": "c723a668-4534-4b39-9fe8-0fcb25f6d967"
    }
  ]
}
Reply
{
  "itinerary_id": "5530ade5-d62d-4ef5-b1af-5ce161792d4c",
  "valid_till": "2026-10-20T20:40:18+05:30",
  "results": [
    {
      "journey_indexes": [
        0
      ],
      "option_id": "0cf2ee70-b51a-4e63-a4c4-cbca83270eb3",
      "segments": [
        {
          "segment_index": 0,
          "journey_index": 0,
          "from": "DEL",
          "to": "BOM",
          "airline_code": "6E",
          "airline_name": "IndiGo Airlines",
          "flight_number": "46",
          "departure_time": "2026-11-19T15:00:00",
          "departure_terminal": "1",
          "arrival_time": "2026-11-19T16:50:00",
          "arrival_terminal": "1",
          "duration": 110
        }
      ],
      "fare": {
        "price_id": "c723a668-4534-4b39-9fe8-0fcb25f6d967",
        "adult": {
          "fare": {
            "base_fare": 1200,
            "booking_fee": 200,
            "other_taxes": 100,
            "total_fare": 1799.14,
            "net_fare": 1799.14,
            "pax_count": 1
          },
          "fare_ref": "Series Purchase",
          "refundable_type": "NON_REFUNDABLE",
          "cabin_class": "Economy",
          "booking_class": "U",
          "baggage": {
            "hand": {
              "kg": 7
            },
            "checkin": {
              "kg": 0
            }
          }
        },
        "varies_by_segment": false
      }
    }
  ],
  "booking_requirements": {
    "is_gst_mandatory": false,
    "pan_applicable": false,
    "passport_mandatory": false,
    "dob_applicable": {
      "adt": false,
      "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": 1200,
      "booking_fee": 200,
      "other_taxes": 100,
      "total_fare": 1799.14,
      "net_fare": 1799.14,
      "pax_count": 1
    },
    "total": {
      "base_fare": 1200,
      "booking_fee": 200,
      "other_taxes": 100,
      "total_fare": 1799.14,
      "net_fare": 1799.14,
      "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.