gonzag88
10/31/2016 - 11:13 AM

Sell request and response example

Sell request and response example

REQUEST:

{:SearchId=>"96146ba2-c8d4-4b6a-b87f-6b329ade757e",
 :Source=>"SB",
 :ClientId=>"AR-AERO",
 :ClientEnvironment=>"Testing",
 :ClientChannel=>nil,
 :ClientToken=>"@3r0l@pl@t@",
 :ClientGLAS=>"ROJO",
 :ACCodes=>[],
 :FareType=>"PUB",
 :AdultPassengerType=>"ADT",
 :AdultPassengerQuantity=>"2",
 :AdultFareData=>{:FareAmount=>13706.0, :FareTaxes=>3069.1},
 :ChildPassengerType=>"CNN",
 :ChildPassengerQuantity=>0,
 :ChildFareData=>{:FareAmount=>0, :FareTaxes=>0},
 :InfantsPassengerType=>"INF",
 :InfantsPassengerQuantity=>0,
 :InfantsFareData=>{:FareAmount=>0, :FareTaxes=>0},
 :GroupsOfFlights=>
  [{:Flights=>
     [{:MarketingCarrier=>"UA",
       :FlightNumber=>"818",
       :Departure=>"2016-11-01T17:45",
       :BookingClass=>"G",
       :MarriedWithPreviousSegment=>"O",
       :OriginAirport=>"EZE",
       :DestinationAirport=>"IAH"},
      {:MarketingCarrier=>"UA",
       :FlightNumber=>"1012",
       :Departure=>"2016-11-02T06:14",
       :BookingClass=>"G",
       :MarriedWithPreviousSegment=>"I",
       :OriginAirport=>"IAH",
       :DestinationAirport=>"CUN"}]},
   {:Flights=>
     [{:MarketingCarrier=>"UA",
       :FlightNumber=>"1056",
       :Departure=>"2016-11-08T14:25",
       :BookingClass=>"G",
       :MarriedWithPreviousSegment=>"O",
       :OriginAirport=>"CUN",
       :DestinationAirport=>"IAH"},
      {:MarketingCarrier=>"UA",
       :FlightNumber=>"819",
       :Departure=>"2016-11-08T18:35",
       :BookingClass=>"G",
       :MarriedWithPreviousSegment=>"I",
       :OriginAirport=>"IAH",
       :DestinationAirport=>"EZE"}]}]
}


RESPONSE:

{"SearchId"=>"00000000-0000-0000-0000-000000000000",
 "OperationId"=>"5547d6ca-581f-4b4a-98c2-04db52f7903c",
 "FlightsSold"=>nil,
 "FlightsUnableToSell"=>nil,
 "AdultFareData"=>nil,
 "ChildFareData"=>nil,
 "InfantFareData"=>nil,
 "WarningMessage"=>nil,
 "ErrorMessage"=>
  "Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index",
 "Fares"=>nil
 }