← all test cases

Hold, then confirm (pay) the hold

DEL-BOM · one way · 1 adult · booked on hold

Book on hold, then confirm-hold before pay_till: the amount is taken and the booking is ticketed. Details after.

  1. 1 Search: 211 options
  2. 2 Reprice: 1 items
  3. 3 Book on hold: 1 passengers
  4. 4 Confirm the hold: 1 confirmed
  5. 5 Booking details: 1 passengers
▸2. RepricePOST /flights/reprice1 items
What this step returned: 1 items(click to expand)
  • 1 item(s) sent: option 1b2c3335… / price f97ac77e…
  • Repriced option on journey_indexes [0]: 1 flight (IX 1235 DEL-BOM); multi-flight reprice: no
  • Fare Value : adult total 6,029, net 6,029; 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 6,029, net 6,029; itinerary_id expires at valid_till
  • 0 fare rule(s) in the reply
Request body
{
  "items": [
    {
      "option_id": "1b2c3335-7310-4668-bb96-2d62fa4efd1e",
      "price_id": "f97ac77e-d0af-4f10-9bd7-8f2caf3d0c38"
    }
  ]
}
Reply
{
  "itinerary_id": "6aa4c3e1-6d99-41bf-8adc-2b50b7848890",
  "valid_till": "2026-10-20T23:21:50+05:30",
  "results": [
    {
      "journey_indexes": [
        0
      ],
      "option_id": "1b2c3335-7310-4668-bb96-2d62fa4efd1e",
      "segments": [
        {
          "segment_index": 0,
          "journey_index": 0,
          "from": "DEL",
          "to": "BOM",
          "airline_code": "IX",
          "airline_name": "Air India Express",
          "flight_number": "1235",
          "departure_time": "2026-11-19T20:40:00",
          "arrival_time": "2026-11-19T23:10:00",
          "duration": 150
        }
      ],
      "fare": {
        "price_id": "f97ac77e-d0af-4f10-9bd7-8f2caf3d0c38",
        "adult": {
          "fare": {
            "base_fare": 4000,
            "yq": 850,
            "booking_fee": 100,
            "other_taxes": 341,
            "total_fare": 6028.94,
            "net_fare": 6028.94,
            "pax_count": 1
          },
          "fare_ref": "Value",
          "cabin_class": "Economy",
          "booking_class": "EC",
          "fare_basis": "KNRA000",
          "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": 4000,
      "yq": 850,
      "booking_fee": 100,
      "other_taxes": 341,
      "total_fare": 6028.94,
      "net_fare": 6028.94,
      "pax_count": 1
    },
    "total": {
      "base_fare": 4000,
      "yq": 850,
      "booking_fee": 100,
      "other_taxes": 341,
      "total_fare": 6028.94,
      "net_fare": 6028.94,
      "pax_count": 1
    }
  }
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
items[]arrayrequired, one per groupmust readOne item per search group you chose from: one for a one way or a combined return, two for a domestic return (one per direction).
items[].option_idstringrequiredmust readThe option_id from the search reply.
items[].price_idstringrequiredmust readThe price_id of the chosen fare of that option. An option_id or price_id not in a current search answers 400 with errors[] (search again).
Total: 3 keys
Reply
keytypewhen presentimportancemeaning
itinerary_idstringalwaysmust readNames the repriced itinerary. Send it to ancillaries, seat map and book.
valid_tilldatetimealwaysmust readUntil when the itinerary_id can be booked. After it, book answers 410: reprice again.
results[]arrayalwaysmust readOne entry per item sent: journey_indexes, option_id, the flights (segments) and the one fare, priced again.
results[].segments[]arrayalwaysmust readThe flights in order, each named by (journey_index, segment_index); segment_index restarts at 0 in every journey.
results[].fareobjectalwaysmust readThe fare in the shape of search: price_id, per passenger type (adult, child, infant) the fare_ref, refundable_type, cabin_class, booking_class, fare_basis, baggage and fare, and fare_rules ids.
price.totalobjectalwaysmust readThe price in the components of search: base_fare, yq, yr, airline_gst, booking_fee, commission, other_taxes, total_fare (what the traveller pays), net_fare (what you pay us), pax_count, and the baggage stated in the fare. For the whole booking.
price.adult (child, infant)objectalways (child, infant when requested)usefulThe price in the components of search: base_fare, yq, yr, airline_gst, booking_fee, commission, other_taxes, total_fare (what the traveller pays), net_fare (what you pay us), pax_count, and the baggage stated in the fare. For one passenger of that type.
booking_requirementsobjectalwaysmust readWhat book must carry: is_gst_mandatory, pan_applicable, passport_mandatory, dob_applicable (adt, chd, inf), name lengths, and whether a seat, meal or bag is mandatory.
booking_requirements.is_holdbooleanalwaysmust readtrue when this fare may be booked on hold (book with is_hold true); false: book directly, paid at once.
fare_rulesobjectwhen knownusefulThe cancellation and date-change rules the fares point at, keyed by id (fr_1, …): bands with allowed, amount or percent, the window (from, to) and the airline's text.
messages[]arrayonly when the price changedmust readOne entry per repriced option whose price changed since search: type FARE_ALERT, option_id, old_value, new_value. Show the new price before booking.
Total: 11 keys
Errors this call answers with (6)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4005100Invalid search requestoption_id and price_id are requiredAlso 'each review item needs option_id and price_id'.
4045103Flight not foundoption_id or price_id not in a stored search.
4105102Search results have expired
5025001The airline or supplier could not complete the requestReprice failed at the airline.
5045002A supplier or service did not answer in time
Questions developers ask (2)
The price changed. What now?
messages has a FARE_ALERT with old_value and new_value for that option_id. Show the new price to the traveller before booking; the itinerary is priced at the new value.
Until when can I book?
valid_till of the reprice reply: the airline's session for this itinerary. Book before it or reprice again.
▸3. Book on holdPOST /flights/book1 passengers
What this step returned: 1 passengers(click to expand)
  • Booked on hold (is_hold True) with 1 passenger(s): ADULT 1
  • Status ONHOLD, booking_id AIOR669440, amount 6,029, pay_till given
  • GST details sent: no; ancillaries selected: 0
Request body
{
  "itinerary_id": "6aa4c3e1-6d99-41bf-8adc-2b50b7848890",
  "is_hold": true,
  "pax_details": [
    {
      "first_name": "Rohan",
      "last_name": "Trivedi",
      "pax_type": "ADULT",
      "title": "Mr",
      "gender": "male",
      "dob": "1990-05-12",
      "phone": "9876543210",
      "email": "rohan.verma@example.com"
    }
  ]
}
Reply
{
  "booking_id": "AIOR669440",
  "itinerary_id": "6aa4c3e1-6d99-41bf-8adc-2b50b7848890",
  "status": "ONHOLD",
  "amount": 6028.94,
  "pay_till": "2026-10-20T23:21:51Z"
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
itinerary_idstringrequiredmust readThe itinerary_id from reprice, before its valid_till.
is_holdbooleanoptional, default falsemust readfalse: 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[]arrayrequired, one per passengermust readEvery passenger of the search, adults first: first_name, last_name, pax_type (ADULT, CHILD, INFANT), title, gender, dob, phone and email.
pax_details[].passport_detailsobjectwhen reprice says passport_mandatoryusefulpassport_number, passport_issue_date, passport_expiry_date, passport_issue_country, nationality.
pax_details[].ancillariesobjectoptionalusefulWhat 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_detailsobjectoptional; required when reprice says is_gst_mandatoryusefulThe company on the invoice: name, number (GSTIN), address, email, mobile.
Total: 6 keys
Reply
keytypewhen presentimportancemeaning
booking_idstringalwaysmust readYour booking's id. Send it to booking details, confirm-hold and release.
statusstringalwaysmust readONHOLD (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_tilldatetimeon a holdmust readUntil when the hold can be confirmed; after it the airline releases the seats.
amountnumberalwaysmust readWhat the booking costs (INR); taken at once for a direct booking, at confirm-hold for a hold.
itinerary_idstringalwaysinformationalThe itinerary that was booked.
Total: 5 keys
Errors this call answers with (7)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4039002You do not have permission for this actionRole without bookings.create (Finance, Operation, Tech).
4003000Invalid request(the API's detail text)
4009003Some fields are missing or invalidSchema validation of the body (required fields, formats); errors[] lists them.
5033003A service the API depends on is unavailable(the API's text)the API answered 5xx or did not answer.
4093101Hold booking limit reached
5009000Something went wrongPayment 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.
▸4. Confirm the holdPOST /flights/booking/confirm-hold1 confirmed
What this step returned: 1 confirmed(click to expand)
  • Status after confirm-hold: SUCCESS, amount 6,029
Request body
{
  "booking_id": "AIOR669440"
}
Reply
{
  "booking_id": "AIOR669440",
  "itinerary_id": "6aa4c3e1-6d99-41bf-8adc-2b50b7848890",
  "status": "SUCCESS",
  "amount": 6028.94
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
booking_idstringrequiredmust readA booking on hold (status ONHOLD), before its pay_till.
Total: 1 keys
Reply
keytypewhen presentimportancemeaning
statusstringalwaysmust readSUCCESS when paid and ticketed; read the booking details for the tickets.
amountnumberalwaysmust readWhat was taken from your balance or credit (INR).
booking_idstringalwaysinformationalThe booking confirmed.
itinerary_idstringalwaysinformationalIts itinerary.
Total: 4 keys
Errors this call answers with (6)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4039002You do not have permission for this actionRole without bookings.hold.
4003000Invalid requestBooking_id is required
4049005Not foundBooking not found
4093102Booking is not pendingNot a held booking, or already confirmed.
5009000Something went wrongInsufficient wallet or payment faults that no translator knows.
▸5. Booking detailsPOST /flights/booking/details1 passengers
What this step returned: 1 passengers(click to expand)
  • Status SUCCESS, payment SUCCESS, route DOMESTIC, pay_till given
  • Journey 0 DEL-BOM: segment 0 IX 1235 DEL-BOM
  • passenger 0 ADULT Rohan: CONFIRMED, PNR H4JUWG, ticket H4JUWG, fare Value EC/KNRA000, total 6,029, net 6,029, baggage hand 7kg, checkin 15kg
  • PNR on 1 of 1 passenger-journeys; 1 passenger(s): ADULT Rohan Trivedi
  • Booking price: base 4,000, yq 850, other taxes 89, total 6,029, net 6,029
Request body
{
  "booking_id": "AIOR669440"
}
Reply
{
  "booking_id": "AIOR669440",
  "status": "SUCCESS",
  "payment_status": "SUCCESS",
  "created_at": "2026-10-20T22:51:50Z",
  "pay_till": "2026-10-20T23:21:51Z",
  "route_type": "DOMESTIC",
  "journeys": [
    {
      "journey_index": 0,
      "from": "DEL",
      "to": "BOM",
      "departure_time": "2026-11-19T20:40",
      "arrival_time": "2026-11-19T23:10",
      "segments": [
        {
          "segment_index": 0,
          "from": "DEL",
          "to": "BOM",
          "airline_code": "IX",
          "airline_name": "Air India Express",
          "flight_number": "1235",
          "departure_time": "2026-11-19T20:40",
          "arrival_time": "2026-11-19T23:10",
          "duration": 150
        }
      ],
      "passengers": [
        {
          "passenger_index": 0,
          "first_name": "Rohan",
          "last_name": "Trivedi",
          "pax_type": "ADULT",
          "title": "Mr",
          "gender": "male",
          "dob": "1990-05-12",
          "fare": {
            "base_fare": 4000,
            "yq": 850,
            "airline_gst": 252,
            "booking_fee": 100,
            "other_taxes": 89,
            "total_fare": 6028.94,
            "net_fare": 6028.94
          },
          "status": "CONFIRMED",
          "pnr": "H4JUWG",
          "ticket_number": "H4JUWG",
          "fare_ref": "Value",
          "cabin_class": "Economy",
          "booking_class": "EC",
          "fare_basis": "KNRA000",
          "baggage": {
            "hand": {
              "kg": 7
            },
            "checkin": {
              "kg": 15
            }
          }
        }
      ]
    }
  ],
  "price": {
    "base_fare": 4000,
    "yq": 850,
    "airline_gst": 252,
    "booking_fee": 100,
    "other_taxes": 89,
    "agent_markup": 100,
    "total_fare": 6028.94,
    "net_fare": 6028.94
  }
}
Keys and what they mean
Request
keytypewhen presentimportancemeaning
booking_idstringrequiredmust readThe id book returned.
Total: 1 keys
Reply
keytypewhen presentimportancemeaning
statusstringalwaysmust readThe booking's state: CREATED, ONHOLD, SUCCESS, PNR_RELEASED, CANCELLED, FAILED.
payment_statusstringalwaysmust readPENDING until paid, then SUCCESS; FAILED or REFUNDED later.
pay_tilldatetimeon a holdmust readUntil when a held booking can be confirmed; after it the airline releases the seats.
journeys[]arrayalwaysmust readThe 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[].pnrstringonce the airline confirmedmust readThe airline's record locator for this passenger on this journey. Empty until the hold or the ticket is confirmed.
journeys[].passengers[].statusstringalwaysmust readPENDING until confirmed, then CONFIRMED; CANCELLED, VOIDED or REISSUED when something happened to this passenger on this journey.
priceobjectalwaysmust readThe 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[].fareobjectalwaysmust readWhat 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)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4039002You do not have permission for this actionRole without bookings.read.
4003000Invalid requestBooking_id is required
4049005Not foundBooking 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.