Search without fare rules (include_fare_rules: false)
DEL-BOM · one way · 1 adult
include_fare_rules: false leaves the fare_rules table out of the reply and off every fare: a smaller reply. Reprice still returns the final rules.
▸1. SearchPOST /flights/search265 options
What this step returned: 265 options(click to expand)
- 265 options in 1 group(s): journey_indexes [0] has 265 options
- Options by number of flights: 1 flight: 81, 2 flights: 184
- Airlines in the reply: 6E (153 flights), AI (107 flights), IX (60 flights), H1 (38 flights), SG (32 flights), EK (20 flights), EY (16 flights), SQ (14 flights), QP (6 flights), WY (2 flights), 9I (1 flights)
- 999 fare options in total; 50 distinct fare families (fare_ref)
- Cheapest adult total: 1,799 (Series Purchase)
- Fares with a meal included (has_meal): 155; with a free seat: 173
- Fares with check-in baggage included: 975; hand baggage only: 16; no baggage stated: 8
- Fares whose attributes differ between flights (varies_by_segment): 454; ask detail=segment to see them per flight
- Refundability: PARTIALLY_REFUNDABLE 665, not stated 189, NON_REFUNDABLE 145
- 0 distinct fare rules in fare_rules; 999 fares without a rule known at search
- Reply carries valid_till (option_id and price_id expire then); request: 1 adult, 0 child, 0 infant, cabin_class 1
Request body
HTTP 200 · 13327 ms · complete request body (collapsible viewer)
{
"segments": [
{
"from": "DEL",
"to": "BOM",
"date": "2026-11-19"
}
],
"adult": 1,
"child": 0,
"infant": 0,
"cabin_class": 1,
"include_fare_rules": false
}Reply
HTTP 200 · 13327 ms · complete response body (collapsible viewer)
{
"search_id": "1da619d5-3711-451f-a0ad-b152334af58d",
"status": "completed",
"valid_till": "2026-10-20T21:10:31+05:30",
"results": [
{
"journey_indexes": [
0
],
"options": [
{
"option_id": "26a279d8-bbd5-4a31-9f99-bfdb337426c0",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_BOM_AI_2678",
"from": "DEL",
"to": "BOM",
"airline_code": "AI",
"airline_name": "Air India",
"aircraft_type": "Airbus A320neo",
"flight_number": "2678",
"departure_time": "2026-11-19T09:30:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T11:50:00",
"arrival_terminal": "2",
"duration": 140
}
],
"fare_options": [
{
"price_id": "f438db6d-230d-4de6-b32a-bfd6f7e0eb2e",
"adult": {
"fare": {
"base_fare": 11657.66,
"yq": 853,
"booking_fee": 100,
"other_taxes": 255.9,
"total_fare": 13951.36,
"net_fare": 13951.36,
"pax_count": 1
},
"fare_ref": "Eco Value",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "K",
"baggage": {
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
{
"price_id": "8c39c153-69ef-4fcf-9a7c-e878c83b5097",
"adult": {
"fare": {
"base_fare": 12328.69,
"yq": 853,
"booking_fee": 100,
"other_taxes": 255.9,
"total_fare": 14650.82,
"net_fare": 14650.82,
"pax_count": 1
},
"fare_ref": "Eco Classic",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "K",
"baggage": {
"checkin": {
"kg": 20
}
}
},
"varies_by_segment": false
},
{
"price_id": "a6ac42d3-7a69-4951-99a4-a61e4b5b67de",
"adult": {
"fare": {
"base_fare": 13558.9,
"yq": 853,
"booking_fee": 100,
"other_taxes": 255.9,
"total_fare": 15937.9,
"net_fare": 15937.9,
"pax_count": 1
},
"fare_ref": "Eco Flex",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "K",
"baggage": {
"checkin": {
"kg": 25
}
}
},
"varies_by_segment": false
},
"… 12 more (open the viewer)"
]
},
{
"option_id": "8acf3a12-0372-49ee-afae-2560e8372e2c",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_GOI_AI_487",
"from": "DEL",
"to": "GOI",
"airline_code": "AI",
"airline_name": "Air India",
"aircraft_type": "Airbus A320",
"flight_number": "487",
"stops": 1,
"departure_time": "2026-11-19T16:00:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T18:40:00",
"duration": 160,
"connecting_time": 1120
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "GOI_BOM_AI_2842",
"from": "GOI",
"to": "BOM",
"airline_code": "AI",
"airline_name": "Air India",
"aircraft_type": "Airbus A321",
"flight_number": "2842",
"departure_time": "2026-11-20T13:20:00",
"arrival_time": "2026-11-20T14:50:00",
"arrival_terminal": "2",
"duration": 90,
"connecting_time": 1120
}
],
"fare_options": [
{
"price_id": "244c3f47-53a2-4480-af7e-a75acb2c933d",
"has_free_seat": true,
"adult": {
"fare": {
"base_fare": 15907,
"yq": 1600,
"yr": 340,
"booking_fee": 100,
"other_taxes": 1370,
"total_fare": 19491.94,
"net_fare": 19491.94,
"pax_count": 1
},
"fare_ref": "ECO VALUE",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"fare_basis": "QU1YXSII",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": true
}
]
},
{
"option_id": "8f37e863-b7ae-4557-9dc5-0a8f2c40d6fa",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_DXB_EK_2125",
"from": "DEL",
"to": "DXB",
"airline_code": "EK",
"airline_name": "Emirates",
"operating_airline_code": "FZ",
"operating_airline_name": "Fly Dubai",
"aircraft_type": "Boeing 73H",
"flight_number": "2125",
"stops": 1,
"departure_time": "2026-11-19T10:55:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T13:35:00",
"arrival_terminal": "2",
"duration": 250,
"connecting_time": 480
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "DXB_BOM_EK_500",
"from": "DXB",
"to": "BOM",
"airline_code": "EK",
"airline_name": "Emirates",
"aircraft_type": "Airbus A388",
"flight_number": "500",
"stops": 1,
"departure_time": "2026-11-19T21:35:00",
"departure_terminal": "3",
"arrival_time": "2026-11-20T02:15:00",
"arrival_terminal": "2",
"duration": 190
}
],
"fare_options": [
{
"price_id": "c119383a-7c05-4b0c-8616-51ea52238694",
"has_meal": true,
"adult": {
"fare": {
"base_fare": 16578.52,
"yq": 9667.34,
"other_taxes": 3923.81,
"total_fare": 33445.19,
"net_fare": 33445.19,
"pax_count": 1
},
"fare_ref": "Eco Saver",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "T",
"baggage": {
"checkin": {
"kg": 25
}
}
},
"varies_by_segment": true
},
{
"price_id": "bda53110-f63b-4ec7-8358-a9b825543fa9",
"has_meal": true,
"adult": {
"fare": {
"base_fare": 30446.4,
"yq": 9667.34,
"other_taxes": 3923.81,
"total_fare": 47900.69,
"net_fare": 47900.69,
"pax_count": 1
},
"fare_ref": "Eco Flex",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "K",
"baggage": {
"checkin": {
"kg": 30
}
}
},
"varies_by_segment": true
},
{
"price_id": "0313039b-9fca-4a81-8f27-b2d0c6fdfb57",
"has_meal": true,
"adult": {
"fare": {
"base_fare": 57622.97,
"yq": 9667.34,
"other_taxes": 3923.81,
"total_fare": 76233.55,
"net_fare": 76233.55,
"pax_count": 1
},
"fare_ref": "Eco Special",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "X",
"baggage": {
"checkin": {
"kg": 35
}
}
},
"varies_by_segment": true
}
]
}
]
}
]
}This view shows 3 of the 265 options in the reply, chosen so that each of these is present. For the entire JSON, open the raw record.
- An option with one flight (a direct flight). → group 0: option 0 (AI 2678 DEL-BOM)
- An option with two flights (a connection). → group 0: option 1 (AI 487 DEL-GOI + AI 2842 GOI-BOM)
- An option where a flight is operated by another airline than the one selling it (operating_airline_code present). → group 0: option 32 (EK 2125 DEL-DXB + EK 500 DXB-BOM)
- An option with at least one fare that includes a meal (has_meal true). → group 0: option 0 (AI 2678 DEL-BOM)
Keys and what they mean
Request
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| segments[] | array | required, 1 to 6 | must read | The legs you search: one for one way, two for a return (second from the destination back), up to six for a multi-city trip. |
| segments[].from | string | required | must read | Departure airport, IATA code. |
| segments[].to | string | required | must read | Arrival airport, IATA code. |
| segments[].date | date | required | must read | Departure date, YYYY-MM-DD, local to the departure airport. |
| adult | integer | required, 1 to 9 | must read | Adults travelling. child and infant default to 0; an infant needs an adult. |
| cabin_class | integer | optional | useful | 1 economy (default), 2 premium economy, 3 business, 4 first. |
| detail | string | optional | useful | journey (default) or segment. segment adds segments[] inside every fare option with the fare attributes per flight. |
| include_fare_rules | boolean | optional, default true | informational | false leaves fare_rules out of the reply and off every fare; smaller reply. |
| Total: 8 keys | ||||
Reply
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| search_id | string | always | informational | Id of this search, for support questions. |
| valid_till | datetime | always | must read | Until when an option_id and price_id of this reply can be sent to reprice. After it, search again. |
| fare_rules | object | unless include_fare_rules is false | useful | Every distinct fare rule of the reply keyed by id (fr_1, fr_2, …). Fares point at them; ids mean nothing outside this reply. |
| results[] | array | always | must read | One group per set of journeys the fares cover. Pick one option and one fare from each group until every journey of your request is covered. |
| results[].journey_indexes | array of integer | always | must read | Which journeys of your request this group's fares cover: [0] onward only, [1] return only, [0, 1] a combined fare for both. |
| results[].options[].option_id | string | always | must read | Names the flights of this option. Send it to reprice with the price_id of the chosen fare. |
| results[].options[].segments[] | array | always | must read | The flights of this option in order, each named by (journey_index, segment_index); segment_index restarts at 0 in every journey. |
| results[].options[].segments[].operating_airline_code | string | only on a codeshare | useful | The airline that flies the aircraft when it differs from airline_code, the airline selling the seat. Show it to the traveller. |
| results[].options[].fare_options[] | array | always | must read | The fares sold on exactly these flights. Each prices the whole option once; no amount appears anywhere else. |
| results[].options[].fare_options[].price_id | string | always | must read | Names this fare. Send it to reprice with the option_id. |
| results[].options[].fare_options[].adult | object | always | must read | What this fare gives an adult: fare (the price for the whole option), fare_ref, refundable_type, cabin_class, booking_class, fare_basis, baggage. child and infant appear only when requested. |
| results[].options[].fare_options[].adult.fare.total_fare | number | always | must read | What the traveller pays for one adult on this option, taxes included. |
| results[].options[].fare_options[].adult.fare.net_fare | number | always | must read | What you pay us for one adult: total_fare less your commission. |
| results[].options[].fare_options[].adult.baggage | object | when the airline states it | useful | Allowance included in the fare: hand and checkin, each {kg} and/or {pieces}. Absent = not stated. |
| results[].options[].fare_options[].fare_rules | object | when a rule is known at search | useful | Journey index → id in the top-level fare_rules. A missing index has no rule known at search; the reprice reply carries the final rules. |
| results[].options[].fare_options[].varies_by_segment | boolean | always | informational | true when a later flight of this fare differs from the first in cabin, meal, booking class, fare basis or baggage. Ask detail=segment to see them per flight. |
| Total: 16 keys | ||||
Errors this call answers with (3)
| HTTP | code | message | detail | when |
|---|---|---|---|---|
| 401 | 9001 | Authentication required | Invalid token | Missing, expired or foreign token; also when the API cannot be reached. |
| 400 | 5100 | Invalid search request | cabin_class must be 1 (economy), 2 (premium), 3 (business), or 4 (first) | errors[] has field cabin_class, rule one_of. Same for fare_types and the engine's own checks (dates, airport codes, pax counts). |
| 500 | 9000 | Something went wrong |
Questions developers ask (4)
- What do I send to reprice for a domestic return?
- Two items: one option and one fare from group [0] (onward) and one from group [1] (return). An international return has one group [0, 1] and one item.
- Why does commission not appear on my fares?
- Zero amounts are left out. commission appears only when a commission rule applies to your account; net_fare is then total_fare less it.
- How long can I use an option_id and price_id?
- Until valid_till of the search reply. After it, search again.
- What does varies_by_segment true mean?
- A later flight of the fare differs from the first in cabin, meal, booking class, fare basis or baggage. Send detail=segment to see every flight.
▸2. RepricePOST /flights/reprice1 items
What this step returned: 1 items(click to expand)
- 1 item(s) sent: option f162dc32… / price 488573ec…
- 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
HTTP 200 · 4055 ms · complete request body (collapsible viewer)
{
"items": [
{
"option_id": "f162dc32-8b9d-4db4-ad17-365b5253e7f2",
"price_id": "488573ec-4966-4439-bf62-3dfd9e0fd0a7"
}
]
}Reply
HTTP 200 · 4055 ms · complete response body (collapsible viewer)
{
"itinerary_id": "502e6dd8-832c-4dd5-b6c0-4f648d21c2df",
"valid_till": "2026-10-20T20:40:35+05:30",
"results": [
{
"journey_indexes": [
0
],
"option_id": "f162dc32-8b9d-4db4-ad17-365b5253e7f2",
"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": "488573ec-4966-4439-bf62-3dfd9e0fd0a7",
"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
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| items[] | array | required, one per group | must read | One 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_id | string | required | must read | The option_id from the search reply. |
| items[].price_id | string | required | must read | The 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
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| itinerary_id | string | always | must read | Names the repriced itinerary. Send it to ancillaries, seat map and book. |
| valid_till | datetime | always | must read | Until when the itinerary_id can be booked. After it, book answers 410: reprice again. |
| results[] | array | always | must read | One entry per item sent: journey_indexes, option_id, the flights (segments) and the one fare, priced again. |
| results[].segments[] | array | always | must read | The flights in order, each named by (journey_index, segment_index); segment_index restarts at 0 in every journey. |
| results[].fare | object | always | must read | The 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.total | object | always | must read | The 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) | object | always (child, infant when requested) | useful | The 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_requirements | object | always | must read | What 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_hold | boolean | always | must read | true when this fare may be booked on hold (book with is_hold true); false: book directly, paid at once. |
| fare_rules | object | when known | useful | The 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[] | array | only when the price changed | must read | One 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)
| HTTP | code | message | detail | when |
|---|---|---|---|---|
| 401 | 9001 | Authentication required | Invalid token | |
| 400 | 5100 | Invalid search request | option_id and price_id are required | Also 'each review item needs option_id and price_id'. |
| 404 | 5103 | Flight not found | option_id or price_id not in a stored search. | |
| 410 | 5102 | Search results have expired | ||
| 502 | 5001 | The airline or supplier could not complete the request | Reprice failed at the airline. | |
| 504 | 5002 | A 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.