Skip to content

Instantly share code, notes, and snippets.

@igortoliveira
Created March 15, 2014 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igortoliveira/9572061 to your computer and use it in GitHub Desktop.
Save igortoliveira/9572061 to your computer and use it in GitHub Desktop.
request:
{"bookingInfo":{"travelerInfoList":[{"firstName":"foo","middleName":"","lastName":"bar","type":"Adult","gender":"MALE","emergencyContactName":"Ken","emergencyContactNum":"98737777","dob":"1988-04-07","knownTravelerNum":"","redressNum":""}],"addressInfo":{"addressOne":"assfsdfsdfsdf","city":"asdasdasd","state":"Alaska","country":"USA","zipCode":"13123"},"phoneInfo":{"number":"13123123123","contactType":"HOME","phoneRefNumber":"1.1","sequenceNum":0,"primary":true},"emailInfo":{"address":"foo@bar.com","emailType":"CC","emailRefNumber":"1.1","sequenceNum":0,"primary":false},"bookingType":"ANONYMOUS_DOLLAR","mobile":false,"oAndDList":[{"departureDateTime":"2014-05-08T06:50:00-08:00"},{"departureDateTime":"2014-05-09T08:55:00-05:00"}],"insuranceOption":{"selected":false},"optInOption":{"selected":false}},"seatInfo":{"seatFlightList":[{"flightId":1,"flightNum":"350","paxSeatList":[{"pax":{"firstName":"foo","lastName":"bar","guestId":0},"seatNum":"13C","mce":false}]},{"flightId":2,"flightNum":"351","paxSeatList":[{"pax":{"firstName":"foo","lastName":"bar","guestId":0},"seatNum":"13C","mce":false}]}]},"paymentInfo":{"creditCardInfo":{"ccNumber":"4111111111111111","securityCode":"321","cardType":"VISA","expiryDate":"2019-3","paymentAmount":272.5}}}
response:
{"status":{"status":"SUCCESS"},"response":{"pnrInfo":{"pnr":"LEEBJM","international":false,"pnrCreatedWithin24hrs":true,"creationDate":"2014-03-15T13:50:00-06:00","tripType":"ROUND_TRIP","adultWihtLapInfantCount":0,"petc":false,"pointsBooking":false,"gdsBooking":false,"interlinePnr":false,"outOfSyncPnr":false,"unAccompaniedMinor":false,"irop":false,"oAndDList":[{"flightSeg":{"flightId":1,"arrivalDateTime":"2014-05-08T15:35:00-05:00","departureDateTime":"2014-05-08T06:50:00-08:00","flightNum":"0350","classOfService":"S","cabinType":"MC","segNum":1,"status":"HK","aircraftType":"A320","marketingAirline":"VIRGIN_AMERICA","departure":"SFO","arrival":"BOS","withinACSWindow":false,"flownSegment":false,"thruFlight":false},"origin":"SFO","destination":"BOS","pointsInfo":{}},{"flightSeg":{"flightId":2,"arrivalDateTime":"2014-05-09T12:45:00-08:00","departureDateTime":"2014-05-09T08:55:00-05:00","flightNum":"0351","classOfService":"S","cabinType":"MC","segNum":2,"status":"HK","aircraftType":"A320","marketingAirline":"VIRGIN_AMERICA","departure":"BOS","arrival":"SFO","withinACSWindow":false,"flownSegment":false,"thruFlight":false},"origin":"BOS","destination":"SFO","pointsInfo":{}}],"seatInfoList":[{"seat":{"seatNumber":"13C","seatLetter":"C","cabinType":"MC","open":false,"exitRow":false,"nonRecline":false,"mce":false,"aisle":true,"window":false,"middle":false},"guestId":"01.01","flightNum":"0350","flightId":1},{"seat":{"seatNumber":"13C","seatLetter":"C","cabinType":"MC","open":false,"exitRow":false,"nonRecline":false,"mce":false,"aisle":true,"window":false,"middle":false},"guestId":"01.01","flightNum":"0351","flightId":2}],"paxList":[{"firstName":"FOO","lastName":"BAR","guestId":"01.01","paxType":"ADULT","ticketNum":"9842137652642"}],"pnrFareInfo":{"fareInformation":[{"totalFare":356.00,"BaseFare":310.70,"taxDetails":[{"taxCode":"US1","taxAmount":23.30},{"taxCode":"ZP","taxAmount":8.00},{"taxCode":"XF","taxAmount":9.00},{"taxCode":"AY","taxAmount":5.00}],"fareBasisCode":"S21QNR"}],"pnrTotalCost":356.00},"paymentInfo":{"paymentInfo":{"ccNumber":"XXXXXXXXXXXX1111","cardType":"VISA","cardHolderName":"FOO BAR","transactionTime":"2014-03-15T00:00:00"}},"contact":{"email":"FOO@BAR.COMCC","phone":{"phoneNumber":"1234567891","phoneType":"HOME"}},"addressInfo":{"addressOne":"ASSFSDFSDFSDF","addressTwo":"ASSFSDFSDFSDF","city":"ASDASDASD","state":"ALASKA","zipCode":"13123"}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment