← all test cases

Bags and meals on a low-cost airline

DEL-BOM · one way · 1 adult

A direct low-cost flight: baggage per journey (journey_index) and meals per flight (journey_index and segment_index), each item with code, label and price.

  1. 1 Search: 265 options
  2. 2 Reprice: 1 items
  3. 3 Ancillaries: 21 items
▸2. RepricePOST /flights/reprice1 items
What this step returned: 1 items(click to expand)
  • 1 item(s) sent: option 38b6fe61… / price 6f82ddce…
  • Repriced option on journey_indexes [0]: 1 flight (IX 1463 DEL-NMI); multi-flight reprice: no
  • Fare Value PARTIALLY_REFUNDABLE: adult total 3,002, net 3,002; 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 3,002, net 3,002; itinerary_id expires at valid_till
  • 0 fare rule(s) in the reply
Request body
{
  "items": [
    {
      "option_id": "38b6fe61-593a-45f8-9a03-4e60ff2c1e20",
      "price_id": "6f82ddce-f121-4547-bf7e-2aa2ffabb40c"
    }
  ]
}
Reply
{
  "itinerary_id": "b2827387-ad61-4519-b371-7b0acdba0c8c",
  "valid_till": "2026-10-20T20:41:18+05:30",
  "results": [
    {
      "journey_indexes": [
        0
      ],
      "option_id": "38b6fe61-593a-45f8-9a03-4e60ff2c1e20",
      "segments": [
        {
          "segment_index": 0,
          "journey_index": 0,
          "from": "DEL",
          "to": "NMI",
          "airline_code": "IX",
          "airline_name": "Air India Express",
          "aircraft_type": "Airbus A32Y",
          "flight_number": "1463",
          "departure_time": "2026-11-19T06:00:00",
          "departure_terminal": "1",
          "arrival_time": "2026-11-19T08:05:00",
          "duration": 125
        }
      ],
      "fare": {
        "price_id": "6f82ddce-f121-4547-bf7e-2aa2ffabb40c",
        "adult": {
          "fare": {
            "base_fare": 899,
            "yq": 850,
            "airline_gst": 96,
            "booking_fee": 100,
            "other_taxes": 319,
            "total_fare": 3001.94,
            "net_fare": 3001.94,
            "pax_count": 1
          },
          "fare_ref": "Value",
          "refundable_type": "PARTIALLY_REFUNDABLE",
          "cabin_class": "Economy",
          "booking_class": "X",
          "fare_basis": "XNRA015",
          "baggage": {
            "hand": {
              "kg": 7
            },
            "checkin": {
              "kg": 15
            }
          }
        },
        "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": 899,
      "yq": 850,
      "airline_gst": 96,
      "booking_fee": 100,
      "other_taxes": 319,
      "total_fare": 3001.94,
      "net_fare": 3001.94,
      "pax_count": 1
    },
    "total": {
      "base_fare": 899,
      "yq": 850,
      "airline_gst": 96,
      "booking_fee": 100,
      "other_taxes": 319,
      "total_fare": 3001.94,
      "net_fare": 3001.94,
      "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/ancillaries21 items
What this step returned: 21 items(click to expand)
  • 1 flight(s) in segments[]: (journey 0, segment 0) IX 1463 DEL-NMI
  • 10 bags (per journey): journey 0: 10 items
  • bags: price from 2,100 to 18,750; free items: 0
  • 11 meals (per flight): (journey 0, segment 0): 11 items
  • meals: price from 100 to 600; free items: 0
  • No other items offered on this itinerary
Request body
{
  "itinerary_id": "b2827387-ad61-4519-b371-7b0acdba0c8c"
}
Reply
{
  "itinerary_id": "b2827387-ad61-4519-b371-7b0acdba0c8c",
  "segments": [
    {
      "journey_index": 0,
      "segment_index": 0,
      "airline_code": "IX",
      "flight_number": "1463",
      "from": "DEL",
      "to": "NMI"
    }
  ],
  "baggage": [
    {
      "journey_index": 0,
      "items": [
        {
          "code": "6654",
          "label": "CABIN BAGGAGE 5KGS",
          "price": 3500
        },
        {
          "code": "6655",
          "label": "CABIN BAGGAGE 3KGS",
          "price": 2100
        },
        {
          "code": "6656",
          "label": "XCESS BAGGAGE 25KG",
          "price": 18750
        },
        "… 7 more (open the viewer)"
      ]
    }
  ],
  "meal": [
    {
      "journey_index": 0,
      "segment_index": 0,
      "items": [
        {
          "code": "9874",
          "label": "Shondesh Tiramisu",
          "price": 250
        },
        {
          "code": "9875",
          "label": "Paneer Makhani with Jeera Aloo  Vegetable Pulao",
          "price": 600
        },
        {
          "code": "9876",
          "label": "Vegetable Manchurian with Fried Rice",
          "price": 600
        },
        "… 8 more (open the viewer)"
      ]
    }
  ],
  "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.