Advertisement
taweesoft

Untitled

Feb 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 22.45 KB | None | 0 0
  1. {
  2.     "success": 1,
  3.     "surcharge": 2.75,
  4.     "data": {
  5.       "id": 36,
  6.       "key": "5000003692",
  7.       "pnrs": [
  8.         {
  9.           "pnr": "P78X9S",
  10.           "ticketNumber": null,
  11.           "expiryDatetime": "2019-03-23T23:59:00.000+07:00",
  12.           "journeyIndex": 0,
  13.           "reservationJourneyIndex": 0
  14.         },
  15.         {
  16.           "pnr": "P692GG",
  17.           "ticketNumber": null,
  18.           "expiryDatetime": "2019-02-21T23:59:00.000+07:00",
  19.           "journeyIndex": 0,
  20.           "reservationJourneyIndex": 1
  21.         }
  22.       ],
  23.       "payment": {
  24.         "paid": false,
  25.         "channel": null,
  26.         "creditCardLast4Digits": null,
  27.         "creditCardType": null,
  28.         "paymentDate": null
  29.       },
  30.       "reservation": {
  31.         "id": "ba9d80c4-2c21-4a4b-9d2a-bd7c67b66065",
  32.         "currency": {
  33.           "code": "THB",
  34.           "name": "Thai Baht"
  35.         },
  36.         "totalAmount": 5402.91,
  37.         "paid": false,
  38.         "reserved": true,
  39.         "journeys": [
  40.           {
  41.             "id": "199d55b2-f304-4b3a-be3e-7c8d62f6790a",
  42.             "bookingKey": "e4082e8b96c82897db732a61ce64f26028dffee5",
  43.             "flight": {
  44.               "bookingKey": "e4082e8b96c82897db732a61ce64f26028dffee5",
  45.               "flightType": "OW",
  46.               "from": "BKK",
  47.               "to": "CNX",
  48.               "isPopular": true,
  49.               "isRecommended": false,
  50.               "availability": null,
  51.               "departureDate": "2019-04-22T13:10:00.000+07:00",
  52.               "returnDate": "2019-04-22T13:10:00.000+07:00",
  53.               "numberOfWatch": 23,
  54.               "journeys": [
  55.                 {
  56.                   "numberOfStop": 0,
  57.                   "tripDuration": 70,
  58.                   "fareBasis": "V1AOTH",
  59.                   "tourCode": "",
  60.                   "accountCode": "",
  61.                   "isDomestic": true,
  62.                   "numberOfOvernight": 0,
  63.                   "segments": [
  64.                     {
  65.                       "rbd": "V",
  66.                       "flightDetail": {
  67.                         "sourceAirport": "BKK",
  68.                         "destinationAirport": "CNX",
  69.                         "airlineId": "TG",
  70.                         "flightNumber": "110",
  71.                         "departureDatetime": "2019-04-22T13:10:00.000+07:00",
  72.                         "arrivalDatetime": "2019-04-22T14:20:00.000+07:00"
  73.                       },
  74.                       "aircraftModel": {
  75.                         "name": "Airbus 330"
  76.                       },
  77.                       "cabinClass": "Economy"
  78.                     }
  79.                   ]
  80.                 }
  81.               ],
  82.               "fareDetail": {
  83.                 "routeFare": {
  84.                   "tax": 100,
  85.                   "basePrice": 1210,
  86.                   "netFarePrice": 1149.5,
  87.                   "markupFarePrice": 1149.5,
  88.                   "sellingFarePrice": 1155.25,
  89.                   "sellingPrice": 1255.25,
  90.                   "customerSellingFarePrice": 0,
  91.                   "customerSellingPrice": 0,
  92.                   "fullFarePrice": 1217.32,
  93.                   "fullPrice": 1317.32,
  94.                   "bigbonusFarePrice": 0,
  95.                   "bigbonusPrice": 0
  96.                 },
  97.                 "currency": {
  98.                   "code": "THB"
  99.                 }
  100.               }
  101.             },
  102.             "journeyIndex": 0,
  103.             "bookingInfo": [
  104.               {
  105.                 "id": "330163c1-c9da-4f20-99c2-b9d912d5278a",
  106.                 "passenger": {
  107.                   "uuid": "94d22da0-046e-45c9-8980-8d3bbf99f9a4",
  108.                   "type": "adult",
  109.                   "passport": {
  110.                     "id": "0bbd1892-2737-4a7f-83d3-4d01fcabb8c1",
  111.                     "number": "AB837448",
  112.                     "expiryDate": "2023-02-12",
  113.                     "issuingCountry": {
  114.                       "id": 1,
  115.                       "code": "TH",
  116.                       "name": "Thailand",
  117.                       "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  118.                     }
  119.                   },
  120.                   "title": "MR",
  121.                   "firstname": "TAVERAT",
  122.                   "lastname": "CHAIMAN",
  123.                   "middlename": "",
  124.                   "identificationNumber": "",
  125.                   "birthDate": "1996-02-11",
  126.                   "nationality": {
  127.                     "id": 206,
  128.                     "code": "TH",
  129.                     "name": "Thai"
  130.                   }
  131.                 },
  132.                 "ancillaryKeys": [],
  133.                 "seatSelectionKey": null,
  134.                 "basePrice": 1310,
  135.                 "netPrice": 1249.5,
  136.                 "markupPrice": 1249.5,
  137.                 "sellingPrice": 1255.25,
  138.                 "customerSellingPrice": 0,
  139.                 "useCustomerSellingPrice": false,
  140.                 "charges": [
  141.                   {
  142.                     "category": "TAX",
  143.                     "basePrice": 100,
  144.                     "netPrice": 100,
  145.                     "markupPrice": 100,
  146.                     "fullPrice": 100,
  147.                     "sellingPrice": 100,
  148.                     "customerSellingPrice": 0,
  149.                     "bigbonusPrice": 0
  150.                   },
  151.                   {
  152.                     "category": "FARE",
  153.                     "basePrice": 1210,
  154.                     "netPrice": 1149.5,
  155.                     "markupPrice": 1149.5,
  156.                     "fullPrice": 1217.32,
  157.                     "sellingPrice": 1155.25,
  158.                     "customerSellingPrice": 0,
  159.                     "bigbonusPrice": 0
  160.                   }
  161.                 ]
  162.               },
  163.               {
  164.                 "id": "f52b96f9-4e13-47ad-9469-4655161fb7cc",
  165.                 "passenger": {
  166.                   "uuid": "133c8612-41b5-43f6-accb-bad1bf078170",
  167.                   "type": "child",
  168.                   "passport": {
  169.                     "id": "26b466ae-c6dd-4a58-8587-b5a9626248c7",
  170.                     "number": "JD837483",
  171.                     "expiryDate": "2021-02-13",
  172.                     "issuingCountry": {
  173.                       "id": 1,
  174.                       "code": "TH",
  175.                       "name": "Thailand",
  176.                       "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  177.                     }
  178.                   },
  179.                   "title": "MSTR",
  180.                   "firstname": "SUCHART",
  181.                   "lastname": "CHAIMAN",
  182.                   "middlename": "",
  183.                   "identificationNumber": "",
  184.                   "birthDate": "2011-02-13",
  185.                   "nationality": {
  186.                     "id": 20,
  187.                     "code": "BE",
  188.                     "name": "Belgian"
  189.                   }
  190.                 },
  191.                 "ancillaryKeys": [],
  192.                 "seatSelectionKey": null,
  193.                 "basePrice": 1010,
  194.                 "netPrice": 964.5,
  195.                 "markupPrice": 964.5,
  196.                 "sellingPrice": 968.83,
  197.                 "customerSellingPrice": 0,
  198.                 "useCustomerSellingPrice": false,
  199.                 "charges": [
  200.                   {
  201.                     "category": "TAX",
  202.                     "basePrice": 100,
  203.                     "netPrice": 100,
  204.                     "markupPrice": 100,
  205.                     "fullPrice": 100,
  206.                     "sellingPrice": 100,
  207.                     "customerSellingPrice": 0,
  208.                     "bigbonusPrice": 0
  209.                   },
  210.                   {
  211.                     "category": "FARE",
  212.                     "basePrice": 910,
  213.                     "netPrice": 864.5,
  214.                     "markupPrice": 864.5,
  215.                     "fullPrice": 915.51,
  216.                     "sellingPrice": 868.83,
  217.                     "customerSellingPrice": 0,
  218.                     "bigbonusPrice": 0
  219.                   }
  220.                 ]
  221.               },
  222.               {
  223.                 "id": "bba3d114-4f04-46ae-b49b-1f34a0c88052",
  224.                 "passenger": {
  225.                   "uuid": "d5436b4c-555a-4420-a51e-7e74a20b05e7",
  226.                   "type": "infant",
  227.                   "passport": {
  228.                     "id": "4878cd49-5675-4860-86e4-c6fb1d825d93",
  229.                     "number": "KK83848",
  230.                     "expiryDate": "2020-02-12",
  231.                     "issuingCountry": {
  232.                       "id": 1,
  233.                       "code": "TH",
  234.                       "name": "Thailand",
  235.                       "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  236.                     }
  237.                   },
  238.                   "title": "MISS",
  239.                   "firstname": "SUWAN",
  240.                   "lastname": "CHAIMAN",
  241.                   "middlename": "",
  242.                   "identificationNumber": "",
  243.                   "birthDate": "2018-02-12",
  244.                   "nationality": {
  245.                     "id": 206,
  246.                     "code": "TH",
  247.                     "name": "Thai"
  248.                   }
  249.                 },
  250.                 "ancillaryKeys": [],
  251.                 "seatSelectionKey": null,
  252.                 "basePrice": 305,
  253.                 "netPrice": 289.75,
  254.                 "markupPrice": 289.75,
  255.                 "sellingPrice": 291.2,
  256.                 "customerSellingPrice": 0,
  257.                 "useCustomerSellingPrice": false,
  258.                 "charges": [
  259.                   {
  260.                     "category": "TAX",
  261.                     "basePrice": 0,
  262.                     "netPrice": 0,
  263.                     "markupPrice": 0,
  264.                     "fullPrice": 0,
  265.                     "sellingPrice": 0,
  266.                     "customerSellingPrice": 0,
  267.                     "bigbonusPrice": 0
  268.                   },
  269.                   {
  270.                     "category": "FARE",
  271.                     "basePrice": 305,
  272.                     "netPrice": 289.75,
  273.                     "markupPrice": 289.75,
  274.                     "fullPrice": 306.85,
  275.                     "sellingPrice": 291.2,
  276.                     "customerSellingPrice": 0,
  277.                     "bigbonusPrice": 0
  278.                   }
  279.                 ]
  280.               }
  281.             ]
  282.           },
  283.           {
  284.             "id": "76c2150f-a3bb-44fd-b52a-4389c2285af8",
  285.             "bookingKey": "6e13631814e6f0015cc5f572496e5dc85c0785ea",
  286.             "flight": {
  287.               "bookingKey": "6e13631814e6f0015cc5f572496e5dc85c0785ea",
  288.               "flightType": "OW",
  289.               "from": "CNX",
  290.               "to": "BKK",
  291.               "isPopular": true,
  292.               "isRecommended": false,
  293.               "availability": null,
  294.               "departureDate": "2019-04-25T19:00:00.000+07:00",
  295.               "returnDate": "2019-04-25T19:00:00.000+07:00",
  296.               "numberOfWatch": 19,
  297.               "journeys": [
  298.                 {
  299.                   "numberOfStop": 0,
  300.                   "tripDuration": 85,
  301.                   "fareBasis": "RNWW",
  302.                   "tourCode": "",
  303.                   "accountCode": "",
  304.                   "isDomestic": true,
  305.                   "numberOfOvernight": 0,
  306.                   "segments": [
  307.                     {
  308.                       "rbd": "R",
  309.                       "flightDetail": {
  310.                         "sourceAirport": "CNX",
  311.                         "destinationAirport": "BKK",
  312.                         "airlineId": "PG",
  313.                         "flightNumber": "220",
  314.                         "departureDatetime": "2019-04-25T19:00:00.000+07:00",
  315.                         "arrivalDatetime": "2019-04-25T20:25:00.000+07:00"
  316.                       },
  317.                       "aircraftModel": {
  318.                         "name": "Airbus 319"
  319.                       },
  320.                       "cabinClass": "Economy"
  321.                     }
  322.                   ]
  323.                 }
  324.               ],
  325.               "fareDetail": {
  326.                 "routeFare": {
  327.                   "tax": 100,
  328.                   "basePrice": 1250,
  329.                   "netFarePrice": 1187.5,
  330.                   "markupFarePrice": 1187.5,
  331.                   "sellingFarePrice": 1193.44,
  332.                   "sellingPrice": 1293.44,
  333.                   "customerSellingFarePrice": 0,
  334.                   "customerSellingPrice": 0,
  335.                   "fullFarePrice": 1257.56,
  336.                   "fullPrice": 1357.56,
  337.                   "bigbonusFarePrice": 0,
  338.                   "bigbonusPrice": 0
  339.                 },
  340.                 "currency": {
  341.                   "code": "THB"
  342.                 }
  343.               }
  344.             },
  345.             "journeyIndex": 1,
  346.             "bookingInfo": [
  347.               {
  348.                 "id": "f8aab5b9-9751-40b3-8ef1-6687ca751772",
  349.                 "passenger": {
  350.                   "uuid": "94d22da0-046e-45c9-8980-8d3bbf99f9a4",
  351.                   "type": "adult",
  352.                   "passport": {
  353.                     "id": "0bbd1892-2737-4a7f-83d3-4d01fcabb8c1",
  354.                     "number": "AB837448",
  355.                     "expiryDate": "2023-02-12",
  356.                     "issuingCountry": {
  357.                       "id": 1,
  358.                       "code": "TH",
  359.                       "name": "Thailand",
  360.                       "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  361.                     }
  362.                   },
  363.                   "title": "MR",
  364.                   "firstname": "TAVERAT",
  365.                   "lastname": "CHAIMAN",
  366.                   "middlename": "",
  367.                   "identificationNumber": "",
  368.                   "birthDate": "1996-02-11",
  369.                   "nationality": {
  370.                     "id": 206,
  371.                     "code": "TH",
  372.                     "name": "Thai"
  373.                   }
  374.                 },
  375.                 "ancillaryKeys": [],
  376.                 "seatSelectionKey": null,
  377.                 "basePrice": 1350,
  378.                 "netPrice": 1287.5,
  379.                 "markupPrice": 1287.5,
  380.                 "sellingPrice": 1293.44,
  381.                 "customerSellingPrice": 0,
  382.                 "useCustomerSellingPrice": false,
  383.                 "charges": [
  384.                   {
  385.                     "category": "TAX",
  386.                     "basePrice": 100,
  387.                     "netPrice": 100,
  388.                     "markupPrice": 100,
  389.                     "fullPrice": 100,
  390.                     "sellingPrice": 100,
  391.                     "customerSellingPrice": 0,
  392.                     "bigbonusPrice": 0
  393.                   },
  394.                   {
  395.                     "category": "FARE",
  396.                     "basePrice": 1250,
  397.                     "netPrice": 1187.5,
  398.                     "markupPrice": 1187.5,
  399.                     "fullPrice": 1257.56,
  400.                     "sellingPrice": 1193.44,
  401.                     "customerSellingPrice": 0,
  402.                     "bigbonusPrice": 0
  403.                   }
  404.                 ]
  405.               },
  406.               {
  407.                 "id": "5d3660ce-6f38-4e50-b1e7-abd71e14146e",
  408.                 "passenger": {
  409.                   "uuid": "133c8612-41b5-43f6-accb-bad1bf078170",
  410.                   "type": "child",
  411.                   "passport": {
  412.                     "id": "26b466ae-c6dd-4a58-8587-b5a9626248c7",
  413.                     "number": "JD837483",
  414.                     "expiryDate": "2021-02-13",
  415.                     "issuingCountry": {
  416.                       "id": 1,
  417.                       "code": "TH",
  418.                       "name": "Thailand",
  419.                       "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  420.                     }
  421.                   },
  422.                   "title": "MSTR",
  423.                   "firstname": "SUCHART",
  424.                   "lastname": "CHAIMAN",
  425.                   "middlename": "",
  426.                   "identificationNumber": "",
  427.                   "birthDate": "2011-02-13",
  428.                   "nationality": {
  429.                     "id": 20,
  430.                     "code": "BE",
  431.                     "name": "Belgian"
  432.                   }
  433.                 },
  434.                 "ancillaryKeys": [],
  435.                 "seatSelectionKey": null,
  436.                 "basePrice": 1350,
  437.                 "netPrice": 1287.5,
  438.                 "markupPrice": 1287.5,
  439.                 "sellingPrice": 1293.44,
  440.                 "customerSellingPrice": 0,
  441.                 "useCustomerSellingPrice": false,
  442.                 "charges": [
  443.                   {
  444.                     "category": "TAX",
  445.                     "basePrice": 100,
  446.                     "netPrice": 100,
  447.                     "markupPrice": 100,
  448.                     "fullPrice": 100,
  449.                     "sellingPrice": 100,
  450.                     "customerSellingPrice": 0,
  451.                     "bigbonusPrice": 0
  452.                   },
  453.                   {
  454.                     "category": "FARE",
  455.                     "basePrice": 1250,
  456.                     "netPrice": 1187.5,
  457.                     "markupPrice": 1187.5,
  458.                     "fullPrice": 1257.56,
  459.                     "sellingPrice": 1193.44,
  460.                     "customerSellingPrice": 0,
  461.                     "bigbonusPrice": 0
  462.                   }
  463.                 ]
  464.               },
  465.               {
  466.                 "id": "4315d61a-24b2-4442-84c6-9aec71994456",
  467.                 "passenger": {
  468.                   "uuid": "d5436b4c-555a-4420-a51e-7e74a20b05e7",
  469.                   "type": "infant",
  470.                   "passport": {
  471.                     "id": "4878cd49-5675-4860-86e4-c6fb1d825d93",
  472.                     "number": "KK83848",
  473.                     "expiryDate": "2020-02-12",
  474.                     "issuingCountry": {
  475.                       "id": 1,
  476.                       "code": "TH",
  477.                       "name": "Thailand",
  478.                       "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  479.                     }
  480.                   },
  481.                   "title": "MISS",
  482.                   "firstname": "SUWAN",
  483.                   "lastname": "CHAIMAN",
  484.                   "middlename": "",
  485.                   "identificationNumber": "",
  486.                   "birthDate": "2018-02-12",
  487.                   "nationality": {
  488.                     "id": 206,
  489.                     "code": "TH",
  490.                     "name": "Thai"
  491.                   }
  492.                 },
  493.                 "ancillaryKeys": [],
  494.                 "seatSelectionKey": null,
  495.                 "basePrice": 315,
  496.                 "netPrice": 299.25,
  497.                 "markupPrice": 299.25,
  498.                 "sellingPrice": 300.75,
  499.                 "customerSellingPrice": 0,
  500.                 "useCustomerSellingPrice": false,
  501.                 "charges": [
  502.                   {
  503.                     "category": "TAX",
  504.                     "basePrice": 0,
  505.                     "netPrice": 0,
  506.                     "markupPrice": 0,
  507.                     "fullPrice": 0,
  508.                     "sellingPrice": 0,
  509.                     "customerSellingPrice": 0,
  510.                     "bigbonusPrice": 0
  511.                   },
  512.                   {
  513.                     "category": "FARE",
  514.                     "basePrice": 315,
  515.                     "netPrice": 299.25,
  516.                     "markupPrice": 299.25,
  517.                     "fullPrice": 316.91,
  518.                     "sellingPrice": 300.75,
  519.                     "customerSellingPrice": 0,
  520.                     "bigbonusPrice": 0
  521.                   }
  522.                 ]
  523.               }
  524.             ]
  525.           }
  526.         ],
  527.         "contactInfo": {
  528.           "title": {
  529.             "id": 1,
  530.             "title": "MR"
  531.           },
  532.           "firstname": "TAVERAT",
  533.           "middlename": "",
  534.           "lastname": "CHAIMAN",
  535.           "phoneCountryCode": {
  536.             "id": 1,
  537.             "code": "66",
  538.             "country": {
  539.               "id": 1,
  540.               "code": "TH",
  541.               "name": "Thailand",
  542.               "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  543.             }
  544.           },
  545.           "phoneNumber": "845552222",
  546.           "email": "taverat.ch@gmail.com"
  547.         },
  548.         "createdAt": "2019-02-20T04:00:25.000Z"
  549.       },
  550.       "paymentExpiryDatetime": "2019-02-20T16:01:45.597Z",
  551.       "isAllowCreditCardPayment": true,
  552.       "isAllowTransferPayment": true,
  553.       "isExpired": false,
  554.       "totalBasePrice": 5640,
  555.       "totalNetPrice": 5378,
  556.       "totalMarkupPrice": 5378,
  557.       "totalSellingPrice": 5402.91,
  558.       "isSentToERP": 1,
  559.       "createdAt": "2019-02-20T04:01:45.613Z"
  560.     },
  561.     "data_mapping": {
  562.       "airlines": [
  563.         {
  564.           "code": "PG",
  565.           "name": {
  566.             "en": "Bangkok Airways",
  567.             "th": "บางกอก แอร์เวย์"
  568.           },
  569.           "primaryIconUrl": "https://assets-flight.thaitravelcenter.com/airlines/PG.png",
  570.           "secondaryIconUrl": "https://assets-flight.thaitravelcenter.com/airlines/PG.png",
  571.           "colorCode": "187CC7",
  572.           "plate": null
  573.         },
  574.         {
  575.           "code": "TG",
  576.           "name": {
  577.             "en": "Thai Airways",
  578.             "th": "การบินไทย"
  579.           },
  580.           "primaryIconUrl": "https://assets-flight.thaitravelcenter.com/airlines/TG.png",
  581.           "secondaryIconUrl": "https://assets-flight.thaitravelcenter.com/airlines/TG.png",
  582.           "colorCode": "2D0D5C",
  583.           "plate": null
  584.         }
  585.       ],
  586.       "airports": [
  587.         {
  588.           "code": "BKK",
  589.           "name": "Suvarnabhumi Airport",
  590.           "latitude": "13.68109989",
  591.           "longitude": "100.7470016",
  592.           "airport_picture_url": null,
  593.           "city": {
  594.             "code": "BKK",
  595.             "name": "Bangkok"
  596.           },
  597.           "country": {
  598.             "id": 1,
  599.             "code": "TH",
  600.             "name": "Thailand",
  601.             "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  602.           }
  603.         },
  604.         {
  605.           "code": "CNX",
  606.           "name": "Chiang Mai International Airport",
  607.           "latitude": "18.76679993",
  608.           "longitude": "98.96260071",
  609.           "airport_picture_url": null,
  610.           "city": {
  611.             "code": "CNX",
  612.             "name": "Chiang Mai"
  613.           },
  614.           "country": {
  615.             "id": 1,
  616.             "code": "TH",
  617.             "name": "Thailand",
  618.             "flag_icon_url": "https://assets-flight.thaitravelcenter.com/country_flags/184-thailand.png"
  619.           }
  620.         }
  621.       ]
  622.     },
  623.     "data_urls": {
  624.       "callback": "https://dev-api-flight.travizgo.com/payment/creditCard"
  625.     },
  626.     "brand_identifier": "2"
  627.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement