Request

GET https://delivery.ucs.ru/orders/api/v1/orders?sortOrder=asc&includeStatusIds=3

Request parameters:

parameter nameparameter typedescription
includeStatusIdsinteger[]

Filter by Status:

New = 1

Confirmed = 2

Taken at the restaurant = 3

Transferred to the kitchen = 4

Being prepared = 5

Ready = 6

Order assembly = 7

Assembled = 8

With the courier = 9

Order in transit = 10

Delivered = 13

Completed = 11

Cancelled = 12

sortOrderstring

asc - ascending, desc - descending

orderBystringsort by columns (updatedAt, expectedAt)
qstringsearch query
fromDateDateTime

from what date and time to display orders

format:

2021-04-21T13:43:12+05:00
2021-04-21T13:43:12
2021-04-21

toDateDateTime

by what date and time to display orders

Example answer

{
  "result": [
     {
       "orderId": "4094",
       "comment": "",
       "guest": {
          "email": null,
          "phone": "77777777777",
          "firstName": "Anna",
          "lastName": ""
       },
       "corporationId": "ce939b6c-611d-47a1-90a6-5054c8492733",
       "restaurantId": "e2d81e70-e579-4514-9591-521a6b510e3a",
       "orderStatusId": 3,
       "orderStatusName": "Taken at the restaurant",
       "tableCode": null,
       "createdAt": "2021-04-19T11:53:07.508+00:00",
       "updatedAt": "2021-04-19T11:53:13.106+00:00",
       "completedAt": null,
       "orderSourceId": "84f45bf1-4bdb-43da-b9fc-98f3fe66d556",
       "orderSourceName": "Баркан Аня для демо",
       "fullAmount": 0,
       "amount": 0,
       "changeFrom": 1000,
       "deliveryAmount": 0,
       "address": null,
       "expectedAt": "2021-04-19T11:58:30.394+00:00",
       "isLate": false,
       "isAttention": null,
       "courierId": null,
       "courierName": null,
       "dishList": [
           {
             "id": "03701224-9697-4658-bca4-07d6a269dd3c",
             "name": "Клоун 1ч/будни",
             "price": 0,
             "measure": {
                "value": 0,
                "unit": ""
             },
             "quantity": 1,
             "ingredients": null
           },
           {
             "id": "05a542a6-bc33-430b-baf6-54c5b32d1396",
             "name": "Академия Шоколадный Ежик",
             "price": 0,
             "measure": {
                "value": 0,
                "unit": ""
             },
             "quantity": 1,
             "ingredients": null
          }
      ],
      "expeditionType": "pickup",
      "paymentTypeId": "cash",
      "persons": 1,
      "rejectionReason": null,
      "paymentStatus": "notPaid",
      "payments": null,
      "restaurantCode": 199990263
    }
  ]
}
CODE