Advertisement
ahadianNKC

Untitled

Dec 7th, 2022
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.19 KB | None | 0 0
  1. //REQUEST
  2. {
  3.   "orderType": "HMD",
  4.   "orderSource": "WEB",
  5.   "destinationStore": {
  6.     "outletCode": "0316"
  7.   },
  8.   "voucherUserId": "",
  9.   "deliveryType": "GoSend",
  10.   "rewardLines": [
  11.     {
  12.       "menuItemCode": "10508",
  13.       "quantity": 2,
  14.       "menuGroupCode": "G21",
  15.       "setItems": []
  16.     }
  17.   ],
  18.   "orderLines": [
  19.     {
  20.       "menuGroupCode": "G42",
  21.       "menuItemCode": "10737",
  22.       "quantity": 1,
  23.       "setItems": [
  24.         {
  25.           "modifierGroupCode": "M8J",
  26.           "menuItemCode": "X43",
  27.           "originalItemCode": "",
  28.           "quantity": 5
  29.         },
  30.         {
  31.           "modifierGroupCode": "M8E",
  32.           "menuItemCode": "X1027",
  33.           "originalItemCode": "",
  34.           "quantity": 5
  35.         },
  36.         {
  37.           "modifierGroupCode": "ME6",
  38.           "menuItemCode": "X1244",
  39.           "originalItemCode": "",
  40.           "quantity": 1
  41.         }
  42.       ]
  43.     }
  44.   ],
  45.   "deliveryAddress": {
  46.     "address": ", Jalan Kemang Timur, Kota Jakarta Selatan",
  47.     "areaName": "Kota Jakarta Selatan",
  48.     "cityName": "Daerah Khusus Ibukota Jakarta",
  49.     "countryName": "Indonesia",
  50.     "geolocation": {
  51.       "latitude": -6.2659692,
  52.       "longitude": 106.8238277
  53.     },
  54.     "name": "",
  55.     "notes": "",
  56.     "plateNumber": "",
  57.     "stateName": "Daerah Khusus Ibukota Jakarta",
  58.     "zipCode": ""
  59.   },
  60.   "requestId": "WEB-f813b3cc-5980-49c9-88c2-846bb9d74a8a",
  61.   "schemaId": 500,
  62.   "envInfo": {
  63.     "appVersion": "1.2.0",
  64.     "clientIp": "103.87.86.155",
  65.     "clientKey": "e5806b64-598d-414f-b7f7-83f9576eb6fb",
  66.     "extendInfo": "{}",
  67.     "merchantAppVersion": "1.0",
  68.     "orderOsType": "ANDROID",
  69.     "orderTerminalType": "APP",
  70.     "osType": "ANDROID",
  71.     "sdkVersion": "",
  72.     "sessionId": "",
  73.     "sourcePlatform": "IPG",
  74.     "tokenId": "",
  75.     "websiteLanguage": "en_US"
  76.   },
  77.   "payment": [
  78.     {
  79.       "paymentAmount": 179500,
  80.       "paymentMethodCode": "GPW",
  81.       "paymentUsed": 179500,
  82.       "reffNo": ""
  83.     }
  84.   ],
  85.   "voucherLines": [],
  86.   "user": {
  87.     "deviceId": "Desktop",
  88.     "deviceModel": "Desktop",
  89.     "deviceRoot": "false",
  90.     "id": "zjh7ApoxCNMekJMl8gyisBrwREa2",
  91.     "merchantId": "",
  92.     "name": "rafi fake akun test",
  93.     "orderLat": "-6.255717",
  94.     "orderLon": "106.811644",
  95.     "osVersion": "10",
  96.     "phoneNo": "6288297699788"
  97.   },
  98.   "voucher": {
  99.     "voucherId": "",
  100.     "voucherUserId": "",
  101.     "voucherName": "",
  102.     "voucherNameId": "",
  103.     "voucherNameEn": "",
  104.     "voucherImage": ""
  105.   }
  106. }
  107.  
  108. //RESPONSE
  109. {
  110.   "data": {
  111.     "createdDate": "2022-12-07T13:55:24.152460227+07:00",
  112.     "deliveryAddress": {
  113.       "address": ", Jalan Kemang Timur, Kota Jakarta Selatan",
  114.       "areaName": "Kota Jakarta Selatan",
  115.       "cityName": "Daerah Khusus Ibukota Jakarta",
  116.       "countryName": "Indonesia",
  117.       "distance": 2.4,
  118.       "geolocation": {
  119.         "latitude": -6.2659692,
  120.         "longitude": 106.8238277
  121.       },
  122.       "notes": "",
  123.       "plateNumber": "",
  124.       "stateName": "Daerah Khusus Ibukota Jakarta",
  125.       "zipCode": ""
  126.     },
  127.     "deliveryStatus": "INIT",
  128.     "deliveryType": "GoSend",
  129.     "destinationStore": {
  130.       "deliveryCharge": 20000,
  131.       "deliveryChargeTax": 2000,
  132.       "faxNumber": "000-0000000",
  133.       "lat": -6.255717,
  134.       "lng": 106.811644,
  135.       "outletCode": "0316",
  136.       "phoneNumber": "000-0000000",
  137.       "port": "9999",
  138.       "posIPAddress": "172.16.9.155",
  139.       "regionCode": "0002",
  140.       "regionalName": "REGIONAL JAKARTA 2",
  141.       "storeAddress": "Jl. Kemang Raya No. 14B Jakarta  ",
  142.       "storeCityCode": "JKT",
  143.       "storeCityName": "JAKARTA",
  144.       "storeName": "KEMANG",
  145.       "taxPercentage": 10
  146.     },
  147.     "notes": "",
  148.     "orderCalculation": [
  149.       {
  150.         "key": "totalAmount",
  151.         "value": 143182
  152.       },
  153.       {
  154.         "key": "totalFnB",
  155.         "value": 143182
  156.       },
  157.       {
  158.         "key": "totalDelivery",
  159.         "value": 20000
  160.       },
  161.       {
  162.         "key": "totalRestaurantTax",
  163.         "value": 14318
  164.       },
  165.       {
  166.         "key": "totalDeliveryTax",
  167.         "value": 2000
  168.       },
  169.       {
  170.         "key": "total",
  171.         "value": 179500
  172.       },
  173.       {
  174.         "key": "totalRounding",
  175.         "value": 0
  176.       },
  177.       {
  178.         "key": "totalSales",
  179.         "value": 179500
  180.       },
  181.       {
  182.         "key": "totalPayment",
  183.         "value": 179500
  184.       },
  185.       {
  186.         "key": "storePercentage",
  187.         "value": 10
  188.       },
  189.       {
  190.         "key": "restaurantTax",
  191.         "value": 10
  192.       },
  193.       {
  194.         "key": "valueAddedTax",
  195.         "value": 11
  196.       },
  197.       {
  198.         "key": "deliveryTax",
  199.         "value": 10
  200.       }
  201.     ],
  202.     "orderId": "03161207M220002",
  203.     "orderLines": [
  204.       {
  205.         "isCd": false,
  206.         "isCustomized": false,
  207.         "isMenuSet": true,
  208.         "isTaxable": true,
  209.         "menuGroupCode": "G42",
  210.         "menuItemCode": "10737",
  211.         "name": "Working Lunch Dinner 1",
  212.         "price": 143182,
  213.         "quantity": 1,
  214.         "setItems": [
  215.           {
  216.             "isCd": false,
  217.             "isTaxable": false,
  218.             "menuItemCode": "X43",
  219.             "modifierGroupCode": "M8J",
  220.             "name": "Rice*",
  221.             "originalItemCode": "",
  222.             "price": 0,
  223.             "quantity": 5,
  224.             "tax": 0
  225.           },
  226.           {
  227.             "isCd": false,
  228.             "isTaxable": false,
  229.             "menuItemCode": "X1027",
  230.             "modifierGroupCode": "M8E",
  231.             "name": "Coca-Cola Medium",
  232.             "originalItemCode": "",
  233.             "price": 0,
  234.             "quantity": 5,
  235.             "tax": 0
  236.           },
  237.           {
  238.             "isCd": false,
  239.             "isTaxable": false,
  240.             "menuItemCode": "X1244",
  241.             "modifierGroupCode": "ME6",
  242.             "name": "5 Pcs Chicken",
  243.             "originalItemCode": "",
  244.             "price": 0,
  245.             "quantity": 1,
  246.             "tax": 0
  247.           }
  248.         ],
  249.         "tax": 14318
  250.       }
  251.     ],
  252.     "orderSource": "WEB",
  253.     "orderStatus": "INIT",
  254.     "orderType": "HMD",
  255.     "payment": [
  256.       {
  257.         "paymentAmount": 179500,
  258.         "paymentMethodCode": "GPW",
  259.         "paymentUsed": 179500,
  260.         "reffNo": ""
  261.       }
  262.     ],
  263.     "paymentStatus": "INIT",
  264.     "requestId": "WEB-f813b3cc-5980-49c9-88c2-846bb9d74a8a",
  265.     "rewardLines": [
  266.       {
  267.         "isCd": false,
  268.         "isCustomized": false,
  269.         "isMenuSet": false,
  270.         "isTaxable": false,
  271.         "menuGroupCode": "G21",
  272.         "menuItemCode": "10508",
  273.         "name": "Free Kfc Pudding",
  274.         "price": 0,
  275.         "quantity": 2,
  276.         "setItems": null,
  277.         "tax": 0
  278.       }
  279.     ],
  280.     "schemaId": 500,
  281.     "serveType": "",
  282.     "transferStatus": "INIT",
  283.     "user": {
  284.       "id": "zjh7ApoxCNMekJMl8gyisBrwREa2",
  285.       "lastOrderId": "03161207M220002",
  286.       "lastOrderStatus": "INIT",
  287.       "name": "rafi fake akun test",
  288.       "phoneNo": "6288297699788"
  289.     },
  290.     "voucher": {
  291.       "voucherId": "",
  292.       "voucherUserId": "",
  293.       "voucherNameID": "",
  294.       "voucherNameEN": "",
  295.       "voucherImage": "",
  296.       "voucherType": ""
  297.     },
  298.     "voucherLines": []
  299.   },
  300.   "message": "SUCCESS",
  301.   "code": 200
  302. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement