Method to Post Json Data
https://flight.srdvtest.com/v8/rest/Search
Search Request JSON
{ "EndUserIp": "********", "ClientId": "*********", "UserName": "********", "Password": "********", "AdultCount": "1", "ChildCount": "0", "InfantCount": "0", "JourneyType": "1", "FareType": "1", "Segments": [ { "Origin": "LKO", "Destination": "KWI", "FlightCabinClass": "1", "PreferredDepartureTime": "2024-03-08T00:00:00", "PreferredArrivalTime": "2024-03-08T00:00:00" } ] }
Search Response JSON
{ "Error": { "ErrorCode": 0, "ErrorMessage": "" }, "TraceId": 306561, "SrdvType": "MixAPI", "Origin": "LKO", "Destination": "KWI", "Results": [ [ { "FareDataMultiple": [ { "SrdvIndex": 1, "ResultIndex": "OB1", "SingleSlotBooking": "No", "Source": "Publish", "ButtonColor": "#0000ff", "TextColor": "#ffffff", "ReturnBook": "Normal", "IsLCC": true, "IsRefundable": true, "GSTAllowed": true, "IsGSTMandatory": false, "AirlineRemark": "This is friendly fare.", "OfferedFare": 18610.59, "Fare": { "Currency": "INR", "BaseFare": 10608.08, "Tax": 7914.01, "YQTax": 2164.91, "OtherCharges": 88.5, "TransactionFee": "0", "AdditionalTxnFeeOfrd": 0, "AdditionalTxnFeePub": 0, "AirTransFee": "0", "Discount": 0, "PublishedFare": 18610.59, "OfferedFare": 18611, "CommissionEarned": 0, "TdsOnCommission": 0 }, "FareBreakdown": [ { "PassengerType": 1, "PassengerCount": 1, "BaseFare": 10608.08, "Tax": 7914.01, "YQTax": 2164.91, "AdditionalTxnFeeOfrd": 0, "AdditionalTxnFeePub": 0 } ], "FareSegments": [ { "AirlineCode": "OV", "AirlineName": "SalamAir", "FlightNumber": "702", "FromAirportCode": "LKO", "FromCity": "Lucknow", "ToAirportCode": "MCT", "ToCity": "Muscat", "Baggage": "20 Kg", "CabinBaggage": "7 Kg", "FareClass": "F1", "CabinClassName": "Economy", "CabinClassCode": 2, "NoOfSeatAvailable": 10, "IsETicketEligible": true, "CancelBeforeHours": "", "CancelBeforeHoursCharge": "", "ReIssueBeforeHoursCharge": "", "CancelWithInHours": "", "CancelWithInHoursCharge": "", "ReIssueWithInHoursCharge": "" }, { "AirlineCode": "OV", "AirlineName": "SalamAir", "FlightNumber": "227", "FromAirportCode": "MCT", "FromCity": "Muscat", "ToAirportCode": "KWI", "ToCity": "Kuwait City", "Baggage": "20 Kg", "CabinBaggage": "7 Kg", "FareClass": "F1", "CabinClassName": "Economy", "CabinClassCode": 2, "NoOfSeatAvailable": 10, "IsETicketEligible": true, "CancelBeforeHours": "", "CancelBeforeHoursCharge": "", "ReIssueBeforeHoursCharge": "", "CancelWithInHours": "", "CancelWithInHoursCharge": "", "ReIssueWithInHoursCharge": "" } ] } ], "Segments": [ [ { "TripIndicator": 1, "SegmentIndicator": 1, "Airline": { "AirlineCode": "OV", "AirlineName": "SalamAir", "FlightNumber": "702", "OperatingCarrier": "" }, "Origin": { "AirportCode": "LKO", "AirportName": "Amausi", "Terminal": "", "CityCode": "LKO", "CityName": "Lucknow", "CountryCode": "IN", "CountryName": "India" }, "DepTime": "2024-03-08T07:10:00", "Destination": { "AirportCode": "MCT", "AirportName": "Seeb", "Terminal": "", "CityCode": "MCT", "CityName": "Muscat", "CountryCode": "OM", "CountryName": "Oman" }, "ArrTime": "2024-03-08T09:40:00", "Duration": 240, "GroundTime": 0, "Mile": 0, "StopOver": false, "StopPoint": "", "StopPointArrivalTime": null, "StopPointDepartureTime": null, "Craft": "32N", "Remark": null, "FlightStatus": "Confirmed", "Status": "HK" }, { "TripIndicator": 1, "SegmentIndicator": 2, "Airline": { "AirlineCode": "OV", "AirlineName": "SalamAir", "FlightNumber": "227", "OperatingCarrier": "" }, "Origin": { "AirportCode": "MCT", "AirportName": "Seeb", "Terminal": "", "CityCode": "MCT", "CityName": "Muscat", "CountryCode": "OM", "CountryName": "Oman" }, "DepTime": "2024-03-08T16:00:00", "Destination": { "AirportCode": "KWI", "AirportName": "Kuwait Int'l", "Terminal": "", "CityCode": "KWI", "CityName": "Kuwait City", "CountryCode": "KW", "CountryName": "Kuwait" }, "ArrTime": "2024-03-08T17:25:00", "AccumulatedDuration": 765, "Duration": 145, "GroundTime": 380, "Mile": 0, "StopOver": false, "StopPoint": "", "StopPointArrivalTime": null, "StopPointDepartureTime": null, "Craft": "32N", "Remark": null, "FlightStatus": "Confirmed", "Status": "HK" } ] ], "AirlineCode": "OV", "ValidatingAirline": "OV", "OfferedFare": 18610.59 } ] ] }