Examples of requests
Requests to create an order
Example of an order with a dish with modifiers
- Method of receiving the order - pick up
- The time by which the order is expected - as soon as possible
Payment method - by card upon order pickup
- Set of dishes - one simple dish, one dish with two modifiers
{
"comment": "best order",
"restaurantId": "18f550d8-7fbe-45fa-8c83-35f531380f65",
"persons": 1,
"expeditionType": "pickup",
"paymentTypeId": "card",
"soonest": true,
"expectedAt": "2021-10-22T09:11:21.306+02:00",
"dishList": [
{
"id": "b4ea33c7-eac3-4b0c-a197-078816921cdd",
"name": "Salad",
"price": 100,
"schemeId": "",
"quantity": 1,
"ingredients": [
{
"id": "05ffe387-07e8-46e6-98f3-e227913397c5",
"name": "Rare",
"price": 0,
"quantity": 1,
"ingredients": []
},
{
"id": "11f6b426-786b-40f4-881d-a7e0916f9ad8",
"name": "without salt",
"price": 0,
"quantity": 1,
"ingredients": []
}
]
},
{
"id": "b4ea33c7-eac3-4b0c-a197-078816921cff",
"name": "salad 2",
"price": 150,
"schemeId": "",
"quantity": 1,
"ingredients": []
}
],
"changeFrom": null,
"guest": {
"firstName": "Karina",
"lastName": "",
"phone": "79280561888",
"email": “test@test.ru”
}
}
CODE
Example of a pickup order
Terms and Conditions:
- Method of receiving the order - self-pickup
- The time by which the order is expected - as soon as possible
- Payment method - cash
- A set of dishes is one dish with two modifiers.
{
"comment": "best order 2",
"restaurantId": "36277f09-1d62-420f-ae22-af8ce0994d6a",
"persons": 4,
"expeditionType": "pickup",
"paymentTypeId": "cash",
"soonest": true,
"expectedAt": "2021-10-22T09:44:13.083+02:00",
"dishList": [
{
"id": "49cd2922-de96-4970-bb8d-3d0bcbaafb98",
"name": "Lamb rack with cherry potatoes",
"price": 2499,
"quantity": 1,
"ingredients": [
{
"id": "05ffe387-07e8-46e6-98f3-e227913397c5",
"name": "Rare",
"price": 0,
"quantity": 1,
"ingredients": []
},
{
"id": "11f6b426-786b-40f4-881d-a7e0916f9ad8",
"name": "Without sauce",
"price": 0,
"quantity": 1,
"ingredients": []
}
]
}
],
"changeFrom": "3000",
"guest": {
"firstName": "Karina",
"lastName": "Lastname",
"phone": "79270562222",
"email": null
}
}
CODE
Example of order with combo dish
The order includes a combo dish.
{
"comment": "best order 3",
"persons": 10,
"expeditionType": "delivery",
"paymentTypeId": "card",
"soonest": true,
"expectedAt": "2021-10-22T12:49:48.309+03:00",
"dishList": [
{
"id": "8139e70e-aa0f-4ecd-9908-5754ebb29c71",
"categoryId": "9499ebb6-83d1-4bd0-b890-0452cf073e1b",
"name": "Dinner (salad + main course)",
"price": 0,
"schemeId": "6ef56704-a249-4e63-9f33-6f2b699b515a",
"quantity": 1,
"ingredients": [
{
"id": "3775f21a-a006-4936-a258-e5a4f89118a9",
"name": "Chicken breast/grilled vegetables-din",
"price": 290,
"quantity": 1,
"ingredients": []
},
{
"id": "95188f51-8498-4dda-8266-23d91ff50f53",
"name": "Caesar salad with chicken-din",
"price": 370,
"quantity": 1,
"ingredients": [
{
"id": "745e7af4-1692-4e54-a5df-5dd3922382d2",
"name": "1 Caesar sauce 40 g (Caesar)",
"price": 0,
"quantity": 1
}
]
}
]
}
],
"changeFrom": null,
"guest": {
"firstName": "Maksim",
"lastName": "",
"phone": "90962222222",
"email": ""
},
"address": {
"id": "e5548c75-c1ee-4179-be70-236fc0b14558",
"postcode": "",
"street": "Bronnitsy",
"comment": "",
"lat": 55.42564774,
"lon": 38.26424408,
"cityName": "Moscow region",
"apartmentNumber": "11",
"houseNumber": "Bronnitsy",
"entrance": "1",
"intercom": "1",
"fullAddress": "Moscow region Bronnitsy",
"subway": "",
"floor": "1",
"building": ""
},
"restaurantId": "e2d81e70-e579-4514-9591-521a6b510e3a"
}
CODE
Example of order with discount
Conditions:
There is a discount for the dish in the order.
{
"comment":"",
"restaurantId":"36277f09-1d62-420f-ae22-af8ce0994d6a",
"persons":1,
"expeditionType":"pickup",
"paymentTypeId":"cash",
"expectedAt":"2021-10-22T12:06:34.236+03:00",
"dishList":[
{
"id":"10f6696b-8b26-4894-ae8f-0b694aaeb5ea",
"name":"Primavera pizza",
"price":999,
"quantity":1,
"discount":-149
}
],
"changeFrom":null,
"guest":{
"firstName":"Fyodor",
"lastName":"",
"phone":"22222222222",
"email":null
},
"discounts":{
"discount":-149,
"total":849,
"discountList":[
{
"name":"15% automatic (00:01-12:00)",
"amount":-149
}
],
"useRk7Discounts":true
}
}
CODE
Example of an order sent to the cash register
After the order status changes to - Transferred to the kitchen ("orderStatusId": 4)
The following parameters appear in the order:
- "orderExternalId": “ce993hfl-611d-47a1-90a6-5054c8492733” - order ID from the cash register
- "tableCode": "1" - table code
{
"orderId": "4184",
"id": null,
"orderExternalId": “ce993hfl-611d-47a1-90a6-5054c8492733”,
"comment": "",
"guest": {
"email": null,
"phone": "79298569994",
"firstName": "Aleksei",
"lastName": "",
"callToGuest": true
},
"corporationId": "ce939b6c-611d-47a1-90a6-5054c8492733",
"restaurantId": "36277f09-1d62-420f-ae22-af8ce0994d6a",
"restaurantName": null,
"orderStatusId": 4,
"orderStatusName": "Sent to the kitchen",
"original": null,
"tableCode": "1",
"createdAt": "2021-10-22T07:28:21.988+00:00",
"updatedAt": "2021-10-22T07:29:10.761+00:00",
"completedAt": null,
"orderSourceId": "7100811d-28a3-47b4-b830-ade4939b8f96",
"orderSourceName": "the Site",
"fullAmount": 339.15,
"amount": 399,
"changeFrom": null,
"deliveryAmount": 0,
"address": null,
"expectedAt": "2021-10-22T07:54:34.057+00:00",
"isLate": false,
"courierId": null,
"courierName": null,
"dishList": [
{
"id": "7b9f1b13-b09b-419c-b8ea-dea41a55515c",
"name": "Erdinger 0.5 l.",
"price": 399,
"measure": {
"value": 0,
"unit": ""
},
"quantity": 1,
"ingredients": null
}
],
"expeditionType": "pickup",
"paymentTypeId": "card",
"persons": 1,
"rejectionReason": null,
"paymentStatus": "notPaid",
"payments": null,
"restaurantCode": 199990262
}
CODE