Sample POST /reservations API

API:POST /reservations/1/mh

JSON data received from server

{
 "passengers": [
   {
     "surname": "COOPER",
     "givenName": "ADTONE",
     "email": "kevin.osullivan0@sita.aero",
     "phoneNumber": "+447770728190",
     "paxType": "ADT",
     "ffqNumber": "304250446",
     "ffqAirline": "MH"
   },
   {
     "surname": "COOPER",
     "givenName": "ADTTWO",
     "email": "kevin.osullivan1@sita.aero",
     "phoneNumber": "+447770728191",
     "paxType": "ADT",
     "ffqNumber": "304250446",
     "ffqAirline": "MH"
   },
   {
     "surname": "COOPER",
     "givenName": "CNNONE",
     "email": "kevin.osullivan0@sita.aero",
     "phoneNumber": "+447770728190",
     "paxType": "CNN",
     "dateOfBirth": "2009-01-01"
   },
   {
     "surname": "COOPER",
     "givenName": "INFONE",
     "email": "kevin.osullivan0@sita.aero",
     "phoneNumber": "+447770728190",
     "paxType": "INF",
     "dateOfBirth": "2012-01-01"
   }
 ],
    "magicString":"lN+z0MKpelKTSV8zUhl4MQIWgTH4KeaNKkLtHu8cVFmVSVEd13TiMUtS
    Gw6B1lHwEp9dwpbvCBEPSUeqiNQClRyJCC9COb2BkuoH4ZCl2jzdj5GByTlOKpOsnGW4+j4
    d4vWF774ptLeqJXlSnYsVxv2YNTpOLLgsOObgadD/SKcAq290l4qqIe6l768Vta3J8/431q
    bPw+3nN7ndAMNpHmuVmnmzF/6UHtPZQ5UtgjkFbp5PNBYoOpjtxjRcKA4J7Abzw7rtix3mr
    WRH8lXZj8zVISPClHp2jPKsh6nkddWF4iZDDxY6/3mjmpJtg6U84gm7plMsdnjQ9Ca5H9U6
    jRwhnsrjL+jnn0fgRzm7VXnI3uSfwCsm11a7LqBVxL+IIln+gS8ozxpVfQHKgbu1iGcFACM
    +tw/ub1Bdx402XaE+SI+DDnHvW85t5Gv0YPtusMj4wQILCcaaGHtlVuoAdUQJgEWexD99fY
    NjpKQrav8/SdJEydBftWrA2XLAXF/X9gPnXQRbKFlJcIVZ3nvLgi0QQfYNu5d7JYEVx+ZZb
    3Q0ZPiVzBGmsdCpZb36gf/r/QHfcsMygtufMFfpW6ZDz20FAlsY0Wl896g5ssUX+XqlcpJp
    RRWxushC4SjZ8w11zrLD/Gp+1DEmGc7H2naDLX5AJO/reoi8QiGXYTCVUyH3Axuv/Vi5RVj
    rTqIAVfplxOQcGi5m2FcG8ffg15nwDC09r6L7zgkIrJLajMOZxu8rsvAM6LElf5I0+d4Y9X
    0UexqUSc+UIZpBDpYFbg9gG1KkmWyN60j95SvASOGR56rDqGpVB5Y+fz4MgJ6IUgbm14FUq
    XURw9L1sXfNcAcVi5pqchAlyjse5hzcjZcPB40onaiuhtlpnQbLnbeu4hdfN1S9yjI3m6Iq
    E9mtd/T3UOrkGSBm1NzJyXLhAOQVIXfgdGCeIiYYOuxhYMbyjSbBXbr7MKcPel6bBYP3z2a
    7Dy/Hxy6U5oVWGFb/dnkUYZCKmADk23pj4WcvZ0yBnZo25/QRo8gNpcrt6g1RWF6ogeyKCN
    5SvL7qGW9EC92lCzRfQuMuBBKS+97Cv7Scl5o4w+x6xsKuboQdtPhVm4YNBOn2UZyqCRb9q
    UXECRTGgyDsAWDos8UkiEWaSbRrJkFApIxMgWwmFZClcRKm6quHcE004Tywc4rsO2ShJn/b
    frbYlSJAAkry5pfIDwlUJ3/FDnHz8/+C68OB8cJUFtsQbT//452lRnO5IcdTU9nxkxk=",
 "creditCardPaymentInfo": {
   "cardType": 1,
   "cardCode": "VI",
   "cardNumber": "4200000000000000",
   "expireDate_MMyyyy": "062016",
   "cardHolderName": "JOHN SMITH",
   "ccv": "123"
 }
}
 
JSON data received from server
 
