FARE QUOTE
This method is required to re-price the selected itinerary. This is required to make sure that we have the updated price including tax because in some cases, the fare provided at the time of search may change.
The Confirm Fare request depends on the Search Result, and it can be categorized into two main scenarios:
1. Single Result Case
* This occurs in one-way itineraries or in most cases of international return itineraries.
* For one-way searches, only a single result is returned.
* In international return searches, typically (≈99% cases) a single ResultIndex is returned that already contains all possible onward/return combinations.
* In this scenario, the system simply passes the selected ResultIndex directly in the Confirm Fare request.
2. Multiple Result Case (Return with Separate Fares)
* In some return itineraries, separate fares are returned for onward and return segments, resulting in two different ResultIndex values.
* The customer selects the desired onward and return combination, and the total fare is calculated accordingly.
* In such cases, Confirm Fare must handle the request based on the SingleSlotBooking flag:
a. Condition 1 – SingleSlotBooking = "No"
* The booking cannot be completed in a single request.
* Confirm Fare must be performed separately for each ResultIndex (once for onward and once for return), similar to handling two one-way bookings.
b. Condition 2 – SingleSlotBooking = "Yes"
* The booking can be confirmed in a single request.
* Both ResultIndex values must be sent comma-separated in the Confirm Fare request.
* Example: If the onward result index is TTSS0 and the return result index is YYDSI, the request must include:
ResultIndex="TTSS0,YYDSI"
Service URL (REST) to be used:
Fare Quote Request
| Level | Element | Format | Comments | Mandatory |
|---|---|---|---|---|
| 1 | EndUserIp | String | IP Address of the end user | Mandatory |
| 2 | ClientId | String | Client ID provided to the agency at registration | Mandatory |
| 3 | UserName | String | Username provided to the agency at registration | Mandatory |
| 4 | Password | String | Password provided to the agency at registration | Mandatory |
| 5 | SrdvType | String | Simple result data version | Mandatory |
| 6 | TraceId | Integer | Trace Id ( Trace Id to be echoed back from search response. This can be used to trace particular search/ book atSRDV’s end ) | Mandatory |
| 7 | SrdvIndex | String | Simple result data version index | Mandatory |
| 8 | ResultIndex | String | Result index | Mandatory |
Fare Quote Response
| Level | Element | Format | Comments | Mandatory |
|---|---|---|---|---|
| 1 | Error{} | Object | Error | Mandatory |
| 1.1 | ErrorCode | String | ErrorCode | Mandatory |
| 1.2 | ErrorMessage | String | Error Message | Mandatory |
| 2 | TraceId | Integer | Trace ID | Mandatory |
| 3 | SrdvType | String | Simple result data version | Mandatory |
| 4 | IsPriceChanged | Boolean | Is Price Changed (Value – True or False) | Mandatory |
| 5 | Results{} | Object | Results | Mandatory |
| 5.1 | SrdvIndex | String | Simple result data version index | Mandatory |
| 5.2 | ResultIndex | String | Result Index | Mandatory |
| 5.3 | Source | String | Airline Source | Mandatory |
| 5.4 | ButtonColor | String | Buttoon Color | Mandatory |
| 5.5 | TextColor | String | Text Color | Mandatory |
| 5.6 | SingleSlotBooking | Enumration | Single Slot Booking Status | Mandatory |
| 5.7 | IsLCC | Boolean | Is the result for LCC or Non LCC (Value – True or False) | Mandatory |
| 5.8 | IsRefundable | Boolean | Is the fare refundable or not (Value – True or False) | Mandatory |
| 5.9 | IsPriceChanged | Boolean | Is Price Changed ( Value – True or False ) | Mandatory |
| 5.10 | AirlineRemarks | String | Airline remarks | Optional |
| 5.11 | IsPassportRequiredAtBook | Boolean | if true then you need to send the passport details and for the international segment it's always mandatory | Optional |
| 5.12 | IsPassportFullDetailRequiredAtBook | Boolean | If true then you need to pass the passport issue country and passport issue date. | Optional |
| 5.13 | IsPassportExpiryRequired | Boolean | If true then you need to pass the passport expire date. | Optional |
| 5.14 | IsPassportIssueDateRequired | Boolean | If true then you need to pass the passport issue date. | Optional |
| 5.15 | GSTAllowed | Boolean | GST Allowed | Optional |
| 5.16 | IsGSTMandatory | Boolean | GST Mandatory | Optional |
| 5.17 | AdultDobRequired | Boolean | Adult Dob Required | Optional |
| 5.18 | ChildDobRequired | Boolean | Child Dob Required | Optional |
| 5.19 | InfantDobRequired | Boolean | Infant Dob Required | Optional |
| 5.20 | SeatSelectAllowed | Boolean | Seat Select Allowed | Optional |
| 5.21 | HoldAllowed | Boolean | Hold Status | Optional |
| 5.22 | Fare{} | Object | Fare | Mandatory |
| 5.22.1 | Currency | String | Currency | Mandatory |
| 5.22.2 | BaseFare | Decimal | Base fare | Mandatory |
| 5.22.3 | Tax | Decimal | Total tax | Mandatory |
| 5.22.4 | YQTax | Decimal | Fuel surcharge | Mandatory |
| 5.22.5 | OtherCharges | Decimal | Some additional charge by airline/airport. | Mandatory |
| 5.22.6 | TransactionFee | Decimal | Transaction fee | Mandatory |
| 5.22.7 | AdditionalTxnFeeOfrd | Decimal | Additional Transaction Fee Offered (It will always be zero) | Mandatory |
| 5.22.8 | AdditionalTxnFeePub | Decimal | Additional Transaction Fee Published | Mandatory |
| 5.22.9 | AirTransFee | Decimal | Air trans fee | Mandatory |
| 5.22.10 | Discount | Decimal | Discount | Mandatory |
| 5.22.11 | PublishedFare | Decimal | Published Fare | Mandatory |
| 5.22.12 | OfferedFare | Decimal | Offered Fare | Mandatory |
| 5.22.13 | CommissionEarned | Decimal | Agent Commission | Mandatory |
| 5.22.14 | TdsOnCommission | Decimal | TDS on the commission earned. | Mandatory |
| 5.23 | FareBreakdown[] | Array | Details of fare breakup into several part. It give fare of Each Passenger Type | Mandatory |
| 5.23.1 | PassengerType | Integer | Passenger Type 1 - Adult, 2 - Child, 3 - Infan | Mandatory |
| 5.23.2 | PassengerCount | Integer | Number of Passenger | Mandatory |
| 5.23.3 | BaseFare | Decimal | Base fare | Mandatory |
| 5.23.4 | Tax | Decimal | Total tax | Mandatory |
| 5.23.5 | YQTax | Decimal | Fuel Surcharge | Mandatory |
| 5.23.6 | AdditionalTxnFeeOfrd | Decimal | Additional Transaction Fee Offered | Mandatory |
| 5.23.7 | AdditionalTxnFeePub | Decimal | Additional Transaction Fee Published | |
| 5.24 | Segments[] | Array | Segments | Mandatory |
| 5.24.1 | IsRefundable | Boolean | Refund | Mandatory |
| 5.24.2 | Baggage | String | Baggage | Mandatory |
| 5.24.3 | CabinBaggage | String | Cabin Baggage | Mandatory |
| 5.24.4 | CabinClassName | String | Cabin Class Name | Mandatory |
| 5.24.5 | CabinClassCode | Integer | Cabin Class Code | Mandatory |
| 5.24.6 | TripIndicator | Integer | Trip Indicator | Mandatory |
| 5.24.7 | SegmentIndicator | Integer | Segment Indicator | Mandatory |
| 5.24.8 | Airline{} | Object | Airline | Mandatory |
| 5.24.8.1 | AirlineCode | String | Airline Code | Mandatory |
| 5.24.8.2 | AirlineName | String | Airline Name | Mandatory |
| 5.24.8.3 | FlightNumber | String | Flight Number | Mandatory |
| 5.24.8.4 | FareClass | String | Fare Class | Mandatory |
| 5.24.8.5 | OperatingCarrier | String | Operating carrier | Mandatory |
| 5.24.9 | NoOfSeatAvailable | String | No of Seat Available | Mandatory |
| 5.24.10 | Origin{} | Object | Origin | Mandatory |
| 5.24.10.1 | AirportCode | String | Airport code | Mandatory |
| 5.24.10.2 | AirportName | String | Airport name | Optional |
| 5.24.10.3 | Terminal | String | Terminal number | Optional |
| 5.24.10.4 | CityCode | String | City Code | Mandatory |
| 5.24.10.5 | CityName | String | city name | Mandatory |
| 5.24.10.6 | CountryCode | String | country code | Mandatory |
| 5.24.10.7 | CountryName | String | country name | Mandatory |
| 5.24.11 | DepTime | Date Time | Departure time | Mandatory |
| 5.24.12 | Destination{} | Object | Destination | Mandatory |
| 5.24.12.1 | AirportCode | String | Airport code | Mandatory |
| 5.24.12.2 | AirportName | String | Airport name | Mandatory |
| 5.24.12.3 | Terminal | String | Terminal number | Optional |
| 5.24.12.4 | CityCode | String | City code | Mandatory |
| 5.24.12.5 | CityName | String | City name | Mandatory |
| 5.24.12.6 | CountryCode | String | Country code | Mandatory |
| 5.24.12.7 | CountryName | String | Country name | Mandatory |
| 5.24.13 | ArrTime | Date Time | Arrival time | Mandatory |
| 5.24.14 | Duration | Time | Duration | Optional |
| 5.24.15 | GroundTime | Time | Ground time | Optional |
| 5.24.16 | AccumulatedDuration | Time | Accumulated Duration | Optional |
| 5.24.17 | Mile | String | Miles | Optional |
| 5.24.18 | StopOver | String | Stop Over | Optional |
| 5.24.19 | StopPoint | String | Stopover point | Optional |
| 5.24.20 | StopPointArrivalTime | Date Time | Time Stopover arrival time | Optional |
| 5.24.21 | StopPointDepartureTime | Date Time | Time Stopover departure time | Optional |
| 5.24.22 | Craft | String | Craft | Optional |
| 5.24.23 | Remark | String | Remark | Optional |
| 5.24.24 | IsETicketEligible | Boolean | Is E-Ticket eligible (Value – true or false) | Mandatory |
| 5.24.25 | FlightStatus | String | Flight status | Mandatory |
| 5.24.26 | Status | String | Status | Mandatory |
| 5.25 | AirlineCode | String | Airline code | Mandatory |
| 5.26 | ValidatingAirline | String | Validating airline | Mandatory |