Direct booking (paid, no hold) with ancillaries on a two-flight journey
DEL-BOM · one way · 2 adults · booked directly, no hold
As the hold case on a two-flight journey, but booked directly: paid and ticketed at once, no hold.
- 1 Search: 261 options
- 2 Reprice: 1 items
- 3 Ancillaries: 66 items
- 4 Seat map: 346 seats
- 5 Book directly (paid): 2 passengers
- 6 Booking details: 2 passengers
▸1. SearchPOST /flights/search261 options
What this step returned: 261 options(click to expand)
- 261 options in 1 group(s): journey_indexes [0] has 261 options
- Options by number of flights: 1 flight: 80, 2 flights: 181
- Airlines in the reply: 6E (152 flights), AI (101 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)
- 1002 fare options in total; 50 distinct fare families (fare_ref)
- Cheapest adult total: 5,092 (Super Saver)
- Fares with a meal included (has_meal): 156; with a free seat: 173
- Fares with check-in baggage included: 979; hand baggage only: 15; no baggage stated: 8
- Fares whose attributes differ between flights (varies_by_segment): 455; ask detail=segment to see them per flight
- Refundability: PARTIALLY_REFUNDABLE 674, not stated 192, NON_REFUNDABLE 136
- 50 distinct fare rules in fare_rules; 556 fares without a rule known at search
- Reply carries valid_till (option_id and price_id expire then); request: 2 adult, 0 child, 0 infant, cabin_class 1
Request body
HTTP 200 · 13681 ms · complete request body (collapsible viewer)
{
"segments": [
{
"from": "DEL",
"to": "BOM",
"date": "2026-11-19"
}
],
"adult": 2,
"child": 0,
"infant": 0,
"cabin_class": 1
}Reply
HTTP 200 · 13681 ms · complete response body (collapsible viewer)
{
"search_id": "aaf59368-ca22-4bd9-952c-8770f6901e14",
"status": "completed",
"valid_till": "2026-10-20T23:51:30+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_3": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "Before departure — Non-Refundable"
}
],
"date_change": []
},
"fr_4": {
"cancellation": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 1,
"unit": "HOURS"
},
"text": "Non refundable"
},
{
"allowed": true,
"amount": 0,
"from": {
"value": 1,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
],
"date_change": [
{
"allowed": false,
"from": {
"value": 0,
"unit": "HOURS"
},
"to": {
"value": 1,
"unit": "HOURS"
},
"text": "Non changeable"
},
{
"allowed": true,
"amount": 0,
"from": {
"value": 1,
"unit": "HOURS"
},
"to": {
"value": 365,
"unit": "DAYS"
},
"text": "PerTicket"
}
]
},
"fr_5": {
"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_6": {
"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_7": {
"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": "1fa7b1c6-27ab-4283-a1c8-275e805bfed2",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_BLR_SG_143",
"from": "DEL",
"to": "BLR",
"airline_code": "SG",
"airline_name": "Spicejet",
"aircraft_type": "73G",
"flight_number": "143",
"stops": 1,
"departure_time": "2026-11-19T21:00:00",
"departure_terminal": "1D",
"arrival_time": "2026-11-19T23:50:00",
"arrival_terminal": "1",
"duration": 170,
"connecting_time": 1285
},
{
"segment_index": 1,
"journey_index": 0,
"segment_id": "BLR_BOM_SG_268",
"from": "BLR",
"to": "BOM",
"airline_code": "SG",
"airline_name": "Spicejet",
"aircraft_type": "Boeing 73H",
"flight_number": "268",
"departure_time": "2026-11-20T21:15:00",
"departure_terminal": "1",
"arrival_time": "2026-11-20T23:20:00",
"arrival_terminal": "1",
"duration": 125,
"connecting_time": 1285
}
],
"fare_options": [
{
"price_id": "2abeb9e3-0742-482c-aff7-11183cbca932",
"fare_rules": {
"0": "fr_1"
},
"adult": {
"fare": {
"base_fare": 43844,
"yq": 9088,
"yr": 370,
"booking_fee": 200,
"other_taxes": 3620,
"total_fare": 57471.88,
"net_fare": 57471.88,
"pax_count": 2
},
"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
}
]
},
{
"option_id": "eb8aaeef-1463-41d0-b481-5f7b39d5a385",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_BOM_IX_1235",
"from": "DEL",
"to": "BOM",
"airline_code": "IX",
"airline_name": "Air India Express",
"aircraft_type": "Boeing 7M8",
"flight_number": "1235",
"departure_time": "2026-11-19T23:30:00",
"departure_terminal": "1",
"arrival_time": "2026-11-20T01:55:00",
"arrival_terminal": "2",
"duration": 145,
"next_day": 1
}
],
"fare_options": [
{
"price_id": "52b5823f-7db7-4221-aed3-f85d76260095",
"adult": {
"fare": {
"base_fare": 8000,
"yq": 1700,
"booking_fee": 200,
"other_taxes": 682,
"total_fare": 12057.88,
"net_fare": 12057.88,
"pax_count": 2
},
"fare_ref": "Value",
"cabin_class": "Economy",
"booking_class": "EC",
"fare_basis": "KNRA000",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
{
"price_id": "0e387736-997d-4793-a197-6af5358b9236",
"adult": {
"fare": {
"base_fare": 10250,
"yq": 1700,
"booking_fee": 200,
"other_taxes": 794,
"total_fare": 14419.88,
"net_fare": 14419.88,
"pax_count": 2
},
"fare_ref": "Corporate Value",
"cabin_class": "Economy",
"booking_class": "SM",
"fare_basis": "KNSA000",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
{
"price_id": "6e6becbf-d7ba-40d5-9e6a-35aa040cd9ae",
"adult": {
"fare": {
"base_fare": 10250,
"yq": 1700,
"booking_fee": 200,
"other_taxes": 794,
"total_fare": 14419.88,
"net_fare": 14419.88,
"pax_count": 2
},
"fare_ref": "Classic",
"cabin_class": "Economy",
"booking_class": "OF",
"fare_basis": "KNOA000",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
}
},
"varies_by_segment": false
},
"… 5 more (open the viewer)"
]
},
{
"option_id": "938a64be-0f0d-45e4-a775-9c337129633c",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"segment_id": "DEL_BOM_H1_1001",
"from": "DEL",
"to": "BOM",
"airline_code": "H1",
"airline_name": "Hahn Air",
"operating_airline_code": "SG",
"operating_airline_name": "Spicejet",
"aircraft_type": "Boeing 737",
"flight_number": "1001",
"departure_time": "2026-11-19T05:45:00",
"departure_terminal": "1D",
"arrival_time": "2026-11-19T08:05:00",
"arrival_terminal": "1",
"duration": 140
}
],
"fare_options": [
{
"price_id": "d2055b31-bcc3-4dda-bf9a-8809a270b8d3",
"fare_rules": {
"0": "fr_4"
},
"adult": {
"fare": {
"base_fare": 24748,
"yq": 6488,
"yr": 9000,
"other_taxes": 2494,
"total_fare": 43202,
"net_fare": 43202,
"pax_count": 2
},
"fare_ref": "Spicejet Economy Class",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "K",
"fare_basis": "KOWSG",
"baggage": {
"checkin": {
"kg": 50,
"pieces": 2
}
}
},
"varies_by_segment": false
},
{
"price_id": "e5cea64d-8cbb-4717-b72d-95461a932517",
"adult": {
"fare": {
"base_fare": 30249.26,
"yq": 6444.88,
"other_taxes": 9174.48,
"total_fare": 48674.02,
"net_fare": 48674.02,
"pax_count": 2
},
"fare_ref": "Economy",
"refundable_type": "NON_REFUNDABLE",
"cabin_class": "Economy",
"booking_class": "K",
"baggage": {
"checkin": {
"pieces": 1
}
}
},
"varies_by_segment": false
}
]
},
"… 1 more (open the viewer)"
]
}
]
}This view shows 4 of the 261 options in the reply, chosen so that each of these is present. The fare_rules table shows the 6 rules these options point at, of 50 in the reply. For the entire JSON, open the raw record.
- An option with one flight (a direct flight). → group 0: option 3 (IX 1235 DEL-BOM)
- An option with two flights (a connection). → group 0: option 0 (SG 143 DEL-BLR + SG 268 BLR-BOM)
- An option where a flight is operated by another airline than the one selling it (operating_airline_code present). → group 0: option 4 (H1 1001 DEL-BOM)
- An option with at least one fare that includes a meal (has_meal true). → group 0: option 5 (EK 511 DEL-DXB + EK 500 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 67155160… / price fe2482ad…
- Repriced option on journey_indexes [0]: 2 flights (IX 1274 DEL-IXB, IX 1547 IXB-BOM); multi-flight reprice: yes
- Fare Family : adult total 10,232, net 10,232; 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/False/False
- Price for the whole booking: total 10,232, net 10,232; itinerary_id expires at valid_till
- 0 fare rule(s) in the reply
Request body
HTTP 200 · 560 ms · complete request body (collapsible viewer)
{
"items": [
{
"option_id": "67155160-9e15-42ec-b748-408412542fb8",
"price_id": "fe2482ad-2eab-41ab-baec-c48d56d34e31"
}
]
}Reply
HTTP 200 · 560 ms · complete response body (collapsible viewer)
{
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6",
"valid_till": "2026-10-20T23:21:31+05:30",
"results": [
{
"journey_indexes": [
0
],
"option_id": "67155160-9e15-42ec-b748-408412542fb8",
"segments": [
{
"segment_index": 0,
"journey_index": 0,
"from": "DEL",
"to": "IXB",
"airline_code": "IX",
"airline_name": "Air India Express",
"aircraft_type": "Boeing 7M8",
"flight_number": "1274",
"stops": 1,
"departure_time": "2026-11-19T12:20:00",
"departure_terminal": "1",
"arrival_time": "2026-11-19T14:30:00",
"duration": 130,
"connecting_time": 265
},
{
"segment_index": 1,
"journey_index": 0,
"from": "IXB",
"to": "BOM",
"airline_code": "IX",
"airline_name": "Air India Express",
"aircraft_type": "Boeing 7M8",
"flight_number": "1547",
"departure_time": "2026-11-19T18:55:00",
"arrival_time": "2026-11-19T21:55:00",
"arrival_terminal": "2",
"duration": 180,
"connecting_time": 265
}
],
"fare": {
"price_id": "fe2482ad-2eab-41ab-baec-c48d56d34e31",
"adult": {
"fare": {
"base_fare": 6462,
"yq": 1700,
"booking_fee": 200,
"other_taxes": 594,
"total_fare": 10231.88,
"net_fare": 10231.88,
"pax_count": 2
},
"fare_ref": "Family",
"cabin_class": "Economy",
"booking_class": "FM",
"fare_basis": "ECFA000",
"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": false,
"inf": false
},
"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": 3231,
"yq": 850,
"booking_fee": 100,
"other_taxes": 297,
"total_fare": 5115.94,
"net_fare": 5115.94,
"pax_count": 2
},
"total": {
"base_fare": 6462,
"yq": 1700,
"booking_fee": 200,
"other_taxes": 594,
"total_fare": 10231.88,
"net_fare": 10231.88,
"pax_count": 2
}
}
}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/ancillaries66 items
What this step returned: 66 items(click to expand)
- 2 flight(s) in segments[]: (journey 0, segment 0) IX 1274 DEL-IXB; (journey 0, segment 1) IX 1547 IXB-BOM
- 10 bags (per journey): journey 0: 10 items
- bags: price from 2,100 to 18,750; free items: 0
- 32 meals (per flight): (journey 0, segment 0): 16 items; (journey 0, segment 1): 16 items
- meals: price from 100 to 700; free items: 0
- 24 other items (per flight): (journey 0, segment 0): 12 items; (journey 0, segment 1): 12 items
- other items: price from 0 to 6,000; free items: 9
- Errors: add-ons on DEL_BOM_IX_1274 dropped: not a flight of this itinerary; add-ons on DEL_BOM_IX_1274 dropped: not a flight of this itinerary
Request body
HTTP 200 · 3313 ms · complete request body (collapsible viewer)
{
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6"
}Reply
HTTP 200 · 3313 ms · complete response body (collapsible viewer)
{
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6",
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"airline_code": "IX",
"flight_number": "1274",
"from": "DEL",
"to": "IXB"
},
{
"journey_index": 0,
"segment_index": 1,
"airline_code": "IX",
"flight_number": "1547",
"from": "IXB",
"to": "BOM"
}
],
"baggage": [
{
"journey_index": 0,
"items": [
{
"code": "PBCB",
"label": "+ 5Kgs Xtra-Carry-On",
"price": 3500
},
{
"code": "PBCA",
"label": "+3Kgs Xtra-Carry-On",
"price": 2100
},
{
"code": "PBAF",
"label": "+ 25 Kg Xcess Baggage",
"price": 18750
},
"… 7 more (open the viewer)"
]
}
],
"meal": [
{
"journey_index": 0,
"segment_index": 0,
"items": [
{
"code": "VSDB",
"label": "Shondesh Tiramisu",
"price": 250
},
{
"code": "VQSB",
"label": "Quinoa Salad",
"price": 400
},
{
"code": "VPMB",
"label": "Paneer Makhani with Jeera Aloo & Vegetable Pulao",
"price": 600
},
"… 13 more (open the viewer)"
]
},
{
"journey_index": 0,
"segment_index": 1,
"items": [
{
"code": "VSDB",
"label": "Shondesh Tiramisu",
"price": 250
},
{
"code": "VQSB",
"label": "Quinoa Salad",
"price": 400
},
{
"code": "VPMB",
"label": "Paneer Makhani with Jeera Aloo & Vegetable Pulao",
"price": 600
},
"… 13 more (open the viewer)"
]
}
],
"other": [
{
"journey_index": 0,
"segment_index": 0,
"items": [
{
"code": "WCHS",
"label": "Wheelchair Unable to ascend and descend step",
"price": 1500
},
{
"code": "WCHR",
"label": "Wheelchair Unable to walk long distance",
"price": 1500
},
{
"code": "WCHC",
"label": "Cabin Wheelchair",
"price": 0
},
"… 9 more (open the viewer)"
]
},
{
"journey_index": 0,
"segment_index": 1,
"items": [
{
"code": "MKFR",
"label": "Unused Iitnerary",
"price": 0
},
{
"code": "GUNS",
"label": "Guns handling fee",
"price": 5500
},
{
"code": "FRLK",
"label": "Fare Lock SSR",
"price": 500
},
"… 9 more (open the viewer)"
]
}
],
"errors": [
"add-ons on DEL_BOM_IX_1274 dropped: not a flight of this itinerary",
"add-ons on DEL_BOM_IX_1274 dropped: not a flight of this itinerary"
]
}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.
▸4. Seat mapPOST /flights/seat-map346 seats
What this step returned: 346 seats(click to expand)
- 2 flight(s) with a seat map of 2 in the itinerary: (journey 0, segment 0) 7M8, 162 seats; (journey 0, segment 1) 7M8, 184 seats
- 338 seats available of 346; free: 2; paid: 336 (from 300 to 1,700)
- Window 104, aisle 114, middle 114; exit row 20; extra leg room 60; infant allowed 0
Request body
HTTP 200 · 1681 ms · complete request body (collapsible viewer)
{
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6"
}Reply
HTTP 200 · 1681 ms · complete response body (collapsible viewer)
{
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6",
"segments": [
{
"journey_index": 0,
"segment_index": 0,
"airline_code": "IX",
"flight_number": "1274",
"from": "DEL",
"to": "IXB"
},
{
"journey_index": 0,
"segment_index": 1,
"airline_code": "IX",
"flight_number": "1547",
"from": "IXB",
"to": "BOM"
}
],
"seats": [
{
"journey_index": 0,
"segment_index": 0,
"aircraft_type": "7M8",
"seats": [
{
"aisle": false,
"amount": 1700,
"code": "WINDOW",
"column": 1,
"desc": "1A",
"exit_row": false,
"infant": false,
"is_available": false,
"leg_room": true,
"middle": false,
"near_wings": false,
"reclining": false,
"row": 1,
"tax": 80,
"window": true
},
{
"aisle": true,
"amount": 1700,
"code": "AISLE",
"column": 3,
"desc": "1C",
"exit_row": false,
"infant": false,
"is_available": false,
"leg_room": true,
"middle": false,
"near_wings": false,
"reclining": false,
"row": 1,
"tax": 80,
"window": false
},
{
"aisle": true,
"amount": 1700,
"code": "AISLE",
"column": 4,
"desc": "1D",
"exit_row": false,
"infant": false,
"is_available": false,
"leg_room": true,
"middle": false,
"near_wings": false,
"reclining": false,
"row": 1,
"tax": 80,
"window": false
},
"… 159 more (open the viewer)"
],
"total_seats": 162
},
{
"journey_index": 0,
"segment_index": 1,
"aircraft_type": "7M8",
"seats": [
{
"aisle": false,
"amount": 1700,
"code": "WINDOW",
"column": 1,
"desc": "1A",
"exit_row": false,
"infant": false,
"is_available": true,
"leg_room": true,
"middle": false,
"near_wings": false,
"reclining": false,
"row": 1,
"tax": 80,
"window": true
},
{
"aisle": false,
"amount": 1700,
"code": "MIDDLE",
"column": 2,
"desc": "1B",
"exit_row": false,
"infant": false,
"is_available": true,
"leg_room": true,
"middle": true,
"near_wings": false,
"reclining": false,
"row": 1,
"tax": 80,
"window": false
},
{
"aisle": true,
"amount": 1700,
"code": "AISLE",
"column": 3,
"desc": "1C",
"exit_row": false,
"infant": false,
"is_available": true,
"leg_room": true,
"middle": false,
"near_wings": false,
"reclining": false,
"row": 1,
"tax": 80,
"window": false
},
"… 181 more (open the viewer)"
],
"total_seats": 184
}
]
}Keys and what they mean
Request
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| itinerary_id | string | required | must read | The itinerary_id from reprice. |
| 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. |
| seats[] | array | always (empty when the airline gives no map) | must read | One seat map per flight: journey_index, segment_index, aircraft_type, total_seats and seats. |
| seats[].seats[] | array | always | must read | Every seat: code (send it to book), desc (e.g. 3A, show it), row, column, amount (price; 0 = free), tax, is_available. |
| seats[].seats[].window / aisle / middle | boolean | always | useful | Where the seat is in its row. |
| seats[].seats[].exit_row / leg_room / infant / near_wings / reclining | boolean | always | useful | Seat features. A passenger with an infant needs a seat with infant true; exit rows have rules of their own. |
| 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 | |
| 404 | 5104 | Itinerary not found or expired | ||
| 502 | 5001 | The airline or supplier could not complete the request |
▸5. Book directly (paid)POST /flights/book2 passengers
What this step returned: 2 passengers(click to expand)
- Paid booking (is_hold False) with 2 passenger(s): ADULT 2
- Status SUCCESS, booking_id AIOR366189, amount 17,782, no pay_till in the reply
- GST details sent: no; ancillaries selected: 5
Request body
HTTP 200 · 573 ms · complete request body (collapsible viewer)
{
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6",
"is_hold": false,
"pax_details": [
{
"first_name": "Rohan",
"last_name": "Kulkarni",
"pax_type": "ADULT",
"title": "Mr",
"gender": "male",
"dob": "1990-05-12",
"phone": "9876543210",
"email": "rohan.verma@example.com",
"ancillaries": {
"seat": [
{
"code": "WINDOW",
"price": 1700,
"label": "3A",
"journey_index": 0,
"segment_index": 0
},
{
"code": "WINDOW",
"price": 1700,
"label": "1A",
"journey_index": 0,
"segment_index": 1
}
],
"meal": [
{
"code": "VSDB",
"price": 250,
"label": "Shondesh Tiramisu",
"journey_index": 0,
"segment_index": 0
}
],
"baggage": [
{
"code": "PBCB",
"price": 3500,
"label": "+ 5Kgs Xtra-Carry-On",
"journey_index": 0
}
]
}
},
{
"first_name": "Priya",
"last_name": "Kulkarni",
"pax_type": "ADULT",
"title": "Mrs",
"gender": "female",
"dob": "1992-08-23",
"phone": "9876543210",
"email": "rohan.verma@example.com",
"ancillaries": {
"meal": [
{
"code": "VQSB",
"price": 400,
"label": "Quinoa Salad",
"journey_index": 0,
"segment_index": 1
}
]
}
}
]
}Reply
HTTP 200 · 573 ms · complete response body (collapsible viewer)
{
"booking_id": "AIOR366189",
"itinerary_id": "2be18fc8-bbd2-466c-a216-13314c9965f6",
"status": "SUCCESS",
"amount": 17781.88
}Keys and what they mean
Request
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| itinerary_id | string | required | must read | The itinerary_id from reprice, before its valid_till. |
| is_hold | boolean | optional, default false | must read | false: book directly, paid at once from your balance or credit and ticketed. true: hold the seats without payment until pay_till (only when reprice said booking_requirements.is_hold true); then confirm-hold or release. |
| pax_details[] | array | required, one per passenger | must read | Every passenger of the search, adults first: first_name, last_name, pax_type (ADULT, CHILD, INFANT), title, gender, dob, phone and email. |
| pax_details[].passport_details | object | when reprice says passport_mandatory | useful | passport_number, passport_issue_date, passport_expiry_date, passport_issue_country, nationality. |
| pax_details[].ancillaries | object | optional | useful | What this passenger buys: seat[], meal[], other[] (each with code, price, label, journey_index and segment_index) and baggage[] (code, price, label, journey_index; no segment_index). Codes come from ancillaries and seat map; an item on a flight not in the itinerary answers 400 with errors[] (rule scope). |
| gst_details | object | optional; required when reprice says is_gst_mandatory | useful | The company on the invoice: name, number (GSTIN), address, email, mobile. |
| Total: 6 keys | ||||
Reply
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| booking_id | string | always | must read | Your booking's id. Send it to booking details, confirm-hold and release. |
| status | string | always | must read | ONHOLD (held, pay before pay_till), SUCCESS (booked directly and paid), PENDING (the airline has not confirmed yet: read the booking details), or the booking's state. |
| pay_till | datetime | on a hold | must read | Until when the hold can be confirmed; after it the airline releases the seats. |
| amount | number | always | must read | What the booking costs (INR); taken at once for a direct booking, at confirm-hold for a hold. |
| itinerary_id | string | always | informational | The itinerary that was booked. |
| Total: 5 keys | ||||
Errors this call answers with (7)
| HTTP | code | message | detail | when |
|---|---|---|---|---|
| 401 | 9001 | Authentication required | Invalid token | |
| 403 | 9002 | You do not have permission for this action | Role without bookings.create (Finance, Operation, Tech). | |
| 400 | 3000 | Invalid request | (the API's detail text) | |
| 400 | 9003 | Some fields are missing or invalid | Schema validation of the body (required fields, formats); errors[] lists them. | |
| 503 | 3003 | A service the API depends on is unavailable | (the API's text) | the API answered 5xx or did not answer. |
| 409 | 3101 | Hold booking limit reached | ||
| 500 | 9000 | Something went wrong | Payment or order errors that no translator knows. |
Questions developers ask (2)
- Is gst_details required?
- Only when booking_requirements.is_gst_mandatory is true. When you send it, all five fields are required.
- What is the difference between is_hold true and false?
- false pays from your wallet and tickets at once. true holds the seats without payment until pay_till; confirm with confirm-hold or give them back with release.
▸6. Booking detailsPOST /flights/booking/details2 passengers
What this step returned: 2 passengers(click to expand)
- Status SUCCESS, payment SUCCESS, route DOMESTIC
- Journey 0 DEL-BOM: segment 0 IX 1274 DEL-IXB; segment 1 IX 1547 IXB-BOM
- passenger 0 ADULT Rohan: CONFIRMED, PNR C3TY9T, ticket C3TY9T, fare Family FM/ECFA000, total 12,266, net 12,266, baggage hand 7kg, checkin 15kg; ancillaries 4
- passenger 1 ADULT Priya: CONFIRMED, PNR C3TY9T, ticket C3TY9T, fare Family FM/ECFA000, total 5,516, net 5,516, baggage hand 7kg, checkin 15kg; ancillaries 1
- PNR on 2 of 2 passenger-journeys; 2 passenger(s): ADULT Rohan Kulkarni, ADULT Priya Kulkarni
- Booking price: base 6,462, yq 1,700, other taxes 178, total 17,782, net 17,782
Request body
HTTP 200 · 144 ms · complete request body (collapsible viewer)
{
"booking_id": "AIOR366189"
}Reply
HTTP 200 · 144 ms · complete response body (collapsible viewer)
{
"booking_id": "AIOR366189",
"status": "SUCCESS",
"payment_status": "SUCCESS",
"created_at": "2026-10-20T22:51:37Z",
"route_type": "DOMESTIC",
"journeys": [
{
"journey_index": 0,
"from": "DEL",
"to": "BOM",
"departure_time": "2026-11-19T12:20",
"arrival_time": "2026-11-19T21:55",
"segments": [
{
"segment_index": 0,
"from": "DEL",
"to": "IXB",
"airline_code": "IX",
"airline_name": "Air India Express",
"flight_number": "1274",
"departure_time": "2026-11-19T12:20",
"arrival_time": "2026-11-19T14:30",
"departure_terminal": "1",
"duration": 130
},
{
"segment_index": 1,
"from": "IXB",
"to": "BOM",
"airline_code": "IX",
"airline_name": "Air India Express",
"flight_number": "1547",
"departure_time": "2026-11-19T18:55",
"arrival_time": "2026-11-19T21:55",
"arrival_terminal": "2",
"duration": 180
}
],
"passengers": [
{
"passenger_index": 0,
"first_name": "Rohan",
"last_name": "Kulkarni",
"pax_type": "ADULT",
"title": "Mr",
"gender": "male",
"dob": "1990-05-12",
"fare": {
"base_fare": 3231,
"yq": 850,
"airline_gst": 208,
"booking_fee": 100,
"other_taxes": 89,
"ancillaries": 7150,
"total_fare": 12265.94,
"net_fare": 12265.94
},
"status": "CONFIRMED",
"pnr": "C3TY9T",
"ticket_number": "C3TY9T",
"fare_ref": "Family",
"cabin_class": "Economy",
"booking_class": "FM",
"fare_basis": "ECFA000",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
},
"ancillaries": {
"seat": [
{
"code": "WINDOW",
"price": 1700,
"label": "3A",
"segment_index": 0
},
{
"code": "WINDOW",
"price": 1700,
"label": "1A",
"segment_index": 1
}
],
"baggage": [
{
"code": "PBCB",
"price": 3500,
"label": "+ 5Kgs Xtra-Carry-On"
}
],
"meal": [
{
"code": "VSDB",
"price": 250,
"label": "Shondesh Tiramisu",
"segment_index": 0
}
]
}
},
{
"passenger_index": 1,
"first_name": "Priya",
"last_name": "Kulkarni",
"pax_type": "ADULT",
"title": "Mrs",
"gender": "female",
"dob": "1992-08-23",
"fare": {
"base_fare": 3231,
"yq": 850,
"airline_gst": 208,
"booking_fee": 100,
"other_taxes": 89,
"ancillaries": 400,
"total_fare": 5515.94,
"net_fare": 5515.94
},
"status": "CONFIRMED",
"pnr": "C3TY9T",
"ticket_number": "C3TY9T",
"fare_ref": "Family",
"cabin_class": "Economy",
"booking_class": "FM",
"fare_basis": "ECFA000",
"baggage": {
"hand": {
"kg": 7
},
"checkin": {
"kg": 15
}
},
"ancillaries": {
"meal": [
{
"code": "VQSB",
"price": 400,
"label": "Quinoa Salad",
"segment_index": 1
}
]
}
}
]
}
],
"price": {
"base_fare": 6462,
"yq": 1700,
"airline_gst": 416,
"booking_fee": 200,
"other_taxes": 178,
"ancillaries": 7550,
"agent_markup": 1161.84,
"total_fare": 17781.88,
"net_fare": 17781.88
}
}Keys and what they mean
Request
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| booking_id | string | required | must read | The id book returned. |
| Total: 1 keys | ||||
Reply
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| status | string | always | must read | The booking's state: CREATED, ONHOLD, SUCCESS, PNR_RELEASED, CANCELLED, FAILED. |
| payment_status | string | always | must read | PENDING until paid, then SUCCESS; FAILED or REFUNDED later. |
| pay_till | datetime | on a hold | must read | Until when a held booking can be confirmed; after it the airline releases the seats. |
| journeys[] | array | always | must read | The booking journey by journey: its dates, its flights and, for every passenger on it, who they are, their state, the PNR, the ticket, the fare paid for that journey and the add-ons. |
| journeys[].passengers[].pnr | string | once the airline confirmed | must read | The airline's record locator for this passenger on this journey. Empty until the hold or the ticket is confirmed. |
| journeys[].passengers[].status | string | always | must read | PENDING until confirmed, then CONFIRMED; CANCELLED, VOIDED or REISSUED when something happened to this passenger on this journey. |
| price | object | always | must read | The booking's price as a whole, in the components of the search price (base_fare, yq, yr, airline_gst, booking_fee, commission, other_taxes, total_fare, net_fare) plus ancillaries and fees. |
| journeys[].passengers[].fare | object | always | must read | What this passenger's journey cost, in the components of the search price plus ancillaries bought on it. |
| Total: 8 keys | ||||
Errors this call answers with (4)
| HTTP | code | message | detail | when |
|---|---|---|---|---|
| 401 | 9001 | Authentication required | Invalid token | |
| 403 | 9002 | You do not have permission for this action | Role without bookings.read. | |
| 400 | 3000 | Invalid request | Booking_id is required | |
| 404 | 9005 | Not found | Booking not found |
Questions developers ask (1)
- Why is pnr empty?
- The airline has not confirmed yet: the passenger reads PENDING. It appears once the hold or the ticket is confirmed.