11.2. UPDATECALENDARFAREOFDAY
This method should be called only after the method GetCalendarFare in order to obtain the lowest fare of a particular day.
This method will return the Cheapest Fare of a particular day of month.
Service URL (REST) to be used:
http://api.tektravels.com/BookingEngineService_Air/AirService.svc/rest/UpdateCalendarFareOfDay
Update Calendar Fare Of Day Request
Level | Element | Format | Comments | Mandatory/ Optional |
---|---|---|---|---|
1 | EndUserIp | String | IP Address of the end user | Mandatory |
2 | TokenId | String | Token ID | MandatoryToken Id to be echoed back from Authenticate response) |
3 | JourneyType | Enumerator | Specify journey type | Mandatory(1 - OneWay) |
4 | PreferredAirlines | String[] | This filter works only on GDS airline | Optional(null for All i.e. ["AI","9W","SG"]) |
5 | Segments [][] | List of segments | Mandatory | |
5.1 | Origin | String | Origin city code | Mandatory(e.g. DEL) |
5.2 | Destination | String | Destination city code | Mandatory(e.g. BOM) |
5.3 | FlightCabinClass | Enumerator | Cabin class | Mandatory(1 for All 2 for Economy 3 for PremiumEconomy 4 for Business 5 for PremiumBusiness 6 for First) |
5.4 | PreferredDepartureTime | Date Time | Preferred departure date timeFormat: yyyy-MM-ddTHH:mm:ss | Mandatory(2015-08-10T00:00:00 for any time 2015-08-10T08:00:00 for Morning Flights 2015-08-10T14:00:00 for Afternoon Flights 2015-08-10T19:00:00 for Evening Flights 2015-08-10T01:00:00 for Night Flights) |
6 | Sources | String[] | Airline Sources | Optional(For Normal OW/RT: GDS – Amadeus/Galileo SG - SpiceJet 6E - Indigo G8 – Go Air) |
Update Calendar Fare Of Day Response
Level | Element | Format | Comments | Mandatory/ Optional |
---|---|---|---|---|
1 | TraceId | String | Trace ID | Mandatory(Trace Id to be echoed back in further requests) |
2 | Origin | String | Origin city code | Mandatory |
3 | Destination | String | Destination city code | Mandatory |
4 | SearchResults [ ] | Array of element | Array of the flight results | Mandatory(Can be blank in case no flights found for requested search) |
4.1 | AirlineCode | String | Airline Code | Mandatory |
4.2 | AirlineName | String | Airline Name | Mandatory |
4.3 | DepartureTime | Date Time | Departure time | Mandatory |
4.4 | IsLowestFareOfMonth | Boolean | Is Lowest Fare of the month | Mandatory(Value - True or False) |
4.5 | BaseFare | Decimal | The total Base fare of the booking | Mandatory |
4.6 | Tax | Decimal | The total tax of the booking | Mandatory |
4.7 | YQTax | Decimal | It is Fuel surcharge. It is part of Tax | Mandatory |
4.8 | OtherCharge | Decimal | Other Charge | Mandatory |
5 | Response Status | Enumeration | Response Status | Mandatory |
6 | Error | |||
6.1 | ErrorCode | Integer | Code corresponding to the Error | Mandatory |
6.2 | ErrorMessage | String | Contains error message | Mandatory(Will contain error description corresponding to ErrorCode. Error Message would be blank in case ErrorCode=0) |