{
 "processingDurationMillis": 12240,
 "authorisedAPI": true,
 "success": true,
 "airline": "mh",
 "airReservation": {
   "bookingReferenceID": "W1LYK",
   "originDestinationOptions": [
     {
       "stopOvers": [],
       "directFlight": true,
       "flights": [
         {
           "flightNumber": "0004",
           "departureAirport": {
             "code": "KUL",
             "name": "Kuala Lumpur Intl",
             "city": "Kuala Lumpur",
             "country": "Malaysia",
             "lat": 2.745578,
             "lng": 101.709917,
             "terminal": null,
             "gate": null,
             "timezone": "Asia/Kuala_Lumpur"
           },
           "arrivalAirport": {
             "code": "LHR",
             "name": "Heathrow",
             "city": "London",
             "country": "United Kingdom",
             "lat": 51.4775,
             "lng": -0.461389,
             "terminal": null,
             "gate": null,
             "timezone": "Europe/London"
           },
           "marketingAirline": null,
           "operatingAirline": "MH",
           "equipment": "",
           "flightRPH": 1,
           "comments": [],
           "depScheduled": "2013-05-21T10:05:00.000+08:00",
           "arrScheduled": "2013-05-21T16:15:00.000+01:00",
           "depEstimated": null,
           "depActual": null,
           "arrEstimated": null,
           "arrActual": null,
           "stopQuantity": 0,
           "bookingClassAvails": [
             {
               "code": "V",
               "quantity": 3,
               "statusCode": "",
               "rph": -1
             }
           ],
           "resBookDesigCode": "V",
           "minutesToScheduledFlightDeparture": 108501
         }
       ]
     }
   ],
   "passengers": [
     {
       "passengerTypeCode": "ADT",
       "namePrefix": "",
       "givenName": "ADTONE",
       "surname": "COOPER",
       "travelerRefNumber": 1,
       "dob": null,
       "telephones": [
         {
           "phoneNumber": "-447770728190",
           "phoneLocationType": 6,
           "phoneTechType": 5,
           "formatted": false,
           "areaCityCode": "",
           "travlerRefNbr": -1
         }
       ],
       "addresses": [],
       "emails": [
         {
           "travlerRefNbr": -1,
           "email": "KEVIN.OSULLIVAN0@SITA.AERO"
         }
       ],
       "infant": false,
       "parentTravelerRefNumber": 0
     },
     {
       "passengerTypeCode": "ADT",
       "namePrefix": "",
       "givenName": "ADTTWO",
       "surname": "COOPER",
       "travelerRefNumber": 2,
       "dob": null,
       "telephones": [
         {
           "phoneNumber": "-447770728191",
           "phoneLocationType": 6,
           "phoneTechType": 5,
           "formatted": false,
           "areaCityCode": "",
           "travlerRefNbr": -1
         }
       ],
       "addresses": [],
       "emails": [
         {
           "travlerRefNbr": -1,
           "email": "KEVIN.OSULLIVAN1@SITA.AERO"
         }
       ],
       "infant": false,
       "parentTravelerRefNumber": 0
     },
     {
       "passengerTypeCode": "CHD",
       "namePrefix": "",
       "givenName": "CNNONE",
       "surname": "COOPER",
       "travelerRefNumber": 3,
       "dob": "2009-01-01",
       "telephones": [
         {
           "phoneNumber": "-447770728190",
           "phoneLocationType": 6,
           "phoneTechType": 5,
           "formatted": false,
           "areaCityCode": "",
           "travlerRefNbr": -1
         }
       ],
       "addresses": [],
       "emails": [
         {
           "travlerRefNbr": -1,
           "email": "KEVIN.OSULLIVAN0@SITA.AERO"
         }
       ],
       "infant": false,
       "parentTravelerRefNumber": 0
     },
     {
       "passengerTypeCode": "INF",
       "namePrefix": null,
       "givenName": "INFONE",
       "surname": "INFANT",
       "travelerRefNumber": 0,
       "dob": null,
       "telephones": [],
       "addresses": [],
       "emails": [],
       "infant": true,
       "parentTravelerRefNumber": 1
     }
   ],
   "ticketing": {
     "ticketType": "eTicket",
     "ticketingStatus": 3,
     "travelerRefNumber": "1 2 3",
     "ticketTimeLimit": null
   },
   "remarks": [],
   "SSRs": [
     {
       "travlerRefNbr": "3",
       "airlineCode": "MH",
       "serviceQuantity": 1,
       "status": "HK",
       "request": "01JAN09",
       "flightRefNbr": "",
       "ssrcode": "CHLD"
     },
     {
       "travlerRefNbr": "1",
       "airlineCode": "MH",
       "serviceQuantity": 0,
       "status": "NN",
       "request": "MH304250446.BLUE",
       "flightRefNbr": "",
       "ssrcode": "FQTV"
     },
     {
       "travlerRefNbr": "2",
       "airlineCode": "MH",
       "serviceQuantity": 0,
       "status": "NN",
       "request": "MH304250446.BLUE",
       "flightRefNbr": "",
       "ssrcode": "FQTV"
     },
     {
       "travlerRefNbr": "1",
       "airlineCode": "MH",
       "serviceQuantity": 1,
       "status": "HK",
       "request": ".INFANT/INFONE 01JAN12/INF1",
       "flightRefNbr": "1",
       "ssrcode": "INFT"
     },
     {
       "travlerRefNbr": "1",
       "airlineCode": "MH",
       "serviceQuantity": 1,
       "status": "HK",
       "request": ".2322400928834C1",
       "flightRefNbr": "1",
       "ssrcode": "TKNE"
     },
     {
       "travlerRefNbr": "2",
       "airlineCode": "MH",
       "serviceQuantity": 1,
       "status": "HK",
       "request": ".2322400928835C1",
       "flightRefNbr": "1",
       "ssrcode": "TKNE"
     },
     {
       "travlerRefNbr": "3",
       "airlineCode": "MH",
       "serviceQuantity": 1,
       "status": "HK",
       "request": ".2322400928836C1",
       "flightRefNbr": "1",
       "ssrcode": "TKNE"
     },
     {
       "travlerRefNbr": "1",
       "airlineCode": "MH",
       "serviceQuantity": 1,
       "status": "HK",
       "request": ".INF2322400928837C1",
       "flightRefNbr": "1",
       "ssrcode": "TKNE"
     }
   ],
   "OSIs": [
     {
       "travlerRefNbr": "1",
       "airlineCode": "YY",
       "request": "1INF INFANT/INFONE"
     }
   ]
 },
 "pnrticketed": true,
 "Errors": [],
 "Warnings": []
}