The Order query model for events is the contents of the eventParams section.

Format


JSON

{
   "originalOrderId":"string",
   "orderGuid":"guid",
   "createdAt":"2008-10-17T00:00:00",
   "printedAt":"2008-10-17T00:00:00",
   "closedAt":"2008-10-17T00:00:00",
   "waiter":"string",
   "tableName":"string",
   "status":{
      "value":"string"
   },
   "substate": "string",
   "products":[
      {
         "id":"string",
         "name":"string",
         "price":"string",
         "quantity":"number",
         "measure":{
            "value":"string",
            "unit":"string"
         },
         "ingredients":[
            {
               "id":"string",
               "name":"string",
               "quantity":"number",
               "price":"string"
            }
         ],
         "voidingReason":"string"
      }
   ],
   "comment":"string",
   "appliedPayments":[
      {
         "amount":"number",
         "guid":"guid",
         "payType":"enum"
      }
   ],
   "price":{
      "total":"number",
      "sumToPay":"number"
   },
   "personsQuantity":"number",
   "rejectingReason": {
            "code": "string",
            "message": "string"




Parameter

Parameter type

Mandatory

Description

Parameter

Parameter type

Mandatory

Description

orderGuidstringyesOrder guid
createdAtdateTime
Order creation time
printedAtdateTime
Guest bill printing time
closedAtdateTime
Order closing time
waiterstring
Waiter
tableNamestring
Table name
status.valuestring

Order status

substatestring

Extended order status

products
-idstringyesDish ID
-namestring
Name of the dish

-price

stringнетThe parameter is not mandatory. It can be left blank, since the order is created with the price indicated at the cash register. The separator between the integer and fractional parts of the sum must be a dot.
-quantityfloatyesNumber of dishes
-measure

Measure
--unitstring
Unit of measurement
--valuestring
Value
-ingredientsarray
An array of modifiers or combo elements (ingredients or contents of a combo dish)
--idintyesIngredient ID
--namestring
Ingredient name

--price

string
The parameter is not mandatory. It can be left blank, since the order is created with the price indicated at the cash register. The separator between the integer and fractional parts of the sum must be a dot.
--quantityfloat yesQuantity of ingredients
-voidingReasonstring
Reason for removing dish from order
commentstring
Comment to order
appliedPayments

Payments and prepayments. (WSA 2 only)
-amountmoneyyesThe value of the amount to be paid. The separator between the integer and fractional parts of the amount must be a dot.
-guidguidyesPayment ID
-payTypeenumyesPayment type: Cash, Card, Unknown.
price
yesOrder cost
-sumToPaymoneyyesThe amount that remains to be paid. The separator between the whole and fractional parts of the amount must be a dot.
-totalmoneyyesTotal cost of the order. The separator between the whole and fractional parts of the amount must be a dot.
personsQuantityint
Number of persons
rejectingReason

Reason for order cancellation
-codestring
Cancellation code
-messagestring
Reason for order cancellation