Advertisement
ahadianNKC

Untitled

Dec 27th, 2022 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.36 KB | None | 0 0
  1. Calculate
  2. {
  3.   "headers": {
  4.     "content-type": "application/json",
  5.     "gzip": true,
  6.     "authorization": "Basic b21zOm5EaU5uSjB1R0F0YUZwMzk=",
  7.     "x-forwarded-for": "2400:8901::f03c:93ff:fee0:4ad3"
  8.   },
  9.   "method": "POST",
  10.   "url": "https://fastfood.ffi.co.id/cbt/api/v1/order/calculate",
  11.   "json": true,
  12.   "body": {
  13.     "outletCode": "0208",
  14.     "chatbotOrderId": "KFC.2022122100060",
  15.     "customer": {
  16.       "phoneNumber": "6285893591720",
  17.       "customerName": "dagulalvaro",
  18.       "geolocation": {
  19.         "latitude": -6.2354185,
  20.         "longitude": 106.8520931
  21.       }
  22.     },
  23.     "orderItems": [
  24.       {
  25.         "menuGroupCode": "G42",
  26.         "menuItemCode": "11782",
  27.         "amount": 40909,
  28.         "amountTax": 4090,
  29.         "quantity": 1,
  30.         "setItems": [
  31.           {
  32.             "menuItemCode": "X1024",
  33.             "modifierItemCode": "",
  34.             "modifierGroupCode": "M8G",
  35.             "amount": 0,
  36.             "amountTax": 0,
  37.             "quantity": 1
  38.           },
  39.           {
  40.             "menuItemCode": "X1240",
  41.             "modifierItemCode": "X1247",
  42.             "modifierGroupCode": "ME2",
  43.             "amount": 0,
  44.             "amountTax": 0,
  45.             "quantity": 1
  46.           },
  47.           {
  48.             "menuItemCode": "X43",
  49.             "modifierItemCode": "",
  50.             "modifierGroupCode": "M5K",
  51.             "amount": 0,
  52.             "amountTax": 0,
  53.             "quantity": 1
  54.           }
  55.         ]
  56.       }
  57.     ],
  58.     "requestId": "b34db3c2-c76c-4c65-8897-4f968f069b5e",
  59.     "actualPrice": 16000,
  60.     "isActual": true
  61.   }
  62. }
  63.  
  64. Consult
  65. {
  66.   "headers": {
  67.     "content-type": "application/json",
  68.     "gzip": true,
  69.     "authorization": "Basic b21zOm5EaU5uSjB1R0F0YUZwMzk=",
  70.     "x-forwarded-for": "2400:8901::f03c:93ff:fee0:4ad3"
  71.   },
  72.   "method": "POST",
  73.   "url": "https://fastfood.ffi.co.id/cbt/api/v1/order",
  74.   "json": true,
  75.   "body": {
  76.     "outletCode": "0208",
  77.     "chatbotOrderId": "KFC.2022122100060",
  78.     "customer": {
  79.       "phoneNumber": "6285893591720",
  80.       "customerName": "dagulalvaro",
  81.       "geolocation": {
  82.         "latitude": -6.2354185,
  83.         "longitude": 106.8520931
  84.       },
  85.       "address": "Jl. Tebet Barat Raya , RT 14 , RW 04 , Tebet Barat , Kota Jakarta Selatan"
  86.     },
  87.     "orderItems": [
  88.       {
  89.         "menuGroupCode": "G42",
  90.         "menuItemCode": "11782",
  91.         "amount": 40909,
  92.         "amountTax": 4090,
  93.         "quantity": 1,
  94.         "setItems": [
  95.           {
  96.             "menuItemCode": "X1024",
  97.             "modifierItemCode": "",
  98.             "modifierGroupCode": "M8G",
  99.             "amount": 0,
  100.             "amountTax": 0,
  101.             "quantity": 1
  102.           },
  103.           {
  104.             "menuItemCode": "X1240",
  105.             "modifierItemCode": "X1247",
  106.             "modifierGroupCode": "ME2",
  107.             "amount": 0,
  108.             "amountTax": 0,
  109.             "quantity": 1
  110.           },
  111.           {
  112.             "menuItemCode": "X43",
  113.             "modifierItemCode": "",
  114.             "modifierGroupCode": "M5K",
  115.             "amount": 0,
  116.             "amountTax": 0,
  117.             "quantity": 1
  118.           }
  119.         ]
  120.       }
  121.     ],
  122.     "payment": [
  123.       {
  124.         "paymentMethodCode": "OTO",
  125.         "reffNo": "1671613155013596454",
  126.         "paymentAmount": 62600
  127.       }
  128.     ],
  129.     "requestId": "ec7df307-43ff-49a4-97bf-ef22b1a7d76e",
  130.     "partnerRequest": "{\"outletCode\":\"0208\",\"chatbotOrderId\":\"KFC.2022122100060\",\"customer\":{\"phoneNumber\":\"6285893591720\",\"customerName\":\"dagulalvaro\",\"geolocation\":{\"latitude\":-6.2354185,\"longitude\":106.8520931},\"address\":\"Jl. Tebet Barat Raya , RT 14 , RW 04 , Tebet Barat , Kota Jakarta Selatan\"},\"orderItems\":[{\"menuGroupCode\":\"G42\",\"menuItemCode\":\"11782\",\"amount\":40909,\"amountTax\":4090,\"quantity\":1,\"setItems\":[{\"menuItemCode\":\"X1024\",\"modifierItemCode\":\"\",\"modifierGroupCode\":\"M8G\",\"amount\":0,\"amountTax\":0,\"quantity\":1},{\"menuItemCode\":\"X1240\",\"modifierItemCode\":\"X1247\",\"modifierGroupCode\":\"ME2\",\"amount\":0,\"amountTax\":0,\"quantity\":1},{\"menuItemCode\":\"X43\",\"modifierItemCode\":\"\",\"modifierGroupCode\":\"M5K\",\"amount\":0,\"amountTax\":0,\"quantity\":1}]}],\"payment\":[{\"paymentMethodCode\":\"OTO\",\"reffNo\":\"1671613155013596454\",\"paymentAmount\":62600}],\"requestId\":\"ec7df307-43ff-49a4-97bf-ef22b1a7d76e\"}",
  131.     "actualPrice": 16000,
  132.     "isActual": true
  133.   }
  134. }
  135.  
  136. Response MTH
  137. {
  138.   "data": {
  139.     "createdDate": "2022-12-21T16:07:04.128289229+07:00",
  140.     "deliveryAddress": {
  141.       "address": "Jl. Tebet Barat Raya , RT 14 , RW 04 , Tebet Barat , Kota Jakarta Selatan",
  142.       "areaName": "",
  143.       "cityName": "",
  144.       "countryName": "",
  145.       "geolocation": {
  146.         "latitude": -6.2354185,
  147.         "longitude": 106.8520931
  148.       },
  149.       "notes": "",
  150.       "stateName": "",
  151.       "zipCode": ""
  152.     },
  153.     "destinationStore": {
  154.       "deliveryCharge": 16000,
  155.       "deliveryChargeTax": 1600,
  156.       "faxNumber": "08117156959",
  157.       "lat": -6.243021,
  158.       "lng": 106.847063,
  159.       "outletCode": "0208",
  160.       "phoneNumber": "08117156959",
  161.       "port": "8181",
  162.       "posIPAddress": "192.168.216.21",
  163.       "regionCode": "0002",
  164.       "regionalName": "REGIONAL JAKARTA 2",
  165.       "storeAddress": "Jl. MT. Haryono, Kav 7 Lt. 2 Gd Gelael, Jakarta ",
  166.       "storeCityCode": "JKT",
  167.       "storeCityName": "JAKARTA",
  168.       "storeName": "MT HARYONO JAKARTA",
  169.       "taxPercentage": 10
  170.     },
  171.     "notes": "KFC.2022122100060",
  172.     "orderCalculation": [
  173.       {
  174.         "key": "totalAmount",
  175.         "value": 40909
  176.       },
  177.       {
  178.         "key": "totalFnB",
  179.         "value": 40909
  180.       },
  181.       {
  182.         "key": "totalDelivery",
  183.         "value": 16000
  184.       },
  185.       {
  186.         "key": "totalDeliveryTax",
  187.         "value": 1600
  188.       },
  189.       {
  190.         "key": "totalRestaurantTax",
  191.         "value": 4091
  192.       },
  193.       {
  194.         "key": "total",
  195.         "value": 62600
  196.       },
  197.       {
  198.         "key": "totalRounding",
  199.         "value": 0
  200.       },
  201.       {
  202.         "key": "totalSales",
  203.         "value": 62600
  204.       },
  205.       {
  206.         "key": "totalPayment",
  207.         "value": 62600
  208.       },
  209.       {
  210.         "key": "storePercentage",
  211.         "value": 10
  212.       },
  213.       {
  214.         "key": "restaurantTax",
  215.         "value": 10
  216.       },
  217.       {
  218.         "key": "valueAddedTax",
  219.         "value": 11
  220.       },
  221.       {
  222.         "key": "deliveryTax",
  223.         "value": 10
  224.       }
  225.     ],
  226.     "orderId": "02081221C220083",
  227.     "orderLines": [
  228.       {
  229.         "isCd": false,
  230.         "isCustomized": true,
  231.         "isMenuSet": true,
  232.         "isTaxable": true,
  233.         "menuGroupCode": "G42",
  234.         "menuItemCode": "11782",
  235.         "name": "Super Bola 1",
  236.         "price": 40909,
  237.         "quantity": 1,
  238.         "setItems": [
  239.           {
  240.             "isCd": false,
  241.             "isTaxable": false,
  242.             "menuItemCode": "X1247",
  243.             "modifierGroupCode": "ME2",
  244.             "name": "1 Pcs Crispy Chicken",
  245.             "originalItemCode": "X1240",
  246.             "price": 0,
  247.             "quantity": 1,
  248.             "tax": 0
  249.           },
  250.           {
  251.             "isCd": false,
  252.             "isTaxable": false,
  253.             "menuItemCode": "X1024",
  254.             "modifierGroupCode": "M8G",
  255.             "name": "Coca-Cola Reguler",
  256.             "originalItemCode": "",
  257.             "price": 0,
  258.             "quantity": 1,
  259.             "tax": 0
  260.           },
  261.           {
  262.             "isCd": false,
  263.             "isTaxable": false,
  264.             "menuItemCode": "X43",
  265.             "modifierGroupCode": "M5K",
  266.             "name": "Rice*",
  267.             "originalItemCode": "",
  268.             "price": 0,
  269.             "quantity": 1,
  270.             "tax": 0
  271.           }
  272.         ],
  273.         "tax": 4091
  274.       }
  275.     ],
  276.     "orderSource": "CHATBOT",
  277.     "orderStatus": "PAYMENT_SUCCESS",
  278.     "orderType": "CBT",
  279.     "payment": [
  280.       {
  281.         "paymentAmount": 62600,
  282.         "paymentMethodCode": "OTO",
  283.         "paymentUsed": 62600,
  284.         "reffno": "1671613155013596454"
  285.       }
  286.     ],
  287.     "requestId": "ec7df307-43ff-49a4-97bf-ef22b1a7d76e",
  288.     "transferStatus": "INIT",
  289.     "user": {
  290.       "id": "",
  291.       "lastOrderId": "02081221C220083",
  292.       "lastOrderStatus": "PAYMENT_SUCCESS",
  293.       "name": "dagulalvaro",
  294.       "phoneNo": "6285893591720"
  295.     }
  296.   },
  297.   "message": "SUCCESS",
  298.   "code": 200
  299. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement