Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Calculate
- {
- "headers": {
- "content-type": "application/json",
- "gzip": true,
- "authorization": "Basic b21zOm5EaU5uSjB1R0F0YUZwMzk=",
- "x-forwarded-for": "2400:8901::f03c:93ff:fee0:4ad3"
- },
- "method": "POST",
- "url": "https://fastfood.ffi.co.id/cbt/api/v1/order/calculate",
- "json": true,
- "body": {
- "outletCode": "0208",
- "chatbotOrderId": "KFC.2022122100060",
- "customer": {
- "phoneNumber": "6285893591720",
- "customerName": "dagulalvaro",
- "geolocation": {
- "latitude": -6.2354185,
- "longitude": 106.8520931
- }
- },
- "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
- }
- ]
- }
- ],
- "requestId": "b34db3c2-c76c-4c65-8897-4f968f069b5e",
- "actualPrice": 16000,
- "isActual": true
- }
- }
- Consult
- {
- "headers": {
- "content-type": "application/json",
- "gzip": true,
- "authorization": "Basic b21zOm5EaU5uSjB1R0F0YUZwMzk=",
- "x-forwarded-for": "2400:8901::f03c:93ff:fee0:4ad3"
- },
- "method": "POST",
- "url": "https://fastfood.ffi.co.id/cbt/api/v1/order",
- "json": true,
- "body": {
- "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",
- "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\"}",
- "actualPrice": 16000,
- "isActual": true
- }
- }
- Response MTH
- {
- "data": {
- "createdDate": "2022-12-21T16:07:04.128289229+07:00",
- "deliveryAddress": {
- "address": "Jl. Tebet Barat Raya , RT 14 , RW 04 , Tebet Barat , Kota Jakarta Selatan",
- "areaName": "",
- "cityName": "",
- "countryName": "",
- "geolocation": {
- "latitude": -6.2354185,
- "longitude": 106.8520931
- },
- "notes": "",
- "stateName": "",
- "zipCode": ""
- },
- "destinationStore": {
- "deliveryCharge": 16000,
- "deliveryChargeTax": 1600,
- "faxNumber": "08117156959",
- "lat": -6.243021,
- "lng": 106.847063,
- "outletCode": "0208",
- "phoneNumber": "08117156959",
- "port": "8181",
- "posIPAddress": "192.168.216.21",
- "regionCode": "0002",
- "regionalName": "REGIONAL JAKARTA 2",
- "storeAddress": "Jl. MT. Haryono, Kav 7 Lt. 2 Gd Gelael, Jakarta ",
- "storeCityCode": "JKT",
- "storeCityName": "JAKARTA",
- "storeName": "MT HARYONO JAKARTA",
- "taxPercentage": 10
- },
- "notes": "KFC.2022122100060",
- "orderCalculation": [
- {
- "key": "totalAmount",
- "value": 40909
- },
- {
- "key": "totalFnB",
- "value": 40909
- },
- {
- "key": "totalDelivery",
- "value": 16000
- },
- {
- "key": "totalDeliveryTax",
- "value": 1600
- },
- {
- "key": "totalRestaurantTax",
- "value": 4091
- },
- {
- "key": "total",
- "value": 62600
- },
- {
- "key": "totalRounding",
- "value": 0
- },
- {
- "key": "totalSales",
- "value": 62600
- },
- {
- "key": "totalPayment",
- "value": 62600
- },
- {
- "key": "storePercentage",
- "value": 10
- },
- {
- "key": "restaurantTax",
- "value": 10
- },
- {
- "key": "valueAddedTax",
- "value": 11
- },
- {
- "key": "deliveryTax",
- "value": 10
- }
- ],
- "orderId": "02081221C220083",
- "orderLines": [
- {
- "isCd": false,
- "isCustomized": true,
- "isMenuSet": true,
- "isTaxable": true,
- "menuGroupCode": "G42",
- "menuItemCode": "11782",
- "name": "Super Bola 1",
- "price": 40909,
- "quantity": 1,
- "setItems": [
- {
- "isCd": false,
- "isTaxable": false,
- "menuItemCode": "X1247",
- "modifierGroupCode": "ME2",
- "name": "1 Pcs Crispy Chicken",
- "originalItemCode": "X1240",
- "price": 0,
- "quantity": 1,
- "tax": 0
- },
- {
- "isCd": false,
- "isTaxable": false,
- "menuItemCode": "X1024",
- "modifierGroupCode": "M8G",
- "name": "Coca-Cola Reguler",
- "originalItemCode": "",
- "price": 0,
- "quantity": 1,
- "tax": 0
- },
- {
- "isCd": false,
- "isTaxable": false,
- "menuItemCode": "X43",
- "modifierGroupCode": "M5K",
- "name": "Rice*",
- "originalItemCode": "",
- "price": 0,
- "quantity": 1,
- "tax": 0
- }
- ],
- "tax": 4091
- }
- ],
- "orderSource": "CHATBOT",
- "orderStatus": "PAYMENT_SUCCESS",
- "orderType": "CBT",
- "payment": [
- {
- "paymentAmount": 62600,
- "paymentMethodCode": "OTO",
- "paymentUsed": 62600,
- "reffno": "1671613155013596454"
- }
- ],
- "requestId": "ec7df307-43ff-49a4-97bf-ef22b1a7d76e",
- "transferStatus": "INIT",
- "user": {
- "id": "",
- "lastOrderId": "02081221C220083",
- "lastOrderStatus": "PAYMENT_SUCCESS",
- "name": "dagulalvaro",
- "phoneNo": "6285893591720"
- }
- },
- "message": "SUCCESS",
- "code": 200
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement