Advertisement
taweesoft

Untitled

Jan 27th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 12.15 KB | None | 0 0
  1. {
  2.     "success": 1,
  3.     "data": {
  4.       "id": 37,
  5.       "key": "37ANQVT",
  6.       "pnrs": [
  7.         {
  8.           "pnr": "KX7H2U",
  9.           "expiryDatetime": "2019-01-30T23:59:00.000+07:00",
  10.           "journeyIndex": 0
  11.         },
  12.         {
  13.           "pnr": "KX7H2U",
  14.           "expiryDatetime": "2019-01-30T23:59:00.000+07:00",
  15.           "journeyIndex": 1
  16.         }
  17.       ],
  18.       "reservation": {
  19.         "id": "dd9f9455-d44a-4718-b4fe-fb98cdfcc329",
  20.         "currency": {
  21.           "code": "THB",
  22.           "name": "Thai Baht"
  23.         },
  24.         "totalAmount": 15852.85,
  25.         "paid": false,
  26.         "reserved": true,
  27.         "journeys": [
  28.           {
  29.             "id": "20c70cb7-ed67-4878-a363-5831d6991c54",
  30.             "bookingKey": "da1c6353a67b81e2edef3b843493b14c884ca6e6",
  31.             "flight": {
  32.               "bookingKey": "da1c6353a67b81e2edef3b843493b14c884ca6e6",
  33.               "flightType": "RT",
  34.               "from": "BKK",
  35.               "to": "ICN",
  36.               "availability": null,
  37.               "departureDate": "2019-08-19T01:45:00.000+07:00",
  38.               "returnDate": "2019-08-22T20:05:00.000+09:00",
  39.               "journeys": [
  40.                 {
  41.                   "numberOfStop": 0,
  42.                   "tripDuration": 335,
  43.                   "fareBasis": "XOW7C",
  44.                   "tourCode": "",
  45.                   "accountCode": "",
  46.                   "segments": [
  47.                     {
  48.                       "rbd": "X",
  49.                       "flightDetail": {
  50.                         "sourceAirport": "BKK",
  51.                         "destinationAirport": "ICN",
  52.                         "airlineId": "H1",
  53.                         "flightNumber": "9860",
  54.                         "departureDatetime": "2019-08-19T01:45:00.000+07:00",
  55.                         "arrivalDatetime": "2019-08-19T09:20:00.000+09:00"
  56.                       },
  57.                       "aircraftModel": {
  58.                         "name": "737"
  59.                       },
  60.                       "cabinClass": "Economy"
  61.                     }
  62.                   ]
  63.                 },
  64.                 {
  65.                   "numberOfStop": 0,
  66.                   "tripDuration": 354,
  67.                   "fareBasis": "TOW7C",
  68.                   "tourCode": "",
  69.                   "accountCode": "",
  70.                   "segments": [
  71.                     {
  72.                       "rbd": "T",
  73.                       "flightDetail": {
  74.                         "sourceAirport": "ICN",
  75.                         "destinationAirport": "BKK",
  76.                         "airlineId": "H1",
  77.                         "flightNumber": "9857",
  78.                         "departureDatetime": "2019-08-22T20:05:00.000+09:00",
  79.                         "arrivalDatetime": "2019-08-22T23:59:00.000+07:00"
  80.                       },
  81.                       "aircraftModel": {
  82.                         "name": "737"
  83.                       },
  84.                       "cabinClass": "Economy"
  85.                     }
  86.                   ]
  87.                 }
  88.               ],
  89.               "fareDetail": {
  90.                 "routeFare": {
  91.                   "tax": 3445,
  92.                   "sellingFarePrice": 12407.85,
  93.                   "sellingPrice": 15852.85,
  94.                   "fullFarePrice": 13009.82,
  95.                   "fullPrice": 16454.82,
  96.                   "bigbonusFarePrice": 12372.85,
  97.                   "bigbonusPrice": 15817.85
  98.                 },
  99.                 "currency": {
  100.                   "code": "THB"
  101.                 }
  102.               }
  103.             },
  104.             "journeyIndex": 0,
  105.             "bookingInfo": [
  106.               {
  107.                 "id": "a70432ae-1503-4f28-8b94-0590e6bfd8f6",
  108.                 "passenger": {
  109.                   "uuid": "50e27451-0b25-4440-b660-7735e280ac47",
  110.                   "type": "adult",
  111.                   "passport": {
  112.                     "id": "63ac09a3-1623-4726-a7af-18b3935d5b1c",
  113.                     "number": "AB12313",
  114.                     "expiryDate": "2020-02-22",
  115.                     "issuingCountry": {
  116.                       "code": "TH"
  117.                     }
  118.                   },
  119.                   "title": "MR",
  120.                   "firstname": "TAVERAT",
  121.                   "lastname": "CHAIMAN",
  122.                   "middlename": "",
  123.                   "identificationNumber": "",
  124.                   "birthDate": "2007-08-22",
  125.                   "nationCountry": {
  126.                     "code": "AF"
  127.                   }
  128.                 },
  129.                 "ancillaryKeys": [],
  130.                 "seatSelectionKey": null,
  131.                 "basePrice": 15145,
  132.                 "netPrice": 15145,
  133.                 "sellingPrice": 15852.85,
  134.                 "charges": [
  135.                   {
  136.                     "category": "TAX",
  137.                     "basePrice": 3445,
  138.                     "netPrice": 3445,
  139.                     "fullPrice": 3445,
  140.                     "sellingPrice": 3445,
  141.                     "bigbonusPrice": -1
  142.                   },
  143.                   {
  144.                     "category": "FARE",
  145.                     "basePrice": 11700,
  146.                     "netPrice": 11700,
  147.                     "fullPrice": 13009.82,
  148.                     "sellingPrice": 12407.85,
  149.                     "bigbonusPrice": 12372.85
  150.                   }
  151.                 ]
  152.               }
  153.             ]
  154.           },
  155.           {
  156.             "id": "036a734c-0079-454a-866c-f5131549c760",
  157.             "bookingKey": "da1c6353a67b81e2edef3b843493b14c884ca6e6",
  158.             "flight": {
  159.               "bookingKey": "da1c6353a67b81e2edef3b843493b14c884ca6e6",
  160.               "flightType": "RT",
  161.               "from": "BKK",
  162.               "to": "ICN",
  163.               "availability": null,
  164.               "departureDate": "2019-08-19T01:45:00.000+07:00",
  165.               "returnDate": "2019-08-22T20:05:00.000+09:00",
  166.               "journeys": [
  167.                 {
  168.                   "numberOfStop": 0,
  169.                   "tripDuration": 335,
  170.                   "fareBasis": "XOW7C",
  171.                   "tourCode": "",
  172.                   "accountCode": "",
  173.                   "segments": [
  174.                     {
  175.                       "rbd": "X",
  176.                       "flightDetail": {
  177.                         "sourceAirport": "BKK",
  178.                         "destinationAirport": "ICN",
  179.                         "airlineId": "H1",
  180.                         "flightNumber": "9860",
  181.                         "departureDatetime": "2019-08-19T01:45:00.000+07:00",
  182.                         "arrivalDatetime": "2019-08-19T09:20:00.000+09:00"
  183.                       },
  184.                       "aircraftModel": {
  185.                         "name": "737"
  186.                       },
  187.                       "cabinClass": "Economy"
  188.                     }
  189.                   ]
  190.                 },
  191.                 {
  192.                   "numberOfStop": 0,
  193.                   "tripDuration": 354,
  194.                   "fareBasis": "TOW7C",
  195.                   "tourCode": "",
  196.                   "accountCode": "",
  197.                   "segments": [
  198.                     {
  199.                       "rbd": "T",
  200.                       "flightDetail": {
  201.                         "sourceAirport": "ICN",
  202.                         "destinationAirport": "BKK",
  203.                         "airlineId": "H1",
  204.                         "flightNumber": "9857",
  205.                         "departureDatetime": "2019-08-22T20:05:00.000+09:00",
  206.                         "arrivalDatetime": "2019-08-22T23:59:00.000+07:00"
  207.                       },
  208.                       "aircraftModel": {
  209.                         "name": "737"
  210.                       },
  211.                       "cabinClass": "Economy"
  212.                     }
  213.                   ]
  214.                 }
  215.               ],
  216.               "fareDetail": {
  217.                 "routeFare": {
  218.                   "tax": 3445,
  219.                   "sellingFarePrice": 12407.85,
  220.                   "sellingPrice": 15852.85,
  221.                   "fullFarePrice": 13009.82,
  222.                   "fullPrice": 16454.82,
  223.                   "bigbonusFarePrice": 12372.85,
  224.                   "bigbonusPrice": 15817.85
  225.                 },
  226.                 "currency": {
  227.                   "code": "THB"
  228.                 }
  229.               }
  230.             },
  231.             "journeyIndex": 1,
  232.             "bookingInfo": [
  233.               {
  234.                 "id": "35525709-f476-4ba8-9dba-1abce1208132",
  235.                 "passenger": {
  236.                   "uuid": "50e27451-0b25-4440-b660-7735e280ac47",
  237.                   "type": "adult",
  238.                   "passport": {
  239.                     "id": "63ac09a3-1623-4726-a7af-18b3935d5b1c",
  240.                     "number": "AB12313",
  241.                     "expiryDate": "2020-02-22",
  242.                     "issuingCountry": {
  243.                       "code": "TH"
  244.                     }
  245.                   },
  246.                   "title": "MR",
  247.                   "firstname": "TAVERAT",
  248.                   "lastname": "CHAIMAN",
  249.                   "middlename": "",
  250.                   "identificationNumber": "",
  251.                   "birthDate": "2007-08-22",
  252.                   "nationCountry": {
  253.                     "code": "AF"
  254.                   }
  255.                 },
  256.                 "ancillaryKeys": [],
  257.                 "seatSelectionKey": null,
  258.                 "basePrice": 0,
  259.                 "netPrice": 0,
  260.                 "sellingPrice": 0,
  261.                 "charges": [
  262.                   {
  263.                     "category": "TAX",
  264.                     "basePrice": 0,
  265.                     "netPrice": 0,
  266.                     "fullPrice": 0,
  267.                     "sellingPrice": 0,
  268.                     "bigbonusPrice": -1
  269.                   },
  270.                   {
  271.                     "category": "FARE",
  272.                     "basePrice": 0,
  273.                     "netPrice": 0,
  274.                     "fullPrice": 0,
  275.                     "sellingPrice": 0,
  276.                     "bigbonusPrice": -1
  277.                   }
  278.                 ]
  279.               }
  280.             ]
  281.           }
  282.         ],
  283.         "contactInfo": {
  284.           "title": {
  285.             "id": 1,
  286.             "title": "MR"
  287.           },
  288.           "firstname": "TAVERAT",
  289.           "middlename": "",
  290.           "lastname": "CHAIMAN",
  291.           "phoneCountryCode": {
  292.             "id": 1,
  293.             "code": "66",
  294.             "country": {
  295.               "code": "TH",
  296.               "name": "Thailand",
  297.               "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  298.             }
  299.           },
  300.           "phoneNumber": "832529994",
  301.           "email": "Taverat.ch@gmail.com"
  302.         },
  303.         "createdAt": "2019-01-27T15:30:47.000Z"
  304.       }
  305.     },
  306.     "data_mapping": {
  307.       "airlines": [
  308.         {
  309.           "code": "H1",
  310.           "name": {
  311.             "en": "Hahn Air Systems",
  312.             "th": "ฮาห์น แอร์"
  313.           },
  314.           "primaryIconUrl": "https://assets-flight.thaitravelcenter.com/airlines/H1.png",
  315.           "secondaryIconUrl": "https://assets-flight.thaitravelcenter.com/airlines/H1.png",
  316.           "colorCode": "440099"
  317.         }
  318.       ],
  319.       "airports": [
  320.         {
  321.           "code": "BKK",
  322.           "name": "Suvarnabhumi Airport",
  323.           "latitude": "13.68109989",
  324.           "longitude": "100.7470016",
  325.           "airport_picture_url": null,
  326.           "city": {
  327.             "code": "BKK",
  328.             "name": "Bangkok"
  329.           },
  330.           "country": {
  331.             "code": "TH",
  332.             "name": "Thailand",
  333.             "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  334.           }
  335.         },
  336.         {
  337.           "code": "ICN",
  338.           "name": "Incheon International Airport",
  339.           "latitude": "37.46910095",
  340.           "longitude": "126.4509964",
  341.           "airport_picture_url": null,
  342.           "city": {
  343.             "code": "SEL",
  344.             "name": "Seoul"
  345.           },
  346.           "country": {
  347.             "code": "KR",
  348.             "name": "South Korea",
  349.             "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/055-south-korea.png"
  350.           }
  351.         }
  352.       ]
  353.     },
  354.     "data_urls": {
  355.       "callback": "https://dev-api-flight.thaitravelcenter.com/payment/creditCard"
  356.     }
  357.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement