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. 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 (108 flights), IX (60 flights), H1 (37 flights), SG (32 flights), EK (20 flights), EY (16 flights), SQ (14 flights), QP (6 flights), WY (2 flights), 9I (1 flights)
- 1001 fare options in total; 50 distinct fare families (fare_ref)
- Cheapest adult total: 1,799 (Series Purchase)
- Fares with a meal included (has_meal): 157; with a free seat: 173
- Fares with check-in baggage included: 977; hand baggage only: 16; no baggage stated: 8
- Fares whose attributes differ between flights (varies_by_segment): 456; ask detail=segment to see them per flight
- Refundability: PARTIALLY_REFUNDABLE 665, not stated 189, NON_REFUNDABLE 147
- 49 distinct fare rules in fare_rules; 546 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 · 19819 ms · complete request body (collapsible viewer)
{
"segments": [
{
"from": "DEL",
"to": "BOM",
"date": "2026-11-19"
}
],
"adult": 1,
"child": 0,
"infant": 0,
"cabin_class": 1
}Reply
HTTP 200 · 19819 ms · complete response body (collapsible viewer)
{
"search_id": "41c0889d-8084-43c3-8f57-fdb4f098ce07",
"status": "completed",
"valid_till": "2026-10-20T21:05:55+05:30",
"fare_rules": {
"fr_1": {
"cancellation": [
{
"allowed": true,
"amount": 10000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 7000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_2": {
"cancellation": [
{
"allowed": true,
"amount": 7000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 2000,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_3": {
"cancellation": [
{
"allowed": true,
"amount": 1998,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure"
}
],
"date_change": [
{
"allowed": true,
"amount": 500,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Reissue"
}
]
},
"fr_4": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 3,
"unit": "HOURS"
},
"text": "NON-REFUNDABLE"
},
{
"allowed": true,
"amount": 4999,
"from": {
"value": 3,
"unit": "HOURS"
},
"to": {
"value": 24,
"unit": "HOURS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
},
{
"allowed": true,
"amount": 4999,
"from": {
"value": 24,
"unit": "HOURS"
},
"to": {
"value": 72,
"unit": "HOURS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
},
"… 1 more (open the viewer)"
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 3,
"unit": "HOURS"
},
"text": "NON-REFUNDABLE"
},
{
"allowed": true,
"amount": 3499,
"from": {
"value": 3,
"unit": "HOURS"
},
"to": {
"value": 72,
"unit": "HOURS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
},
{
"allowed": true,
"amount": 3499,
"from": {
"value": 72,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
}
]
},
"fr_5": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 3,
"unit": "HOURS"
},
"text": "NON-REFUNDABLE"
},
{
"allowed": true,
"amount": 3499,
"from": {
"value": 3,
"unit": "HOURS"
},
"to": {
"value": 24,
"unit": "HOURS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
},
{
"allowed": true,
"amount": 3499,
"from": {
"value": 24,
"unit": "HOURS"
},
"to": {
"value": 72,
"unit": "HOURS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
},
"… 1 more (open the viewer)"
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 3,
"unit": "HOURS"
},
"text": "NON-REFUNDABLE"
},
{
"allowed": true,
"amount": 999,
"from": {
"value": 3,
"unit": "HOURS"
},
"to": {
"value": 72,
"unit": "HOURS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
},
{
"allowed": true,
"amount": 299,
"from": {
"value": 72,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "OR BASE FARE + FUEL SURCHARGE, WHICHEVER IS LOWER"
}
]
},
"fr_7": {
"cancellation": [
{
"allowed": true,
"amount": 9477.77,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Non-Refundable"
}
],
"date_change": [
{
"allowed": true,
"amount": 0,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Changeable"
}
]
},
"fr_8": {
"cancellation": [
{
"allowed": true,
"amount": 4738.89,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Refundable"
}
],
"date_change": [
{
"allowed": true,
"amount": 0,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Changeable"
}
]
},
"fr_9": {
"cancellation": [
{
"allowed": true,
"amount": 0,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Refundable"
}
],
"date_change": [
{
"allowed": true,
"amount": 0,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Changeable"
}
]
}
},
"results": [
{
"journey_indexes": [
0
],
"options": [
{
"option_id": "e5b7a311-f605-43f4-8faa-36d30dfa45ff",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_LKO_AI_1710",
"from": "DEL",
"to": "LKO",
"airline_code": "AI",
"airline_name": "Air India",
"aircraft_type": "Airbus A320neo",
"flight_number": "1710",
"stops": 1,
"departure_time": "2026-11-19T19:00:00",
"departure_terminal": "2",
"arrival_time": "2026-11-19T20:10:00",
"arrival_terminal": "3",
"duration": 70,
"connecting_time": 95
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "LKO_BOM_AI_489",
"from": "LKO",
"to": "BOM",
"airline_code": "AI",
"airline_name": "Air India",
"aircraft_type": "Airbus A320neo",
"flight_number": "489",
"departure_time": "2026-11-19T21:45:00",
"departure_terminal": "3",
"arrival_time": "2026-11-20T00:05:00",
"arrival_terminal": "2",
"duration": 140,
"connecting_time": 95,
"next_day": 1
}
],
"fare_options": [
{
"price_id": "236a760b-c1f9-4ce7-b8f8-9206c4bd5b11",
"fare_rules": {
"0": "fr_1"
},
"has_free_seat": true,
"adult": {
"fare": {
"base_fare": 12136,
"yq": 1250,
"yr": 340,
"booking_fee": 100,
"other_taxes": 1164,
"total_fare": 15164.94,
"net_fare": 15164.94,
"pax_count": 1
},
"fare_ref": "ECO VALUE",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "W",
"fare_basis": "WU1YXSII",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": true
},
{
"price_id": "3a8bc315-683b-488e-ba1c-1d19dd819a09",
"fare_rules": {
"0": "fr_2"
},
"has_free_seat": true,
"adult": {
"fare": {
"base_fare": 13136,
"yq": 1250,
"yr": 340,
"booking_fee": 100,
"other_taxes": 1214,
"total_fare": 16214.94,
"net_fare": 16214.94,
"pax_count": 1
},
"fare_ref": "ECO CLASSIC",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "W",
"fare_basis": "WU1YWSII",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 20
}
}
},
"varies_by_segment": false
},
{
"price_id": "8bb2adbc-b702-4162-a345-bc537091bbbf",
"fare_rules": {
"0": "fr_3"
},
"has_free_seat": true,
"adult": {
"fare": {
"base_fare": 15136,
"yq": 1250,
"yr": 340,
"booking_fee": 100,
"other_taxes": 1314,
"total_fare": 18314.94,
"net_fare": 18314.94,
"pax_count": 1
},
"fare_ref": "ECO FLEX",
"refundable_type": "PARTIALLY_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "W",
"fare_basis": "WU1YFSII",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 25
}
}
},
"varies_by_segment": false
},
"… 4 more (open the viewer)"
]
},
{
"option_id": "526f4380-97bc-4bc9-85ed-b3f66043d42b",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "HDO_BOM_6E_5175",
"from": "HDO",
"to": "BOM",
"airline_code": "6E",
"airline_name": "IndiGo Airlines",
"aircraft_type": "Airbus A320",
"flight_number": "5175",
"departure_time": "2026-11-19T12:55:00",
"arrival_time": "2026-11-19T14:55:00",
"arrival_terminal": "1",
"duration": 120
}
],
"fare_options": [
{
"price_id": "fd022eff-e7ab-40a2-959b-f89de6cc9499",
"fare_rules": {
"0": "fr_4"
},
"adult": {
"fare": {
"base_fare": 5366,
"booking_fee": 200,
"other_taxes": 2569,
"total_fare": 8434.14,
"net_fare": 8434.14,
"pax_count": 1
},
"fare_ref": "Regular Fare",
"cabin_class": "Economy",
"booking_class": "R",
"fare_basis": "P0IP",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
{
"price_id": "436bcea1-25c5-423f-a54f-526f462640db",
"fare_rules": {
"0": "fr_5"
},
"adult": {
"fare": {
"base_fare": 5666,
"booking_fee": 200,
"other_taxes": 2584,
"total_fare": 8749.14,
"net_fare": 8749.14,
"pax_count": 1
},
"fare_ref": "Flexi Fare",
"cabin_class": "Economy",
"booking_class": "J",
"fare_basis": "PUIP",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
{
"price_id": "35cb22ca-879a-4039-ab73-8e51ed091bc1",
"adult": {
"fare": {
"base_fare": 6866,
"booking_fee": 200,
"other_taxes": 2644,
"total_fare": 10009.14,
"net_fare": 10009.14,
"pax_count": 1
},
"fare_ref": "Super 6E Fare",
"cabin_class": "Economy",
"booking_class": "O",
"fare_basis": "PLIP",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
"… 2 more (open the viewer)"
]
},
{
"option_id": "8f5a8231-4887-4370-8eeb-b855c97abd83",
"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": 125
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "DXB_BOM_EK_508",
"from": "DXB",
"to": "BOM",
"airline_code": "EK",
"airline_name": "Emirates",
"aircraft_type": "Boeing 77W",
"flight_number": "508",
"stops": 1,
"departure_time": "2026-11-19T15:40:00",
"departure_terminal": "3",
"arrival_time": "2026-11-19T20:25:00",
"arrival_terminal": "2",
"duration": 195
}
],
"fare_options": [
{
"price_id": "c8211453-654e-45a1-87aa-692b7b4877e0",
"fare_rules": {
"0": "fr_7"
},
"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": "c7b1b1a2-02e6-49b3-b1be-711018e6d7c7",
"fare_rules": {
"0": "fr_8"
},
"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": "7afafc31-5e8d-4ceb-9037-ae83555c9d15",
"fare_rules": {
"0": "fr_9"
},
"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. The fare_rules table shows the 8 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 1 (6E 5175 HDO-BOM)
- An option with two flights (a connection). → group 0: option 0 (AI 1710 DEL-LKO + AI 489 LKO-BOM)
- An option where a flight is operated by another airline than the one selling it (operating_airline_code present). → group 0: option 7 (EK 2125 DEL-DXB + EK 508 DXB-BOM)
- An option with at least one fare that includes a meal (has_meal true). → group 0: option 7 (EK 2125 DEL-DXB + EK 508 DXB-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 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
HTTP 200 · 5600 ms · complete request body (collapsible viewer)
{
"items": [
{
"option_id": "38b6fe61-593a-45f8-9a03-4e60ff2c1e20",
"price_id": "6f82ddce-f121-4547-bf7e-2aa2ffabb40c"
}
]
}Reply
HTTP 200 · 5600 ms · complete response body (collapsible viewer)
{
"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
| 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.
▸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
HTTP 200 · 129 ms · complete request body (collapsible viewer)
{
"itinerary_id": "b2827387-ad61-4519-b371-7b0acdba0c8c"
}Reply
HTTP 200 · 129 ms · complete response body (collapsible viewer)
{
"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
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| itinerary_id | string | required | must read | The itinerary_id from reprice. An expired one answers 404: reprice again. |
| Total: 1 keys | ||||
Reply
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| segments[] | array | always | useful | The flights of the itinerary, each named by (journey_index, segment_index), with airline_code, flight_number, from and to. |
| baggage[] | array | always (empty when none) | must read | Extra bags per journey: journey_index and items. A bag covers every flight of its journey, so it has no segment_index. |
| meal[] | array | always (empty when none) | must read | Meals per flight: journey_index, segment_index and items. |
| other[] | array | always (empty when none) | useful | Other items per flight (priority check-in, bundles): journey_index, segment_index and items. |
| <list>[].items[] | array | always | must read | What can be bought: code (send it to book), label (show it), price (per passenger, INR). |
| Total: 5 keys | ||||
Errors this call answers with (4)
| HTTP | code | message | detail | when |
|---|---|---|---|---|
| 401 | 9001 | Authentication required | Invalid token | |
| 400 | 5100 | Invalid search request | itinerary_id is required | errors[]: field itinerary_id, rule required. |
| 404 | 5104 | Itinerary not found or expired | Unknown or expired itinerary_id. | |
| 502 | 5001 | The 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.