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. SearchPOST /flights/search215 options
What this step returned: 215 options(click to expand)
- 215 options in 1 group(s): journey_indexes [0] has 215 options
- Options by number of flights: 1 flight: 68, 2 flights: 147
- Airlines in the reply: AI (107 flights), 6E (66 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)
- 865 fare options in total; 48 distinct fare families (fare_ref)
- Cheapest adult total: 1,799 (Series Purchase)
- Fares with a meal included (has_meal): 158; with a free seat: 173
- Fares with check-in baggage included: 841; hand baggage only: 16; no baggage stated: 8
- Fares whose attributes differ between flights (varies_by_segment): 370; ask detail=segment to see them per flight
- Refundability: PARTIALLY_REFUNDABLE 529, not stated 189, NON_REFUNDABLE 147
- 49 distinct fare rules in fare_rules; 410 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 · 18279 ms · complete request body (collapsible viewer)
{
"segments": [
{
"from": "DEL",
"to": "BOM",
"date": "2026-11-19"
}
],
"adult": 1,
"child": 0,
"infant": 0,
"cabin_class": 1,
"detail": "segment"
}Reply
HTTP 200 · 18279 ms · complete response body (collapsible viewer)
{
"search_id": "7ecd1ad5-06aa-4765-9fd0-26f6e5e0442f",
"status": "completed",
"valid_till": "2026-10-20T21:10:13+05:30",
"fare_rules": {
"fr_1": {
"cancellation": [
{
"allowed": true,
"amount": 9798,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 4250,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_6": {
"cancellation": [
{
"allowed": true,
"amount": 5023.22,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Non-Refundable"
}
],
"date_change": [
{
"allowed": true,
"amount": 3506.78,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Changeable"
}
]
},
"fr_7": {
"cancellation": [
{
"allowed": true,
"amount": 3506.78,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Non-Refundable"
}
],
"date_change": [
{
"allowed": true,
"amount": 1042.56,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Changeable"
}
]
},
"fr_8": {
"cancellation": [
{
"allowed": true,
"amount": 1042.56,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Non-Refundable"
}
],
"date_change": [
{
"allowed": true,
"amount": 284.33,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Changeable"
}
]
},
"fr_9": {
"cancellation": [
{
"allowed": true,
"percent": 100,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non changeable"
},
{
"allowed": true,
"amount": 3000,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
]
},
"fr_10": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non refundable"
},
{
"allowed": true,
"amount": 3500,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 3,
"unit": "DAYS"
},
"text": "PerTicket"
},
{
"allowed": true,
"amount": 2500,
"from": {
"value": 3,
"unit": "DAYS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non changeable"
},
{
"allowed": true,
"amount": 1000,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 3,
"unit": "DAYS"
},
"text": "PerTicket"
},
{
"allowed": true,
"amount": 300,
"from": {
"value": 3,
"unit": "DAYS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
]
},
"fr_11": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non refundable"
},
{
"allowed": true,
"amount": 999,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non changeable"
},
{
"allowed": true,
"amount": 250,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
]
},
"fr_12": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non refundable"
},
{
"allowed": true,
"amount": 5000,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 2,
"unit": "HOURS"
},
"text": "Non changeable"
},
{
"allowed": true,
"amount": 3000,
"from": {
"value": 2,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
]
},
"fr_13": {
"cancellation": [
{
"allowed": true,
"amount": 5000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 3500,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_14": {
"cancellation": [
{
"allowed": true,
"amount": 3500,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 1000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_15": {
"cancellation": [
{
"allowed": true,
"amount": 999,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 250,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_23": {
"cancellation": [
{
"allowed": true,
"amount": 10000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 4000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
}
},
"results": [
{
"journey_indexes": [
0
],
"options": [
{
"option_id": "cdf5373d-e4e3-4dc2-8d1b-b50356569425",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_CCU_SG_263",
"from": "DEL",
"to": "CCU",
"airline_code": "SG",
"airline_name": "Spicejet",
"aircraft_type": "Boeing 73H",
"flight_number": "263",
"stops": 1,
"departure_time": "2026-11-19T07:30:00",
"departure_terminal": "1",
"arrival_time": "2026-11-19T10:00:00",
"duration": 150,
"connecting_time": 85
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "CCU_BOM_SG_454",
"from": "CCU",
"to": "BOM",
"airline_code": "SG",
"airline_name": "Spicejet",
"aircraft_type": "Boeing 737",
"flight_number": "454",
"departure_time": "2026-11-19T11:25:00",
"arrival_time": "2026-11-19T14:10:00",
"arrival_terminal": "1",
"duration": 165,
"connecting_time": 85
}
],
"fare_options": [
{
"price_id": "9125e91c-9194-4400-b2a2-e0c43d6ff3ac",
"fare_rules": {
"0": "fr_1"
},
"adult": {
"fare": {
"base_fare": 22464,
"yq": 4844,
"yr": 185,
"booking_fee": 100,
"other_taxes": 1852,
"total_fare": 29619.94,
"net_fare": 29619.94,
"pax_count": 1
},
"fare_ref": "Published",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "U",
"fare_basis": "UOWSAVER",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": true,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"adult": {
"fare_ref": "Published",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "U",
"fare_basis": "UOWSAVER",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
}
},
{
"journey_index": 0,
"segment_index": 1,
"adult": {
"fare_ref": "Published",
"cabin_class": "Economy",
"booking_class": "U",
"fare_basis": "UOWSAVER",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
}
}
]
}
]
},
{
"option_id": "8bc67508-4d47-4a3f-8410-83bcc1868046",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_BOM_AI_2963",
"from": "DEL",
"to": "BOM",
"airline_code": "AI",
"airline_name": "Air India",
"aircraft_type": "Airbus A320neo",
"flight_number": "2963",
"departure_time": "2026-11-19T09:00:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T11:15:00",
"arrival_terminal": "2",
"duration": 135
}
],
"fare_options": [
{
"price_id": "85693191-433b-4a98-9d89-57228d73db8e",
"fare_rules": {
"0": "fr_6"
},
"adult": {
"fare": {
"base_fare": 10762.96,
"yq": 853,
"booking_fee": 100,
"other_taxes": 255.9,
"total_fare": 13018.75,
"net_fare": 13018.75,
"pax_count": 1
},
"fare_ref": "Eco Value",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"baggage": {
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"adult": {
"fare_ref": "Eco Value",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"baggage": {
"checkin": {
"kg": 15
}
}
}
}
]
},
{
"price_id": "062ec694-db1e-4e8d-a931-435383ffde81",
"fare_rules": {
"0": "fr_7"
},
"adult": {
"fare": {
"base_fare": 11322.15,
"yq": 853,
"booking_fee": 100,
"other_taxes": 255.9,
"total_fare": 13606.37,
"net_fare": 13606.37,
"pax_count": 1
},
"fare_ref": "Eco Classic",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"baggage": {
"checkin": {
"kg": 20
}
}
},
"varies_by_segment": false,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"adult": {
"fare_ref": "Eco Classic",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"baggage": {
"checkin": {
"kg": 20
}
}
}
}
]
},
{
"price_id": "92ea8843-5678-4532-87b6-1bfdf44c69bd",
"fare_rules": {
"0": "fr_8"
},
"adult": {
"fare": {
"base_fare": 12552.36,
"yq": 853,
"booking_fee": 100,
"other_taxes": 255.9,
"total_fare": 14883.97,
"net_fare": 14883.97,
"pax_count": 1
},
"fare_ref": "Eco Flex",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"baggage": {
"checkin": {
"kg": 25
}
}
},
"varies_by_segment": false,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"adult": {
"fare_ref": "Eco Flex",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "Q",
"baggage": {
"checkin": {
"kg": 25
}
}
}
}
]
},
"… 12 more (open the viewer)"
]
},
{
"option_id": "917a4ddf-1aaf-4c8b-9431-ae0e7598d4d3",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_SIN_SQ_4807",
"from": "DEL",
"to": "SIN",
"airline_code": "SQ",
"airline_name": "Singapore Airlines",
"operating_airline_code": "AI",
"operating_airline_name": "Air India",
"aircraft_type": "Airbus A321",
"flight_number": "4807",
"stops": 1,
"departure_time": "2026-11-19T03:35:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T12:10:00",
"arrival_terminal": "2",
"duration": 365,
"connecting_time": 400
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "SIN_BOM_SQ_424",
"from": "SIN",
"to": "BOM",
"airline_code": "SQ",
"airline_name": "Singapore Airlines",
"aircraft_type": "Airbus A388",
"flight_number": "424",
"departure_time": "2026-11-19T18:50:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T21:50:00",
"arrival_terminal": "2",
"duration": 330,
"connecting_time": 400
}
],
"fare_options": [
{
"price_id": "300ec2b5-4cf9-4ad9-a10c-d16d75531ba1",
"has_meal": true,
"adult": {
"fare": {
"base_fare": 64015,
"yq": 10476,
"total_fare": 74491,
"net_fare": 74491,
"pax_count": 1
},
"fare_ref": "Economy Flexi",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "E",
"fare_basis": "ENCIIRA",
"baggage": {
"hand": {
"kg": 7,
"pieces": 1
},
"checkin": {
"kg": 30
}
}
},
"varies_by_segment": true,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"has_meal": true,
"adult": {
"fare_ref": "Economy Flexi",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "E",
"fare_basis": "ENCIIRA",
"baggage": {
"hand": {
"kg": 7,
"pieces": 1
},
"checkin": {
"kg": 30
}
}
}
},
{
"journey_index": 0,
"segment_index": 1,
"adult": {
"baggage": {
"hand": {
"kg": 7,
"pieces": 1
},
"checkin": {
"kg": 30
}
}
}
}
]
},
{
"price_id": "bc404f68-0c96-4f4f-a30a-80582ea53502",
"has_meal": true,
"adult": {
"fare": {
"base_fare": 115020,
"yq": 28220,
"total_fare": 143240,
"net_fare": 143240,
"pax_count": 1
},
"fare_ref": "Business Standard",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Business",
"booking_class": "U",
"fare_basis": "UNBIIRA",
"baggage": {
"hand": {
"kg": 7,
"pieces": 2
},
"checkin": {
"kg": 40
}
}
},
"varies_by_segment": true,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"has_meal": true,
"adult": {
"fare_ref": "Business Standard",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Business",
"booking_class": "U",
"fare_basis": "UNBIIRA",
"baggage": {
"hand": {
"kg": 7,
"pieces": 2
},
"checkin": {
"kg": 40
}
}
}
},
{
"journey_index": 0,
"segment_index": 1,
"adult": {
"baggage": {
"hand": {
"kg": 7,
"pieces": 2
},
"checkin": {
"kg": 40
}
}
}
}
]
},
{
"price_id": "33723d19-eca9-43a5-b335-1e23815a0600",
"has_meal": true,
"adult": {
"fare": {
"base_fare": 142485,
"yq": 33164,
"total_fare": 175649,
"net_fare": 175649,
"pax_count": 1
},
"fare_ref": "Business Flexi",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Business",
"booking_class": "J",
"fare_basis": "JNBIIRA",
"baggage": {
"hand": {
"kg": 7,
"pieces": 2
},
"checkin": {
"kg": 40
}
}
},
"varies_by_segment": true,
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"has_meal": true,
"adult": {
"fare_ref": "Business Flexi",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Business",
"booking_class": "J",
"fare_basis": "JNBIIRA",
"baggage": {
"hand": {
"kg": 7,
"pieces": 2
},
"checkin": {
"kg": 40
}
}
}
},
{
"journey_index": 0,
"segment_index": 1,
"adult": {
"baggage": {
"hand": {
"kg": 7,
"pieces": 2
},
"checkin": {
"kg": 40
}
}
}
}
]
},
"… 7 more (open the viewer)"
]
}
]
}
]
}This view shows 3 of the 215 options in the reply, chosen so that each of these is present. The fare_rules table shows the 12 rules these options point at, of 49 in the reply. For the entire JSON, open the raw record.
- An option with one flight (a direct flight). → group 0: option 3 (AI 2963 DEL-BOM)
- An option with two flights (a connection). → group 0: option 0 (SG 263 DEL-CCU + SG 454 CCU-BOM)
- An option where a flight is operated by another airline than the one selling it (operating_airline_code present). → group 0: option 15 (SQ 4807 DEL-SIN + SQ 424 SIN-BOM)
- An option with at least one fare that includes a meal (has_meal true). → group 0: option 3 (AI 2963 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 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
HTTP 200 · 3882 ms · complete request body (collapsible viewer)
{
"items": [
{
"option_id": "0cf2ee70-b51a-4e63-a4c4-cbca83270eb3",
"price_id": "c723a668-4534-4b39-9fe8-0fcb25f6d967"
}
]
}Reply
HTTP 200 · 3882 ms · complete response body (collapsible viewer)
{
"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
| 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.