An order represents what a customer ordered using a channel. It contains the products, prices, and payment information.

Depending on the channel, we can also receive customer info.

In addition, it contains if the order is for takeout or delivery. If the restaurant does the delivery themselves, then a delivery address will also be available.

A POS that has a cloud API should put an endpoint online that accepts orders like shown here.

The following orderType are available:

Type

Integer Value

pickup

1

delivery

2

eat in

3

curbside

4

The payment types are as follow:

Payment Type

Integer Value

Credit Card Online

0

Cash

1

On Delivery

2

Online

3

Credit Card at Door

4

PIN at Door

5

Voucher at Door

6

Cheque

7

Bank Contact

8

Other

9

We assume this endpoint to respond quickly. You are encouraged to do things asynchronously. When everything has been done, just call the update order status endpoint to let us know. When you receive an order successfully, we expect a HTTP 200 or 201 status response back. Any other HTTP status will cause the order to be retried after a couple of seconds. After a couple of failed retries, we will mark the order as failed.

The return value should be the posOrderId. This can be used by support/customers to reference an order if something were to go wrong.

Request parameters

The table below explains the differences between channelOrderId, channelOrderDisplayId, and channelOrderRawId. It also provides the context for some other fields.

Parameter

Meaning

channelOrderId

The full unique ID from the delivery channel.

channelOrderDisplayId

The more human-readable ID from the channel (only unique in a certain duration, like a day).

channelOrderRawId

An internal ID you don't need to store or use.

by

When filled in, this field contains information about the subchannel through which the end customer ordered. This can be for example 'app' or 'mobile', 'web', 'unknown', or a third party. Most of the time, this field will be empty.

(courier).deliveryBy

This specifies who is delivering an order. There are only two possible variations

  • • A channel creating the order can specify their own channel name, if they are handling delivery for the restaurant.
    • • If the restaurant are arranging their own delivery, "restaurant" needs to be specified here. This is required where delivery of orders is being fulfilled by an integrated 'Dispatch' partner.*

subItems

All subitems are items associated with the product ordered

taxTotal

taxTotal is the sum of deliveryTax + serviceChargeTax + deliveryCostTax.

discountTotal

Ordering platforms may offer multiple forms of discount e.g. special offers on selected items, % discounts etc.
A discount total sends as a minus value representing the deduction from the total order.

Cancels & rejects

There are two flows for incoming orders:

  • Orders are auto-accepted.
  • Orders need to be manually accepted. This can be done through your POS. Alternatively, our app can be used for this if you do not support this feature.

Some channels support canceling orders. When a channel requests to cancel an order, your POS will receive a request from Deliverect using the endpoint used for new orders.

However, not all channels support sending cancellation requests. Furthermore, it's important to know that you should only expect cancellation requests for orders that just came in. For example,
the order has gone through but the payment was rejected from the payment provider on the channel side.

When a new order comes in, your POS API can mark this as canceled. The cancelled status will be communicated back to the ordering platform, yet not all channels supports this. A typical reason for applying this status is that the order is undesired, that some required ingredient is not in stock, or that there is no time to prepare the order. If you are marking an order as 'Canceled' you need to send us the status 110.

Once your POS API has accepted an order, it should no longer be possible for that order to be canceled (in other words, your POS API cannot reject orders once accepted).

An order that is to be canceled by the POS will have the same data as the original order, except for its status. Most notably, the order will have the same channelOrderId. This ID can be used to trace back the original order.

Order to be canceled will have the CANCEL (100) status. When you receive such an order, make sure to handle the cancellation correctly by sending an order status update request to Deliverect as described in the documentation for Update Order Status.

📘

If you receive a status that is not documented here, these can safely be ignored in most cases. Contact Deliverect to receive the meaning of the status.

In no case should an unknown status hinder your flow of processing orders.

{
    "_id":"5c6d830a0182d6000e******",
    "_created":"2019-02-20T16:40:44.000000Z",
    "_updated":"2019-02-20T16:40:52.000000Z",
    "channelOrderId":"******-1527",
    "channelOrderDisplayId":"1527",
    "posLocationId":"30458",
    "location":"5bf02f38c6489f002c******",
    "channelLink":"5bf02f38c6489f002c******",
    "status":1,
    "statusHistory":[
        {
            "_created":"2019-02-20T16:40:42.703000Z",
            "response":"",
            "timeStamp":"2019-02-20T16:40:42.703000Z",
            "status":4
        },
        {
            "_created":"2019-02-20T16:40:42.726000Z",
            "response":"",
            "timeStamp":"2019-02-20T16:40:42.726000Z",
            "status":1
        }
    ],
    "by":"web",
    "orderType":2,
    "channel":2,
    "table":"table 3",
    "pickupTime":"2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap":true,
    "courier":{
        "firstName":"Delivery",
        "lastName":"Rider",
        "phoneNumber":"0032494112233",
        "deliveryBy":"UberEats"
    },
    "customer":{
        "name":"James Bond",
        "companyName":"MI6",
        "phoneNumber":"0032494000007",
        "phoneAccessCode": "12345",
        "email":"[email protected]",
        "note": "Please do not call at arrival. Text messages only",
        "tin":"taxIdentificationNumber"
    },
    "deliveryAddress":{
        "street":"Albert Embankment",
        "streetNumber":"85",
        "postalCode":"SE, SW",
        "city":"Vauxhall, Lambeth",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":400,
        "type":0
    },
    "note":"",
    "items":[
        {
            "plu":"P1",
            "name":"Product 1",
            "price":200,
            "quantity":1,
            "productType":1,
            "remark":"Don'\\''t add peper",
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"O2",
                    "name":"Modifier 2/ Option 2",
                    "price":200,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                }
            ]
        },
        {
            "plu":"P2",
            "name":"Product 2",
            "price":200,
            "quantity":1,
            "productType":1,
            "remark":"Without salt",
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "deliveryCost":0,
    "serviceCharge":0,
    "discountTotal":-100,
    "posCustomerId":"256706",
    "account":"5be9c971c6489f0029******",
    "posReceiptId":"",
    "tags":[
        "Brand X",
        "Brand Y"
    ]
}
{
    "_id":"5c6d830a0182d6000e******",
    "_created":"2019-02-20T16:40:44.000000Z",
    "_updated":"2019-02-20T16:40:52.000000Z",
    "channelOrderId":"******-1527",
    "channelOrderDisplayId":"1527",
    "posLocationId":"30458",
    "location":"5bf02f38c6489f002c******",
    "channelLink":"5bf02f38c6489f002c******",
    "status":100,
    "statusHistory":[
        {
            "_created":"2019-02-20T16:40:42.703000Z",
            "response":"",
            "timeStamp":"2019-02-20T16:40:42.703000Z",
            "status":4
        },
        {
            "_created":"2019-02-20T16:40:42.726000Z",
            "response":"",
            "timeStamp":"2019-02-20T16:40:42.726000Z",
            "status":1
        }
    ],
    "by":"",
    "orderType":2,
    "channel":2,
    "pickupTime":"2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap":false,
    "courier":{
        "firstName":"Delivery",
        "lastName":"Rider",
        "phoneNumber":"0032494112233",
        "deliveryBy":"UberEats"
    },
    "customer":{
        "name":"Customer name",
        "companyName":"Deliverect",
        "phoneNumber":"0123456789",
        "phoneAccessCode": "12345",
        "email":"[email protected]"
    },
    "deliveryAddress":{
        "street":"",
        "streetNumber":"",
        "postalCode":"",
        "city":"",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":400,
        "type":0
    },
    "note":"",
    "items":[
        {
            "plu":"P1",
            "name":"Product 1",
            "price":200,
            "quantity":1,
            "productType":1,
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"O2",
                    "name":"Modifier 2/ Option 2",
                    "price":200,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                }
            ]
        },
        {
            "plu":"P2",
            "name":"Product 2",
            "price":200,
            "quantity":1,
            "productType":1,
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "deliveryCost":0,
    "serviceCharge":0,
    "discountTotal":0,
    "posCustomerId":"256706",
    "account":"5be9c971c6489f0029******",
    "posReceiptId":"",
    "tags":[
        "Brand X",
        "Brand Y"
    ]
}
{
    "_id":"5f****ea3458774497****41",
    "_created":"2020-08-20T09:44:10.792000Z",
    "_updated":"2020-08-20T09:44:10.863000Z",
    "_etag":"",
    "account":"5f****1e953d3a40ec****4f",
    "channelOrderId":"TEST1597916650",
    "channelOrderDisplayId":"TEST1597916650",
    "posId":"",
    "posReceiptId":"",
    "posLocationId":"TEST-0001",
    "location":"5f****59953d3a40ec****53",
    "channelLink":"5f****92953d3a40ec****56",
    "status":1,
    "statusHistory":[
        {
            "timeStamp":"2020-08-20T09:44:10.887000Z",
            "status":4,
            "response":"",
            "source":5
        },
        {
            "timeStamp":"2020-08-20T09:44:10.899000Z",
            "status":1,
            "response":"",
            "source":2
        }
    ],
    "channelStatusHistory":[
        
    ],
    "by":"Deliverect",
    "orderType":2,
    "channel":1,
    "pos":10000,
    "pickupTime":"2020-08-20T09:44:10.000000Z",
    "deliveryTime":"2020-08-20T09:44:10.000000Z",
    "deliveryIsAsap":true,
    "courier":{
        "deliveryBy":"restaurant"
    },
    "customer":{
        "name":"",
        "companyName":"",
        "phoneNumber":"",
        "phoneAccessCode": "12345",
        "email":""
        "note": "",
    },
    "deliveryAddress":{
        "street":"The Krook",
        "streetNumber":"4",
        "postalCode":"8888KL",
        "city":"Gent",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":850,
        "type":0
    },
    "note":"This is a test order",
    "items":[
        {
            "plu":"CMB-01",
            "name":"Kid Fun Meal Box",
            "sortOrder":0,
            "price":800,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "remark":"",
            "isCombo":true,
            "subItems":[
                {
                    "plu":"BRGR-02",
                    "name":"Cheese Burger",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"FRS-02",
                    "name":"Medium Fries",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        {
                            "plu":"SC-02",
                            "name":"Ketchup",
                            "sortOrder":0,
                            "price":50,
                            "quantity":1,
                            "productType":2,
                            "isInternal":false,
                            "remark":"",
                            "subItems":[
                                
                            ]
                        }
                    ]
                },
                {
                    "plu":"DRNK-02",
                    "name":"Iced Tea",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "channelOrderRawId":"5f****ea90efcf106b****1a",
    "serviceCharge":0,
    "deliveryCost":0,
    "discountTotal":-100,
    "historyDriverUpdates":[
        
    ],
    "capacityUsages":[
        
    ]
}
{
    "_id":"5f****1a8f32c70edf****b7",
    "_created":"2020-08-20T10:53:14.063000Z",
    "_updated":"2020-08-20T10:53:14.684000Z",
    "_etag":"",
    "account":"5f****78a850c18614****8f",
    "channelOrderId":"TEST1597920794",
    "channelOrderDisplayId":"TEST1597920794",
    "posId":"",
    "posReceiptId":"",
    "posLocationId":"TEST-0001",
    "location":"5f****c1a850c18614****98",
    "channelLink":"5f****d6a850c18614****9b",
    "status":1,
    "statusHistory":[
        {
            "timeStamp":"2020-08-20T10:53:14.994000Z",
            "status":4,
            "response":"",
            "source":5
        },
        {
            "timeStamp":"2020-08-20T10:53:15.068000Z",
            "status":1,
            "response":"",
            "source":2
        }
    ],
    "channelStatusHistory":[
        
    ],
    "by":"Deliverect",
    "orderType":2,
    "channel":1,
    "pos":10000,
    "pickupTime":"2020-08-20T10:53:14.000000Z",
    "deliveryTime":"2020-08-20T10:53:14.000000Z",
    "deliveryIsAsap":true,
    "courier":{
        "deliveryBy":"restaurant"
    },
    "customer":{
        "name":"",
        "companyName":"",
        "phoneNumber":"",
        "phoneAccessCode": "12345",
        "email":"",
        "note": ""
    },
    "deliveryAddress":{
        "street":"The Krook",
        "streetNumber":"4",
        "postalCode":"8888KL",
        "city":"Gent",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":1200,
        "type":0
    },
    "note":"This is a test order",
    "items":[
        {
            "plu":"CMB-01",
            "name":"Kid Fun Meal Box",
            "sortOrder":0,
            "price":800,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "isCombo":true,
            "subItems":[
                {
                    "plu":"BNDL-BRGR-02",
                    "name":"Cheese Burger",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"FRS-02",
                    "name":"Medium Fries",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        {
                            "plu":"SC-02",
                            "name":"Ketchup",
                            "sortOrder":0,
                            "price":50,
                            "quantity":1,
                            "productType":2,
                            "isInternal":false,
                            "subItems":[
                                
                            ]
                        }
                    ]
                },
                {
                    "plu":"DRNK-02",
                    "name":"Iced Tea",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                }
            ]
        },
        {
            "plu":"BRGR-02",
            "name":"Cheese Burger",
            "sortOrder":0,
            "price":350,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "subItems":[
                
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "channelOrderRawId":"5f****1aa850c18614****53",
    "serviceCharge":0,
    "deliveryCost":0,
    "discountTotal":-100,
    "historyDriverUpdates":[
        
    ],
    "capacityUsages":[
        
    ]
}
{
    "_id":"5f****b56c275c2cfe****b7",
    "_created":"2020-08-20T11:00:05.362000Z",
    "_updated":"2020-08-20T11:00:05.746000Z",
    "_etag":"",
    "account":"5f****8ba850c18614****94",
    "channelOrderId":"TEST1597921205",
    "channelOrderDisplayId":"TEST1597921205",
    "posId":"",
    "posReceiptId":"",
    "posLocationId":"TEST-0001",
    "location":"5f****aea850c18614****55",
    "channelLink":"5f****30a850c18614****7d",
    "status":1,
    "statusHistory":[
        {
            "timeStamp":"2020-08-20T11:00:05.994000Z",
            "status":4,
            "response":"",
            "source":5
        },
        {
            "timeStamp":"2020-08-20T11:00:06.057000Z",
            "status":1,
            "response":"",
            "source":2
        }
    ],
    "channelStatusHistory":[
        
    ],
    "by":"Deliverect",
    "orderType":2,
    "channel":1,
    "pos":10000,
    "pickupTime":"2020-08-20T11:00:05.000000Z",
    "deliveryTime":"2020-08-20T11:00:05.000000Z",
    "deliveryIsAsap":true,
    "courier":{
        "deliveryBy":"restaurant"
    },
    "customer":{
        "name":"",
        "companyName":"",
        "phoneNumber":"",
        "phoneAccessCode": "12345",
        "email":""
    },
    "deliveryAddress":{
        "street":"The Krook",
        "streetNumber":"4",
        "postalCode":"8888KL",
        "city":"Gent",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":1000,
        "type":0
    },
    "note":"This is a test order",
    "items":[
        {
            "plu":"CMB-01",
            "name":"Healthy Snack Bowl",
            "sortOrder":0,
            "price":1000,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "isCombo":true,
            "subItems":[
                {
                    "plu":"RICE-01",
                    "name":"Brown Rice",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"VEG-03",
                    "name":"Avocado",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"MEAT-02",
                    "name":"Chicken",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"XTRA-01",
                    "name":"Nuts",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"SAUC-02",
                    "name":"Spicy Chili",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "channelOrderRawId":"5f****b5a850c18614****d3",
    "serviceCharge":0,
    "deliveryCost":0,
    "discountTotal":-100,
    "historyDriverUpdates":[
        
    ],
    "capacityUsages":[
        
    ]
}
{
    "_id":"5f****f1fe54f0048****0f",
    "_created":"2020-10-06T14:41:19.402000Z",
    "_updated":"2020-10-06T14:41:19.423000Z",
    "_etag":"",
    "account":"5f****e60f73e82f26****22",
    "channelOrderId":"TEST1601995279",
    "channelOrderDisplayId":"TEST1601995279",
    "posId":"",
    "posReceiptId":"",
    "posLocationId":"GP-0002",
    "location":"5f****150f73e82f26****27",
    "channelLink":"5f****290f73e82f26****2b",
    "status":1,
    "statusHistory":[
        {
            "timeStamp":"2020-10-06T14:41:19.428000Z",
            "status":4,
            "response":"",
            "source":5
        },
        {
            "timeStamp":"2020-10-06T14:41:19.435000Z",
            "status":1,
            "response":"",
            "source":2
        }
    ],
    "channelStatusHistory":[
        
    ],
    "by":"Deliverect",
    "orderType":2,
    "channel":1,
    "pos":10000,
    "pickupTime":"2020-10-06T14:41:19.000000Z",
    "deliveryTime":"2020-10-06T14:41:19.000000Z",
    "deliveryIsAsap":true,
    "courier":{
        "deliveryBy":"restaurant"
    },
    "customer":{
        "name":"",
        "companyName":"",
        "phoneNumber":"",
        "phoneAccessCode": "12345",
        "email":""
    },
    "deliveryAddress":{
        "street":"The Krook",
        "streetNumber":"4",
        "postalCode":"8888KL",
        "city":"Gent",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":200,
        "type":0
    },
    "note":"This is a test order",
    "items":[
        {
            "plu":"P-BRGR",
            "name":"Hamburger",
            "sortOrder":0,
            "price":0,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "isCombo":true,
            "subItems":[
                {
                    "plu":"M-FRS-M",
                    "name":"Medium Fries",
                    "sortOrder":0,
                    "price":150,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "subItems":[
                        {
                            "plu":"M-SC-KE",
                            "name":"Ketchup",
                            "sortOrder":0,
                            "price":50,
                            "quantity":1,
                            "productType":2,
                            "isInternal":false,
                            "subItems":[
                                
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "channelOrderRawId":"5f****0f700242957f****ba",
    "serviceCharge":0,
    "deliveryCost":0,
    "discountTotal":-100,
    "historyDriverUpdates":[
        
    ],
    "capacityUsages":[
        
    ]
}
{
    "_id":"5c6d830a0182d6000e******",
    "_created":"2019-02-20T16:40:44.000000Z",
    "_updated":"2019-02-20T16:40:52.000000Z",
    "channelOrderId":"******-1527",
    "channelOrderDisplayId":"1527",
    "posLocationId":"30458",
    "location":"5bf02f38c6489f002c******",
    "channelLink":"5bf02f38c6489f002c******",
    "status":1,
    "statusHistory":[
        {
            "_created":"2019-02-20T16:40:42.703000Z",
            "response":"",
            "timeStamp":"2019-02-20T16:40:42.703000Z",
            "status":4
        },
        {
            "_created":"2019-02-20T16:40:42.726000Z",
            "response":"",
            "timeStamp":"2019-02-20T16:40:42.726000Z",
            "status":1
        }
    ],
    "by":"",
    "orderType":2,
    "channel":2,
    "table":"table 4",
    "pickupTime":"2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap":false,
    "courier":{
        "firstName":"Delivery",
        "lastName":"Rider",
        "phoneNumber":"0032494112233",
        "deliveryBy":"UberEats"
    },
    "customer":{
        "name":"Customer name",
        "companyName":"Deliverect",
        "phoneNumber":"0123456789",
        "phoneAccessCode": "12345",
        "email":"[email protected]"
    },
    "deliveryAddress":{
        "street":"",
        "streetNumber":"",
        "postalCode":"",
        "city":"",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":700,
        "type":0
    },
    "note":"",
    "items":[
        {
            "plu":"P1",
            "name":"Product 1",
            "price":200,
            "quantity":1,
            "productType":1,
            "remark":"",
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "remark":"",
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"O2",
                    "name":"Modifier 2/ Option 2",
                    "price":200,
                    "quantity":1,
                    "productType":2,
                    "remark":"",
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                }
            ]
        },
        {
            "plu":"P2",
            "name":"Product 2",
            "price":200,
            "quantity":1,
            "productType":1,
            "remark":"",
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "remark":"",
                    "isInternal":false,
                    "subItems":[
                        
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "deliveryCost":0,
    "serviceCharge":0,
    "discountTotal":0,
    "posCustomerId":"256706",
    "account":"5be9c971c6489f0029******",
    "posReceiptId":"",
    "tags":[
        "Brand X",
        "Brand Y"
    ],
    "tip":100
}
{
    "_id":"5c6d830a0182d6000e******",
    "_created":"2019-02-20T16:40:44.000000Z",
    "_updated":"2019-02-20T16:40:52.000000Z",
    "channelOrderId":"******-1527",
    "channelOrderDisplayId":"1527",
    "posLocationId":"30458",
    "location":"5bf02f38c6489f002c******",
    "channelLink":"5bf02f38c6489f002c******",
    "status":1,
    "statusHistory":[
        
    ],
    "by":"web",
    "orderType":2,
    "channel":2,
    "table":"table 3",
    "pickupTime":"2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap":false,
    "courier":{
        "firstName":"Delivery",
        "lastName":"Rider",
        "phoneNumber":"0032494112233",
        "deliveryBy":"UberEats"
    },
    "customer":{
        "name":"James Bond",
        "companyName":"MI6",
        "phoneNumber":"0032494000007",
        "phoneAccessCode": "12345",
        "email":"[email protected]"
    },
    "deliveryAddress":{
        "street":"Albert Embankment",
        "streetNumber":"85",
        "postalCode":"SE, SW",
        "city":"Vauxhall, Lambeth",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":400,
        "type":0
    },
    "note":"",
    "items":[
        {
            "plu":"P1",
            "name":"Product 1",
            "price":200,
            "quantity":1,
            "productType":1,
            "remark":"Don'\\''t add peper",
            "subItems":[
                {
                    "plu":"O1",
                    "name":"Modifier 1/ Option 1",
                    "price":0,
                    "quantity":1,
                    "productType":2,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        {
                            "plu":"NO1",
                            "name":"Nested Modifier 3",
                            "price":0,
                            "quantity":1,
                            "productType":2,
                            "isInternal":false,
                            "remark":"",
                            "subItems":[
                                
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "deliveryCost":0,
    "serviceCharge":0,
    "discountTotal":0,
    "posCustomerId":"256706",
    "account":"5be9c971c6489f0029******",
    "posReceiptId":"",
    "tags":[
        "Brand X",
        "Brand Y"
    ]
}
{
    "_id":"5c6d830a0182d6000e******",
    "_created":"2019-02-20T16:40:44.000000Z",
    "_updated":"2019-02-20T16:40:52.000000Z",
    "channelOrderId":"******-1527",
    "channelOrderDisplayId":"1527",
    "posLocationId":"30458",
    "location":"5bf02f38c6489f002c******",
    "channelLink":"5bf02f38c6489f002c******",
    "status":1,
    "statusHistory":[
        
    ],
    "by":"web",
    "orderType":2,
    "channel":2,
    "table":"table 3",
    "pickupTime":"2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap":false,
    "courier":{
        "firstName":"Delivery",
        "lastName":"Rider",
        "phoneNumber":"0032494112233",
        "deliveryBy":"UberEats"
    },
    "customer":{
        "name":"James Bond",
        "companyName":"MI6",
        "phoneNumber":"0032494000007",
        "phoneAccessCode": "12345",
        "email":"[email protected]"
    },
    "deliveryAddress":{
        "street":"Albert Embankment",
        "streetNumber":"85",
        "postalCode":"SE, SW",
        "city":"Vauxhall, Lambeth",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":350,
        "type":0
    },
    "note":"",
    "items":[
        {
            "plu":"PR05",
            "name":"Awesome Drink",
            "sortOrder":0,
            "price":250,
            "bottleDepositPrice":0,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "subItems":[
                
            ]
        },
        {
            "plu":"PR06",
            "name":"Bottle Deposit",
            "sortOrder":0,
            "price":100,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "subItems":[
                
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "deliveryCost":0,
    "serviceCharge":0,
    "discountTotal":0,
    "posCustomerId":"256706",
    "account":"5be9c971c6489f0029******",
    "posReceiptId":"",
    "tags":[
        "Brand X",
        "Brand Y"
    ]
}
{
    "_id": "5c6d830a0182d6000e******",
    "_created": "2022-01-12T13:55:11.000000Z",
    "_updated": "2022-01-12T13:55:11.000000Z",
    "account": "6**********d636b57dab3b2",
    "channelOrderId": "T********95786",
    "channelOrderDisplayId": "T********95786",
    "posId": "",
    "posReceiptId": "",
    "posLocationId": "3",
    "location": "6*********98124710d2ae0",
    "channelLink": "6**********98124710d2ae8",
    "status": 1,
    "statusHistory": [
        {
            "timeStamp": "2022-01-12T13:55:11.000000Z",
            "status": 4,
            "response": "",
            "source": 2
        },
        {
            "timeStamp": "2022-01-12T13:55:11.000000Z",
            "status": 1,
            "response": "",
            "source": 5
        }
    ],
    "packaging": {
        "includeCutlery": false
    },
    "by": "Deliverect",
    "orderType": 2,
    "channel": 1,
    "pos": 10000,
    "rating": [],
    "pickupTime": "2022-01-12T13:56:26.000000Z",
    "deliveryTime": "2022-01-12T13:56:26.000000Z",
    "deliveryIsAsap": true,
    "courier": {
        "deliveryBy": "restaurant"
    },
    "customer": {
        "name": "",
        "companyName": "",
        "phoneNumber": "",
        "email": "",
        "note": ""
    },
    "deliveryAddress": {
        "street": "The Krook",
        "streetNumber": "4",
        "postalCode": "8888KL",
        "city": "Gent",
        "extraAddressInfo": ""
    },
    "orderIsAlreadyPaid": true,
    "taxes": [
        {
            "name": "taxes",
            "taxClassId": 0,
            "total": 50
        }
    ],
    "taxTotal": 180,
    "payment": {
        "amount": 3980,
        "type": 0,
        "due": 0
    },
    "note": "This is a test order",
    "items": [
        {
            "plu": "193662",
            "name": "Kulmbacher Br\u00e4twurst",
            "sortOrder": 0,
            "price": 3000,
            "quantity": 1,
            "productType": 1,
            "isInternal": false,
            "subItems": []
        }
    ],
    "decimalDigits": 2,
    "numberOfCustomers": 1,
    "channelOrderRawId": "6**********98124710d5671",
    "serviceCharge": 400,
    "deliveryCost": 300,
    "bagFee": 0,
    "tip": 200,
    "driverTip": 0,
    "discountTotal": -100,
    "historyDriverUpdates": [],
    "capacityUsages": [],
    "recent": true,
    "resolvedBy": "",
    "brandId": "6137764b0b4d636b57dab3b1",
    "testOrder": true
}
{
    "_id":"5f****ea3458774497****41",
    "_created":"2020-08-20T09:44:10.792000Z",
    "_updated":"2020-08-20T09:44:10.863000Z",
    "_etag":"",
    "account":"5f****1e953d3a40ec****4f",
    "channelOrderId":"TEST1597916650",
    "channelOrderDisplayId":"TEST1597916650",
    "posId":"",
    "posReceiptId":"",
    "posLocationId":"TEST-0001",
    "location":"5f****59953d3a40ec****53",
    "channelLink":"5f****92953d3a40ec****56",
    "status":1,
    "statusHistory":[
        {
            "timeStamp":"2020-08-20T09:44:10.887000Z",
            "status":4,
            "response":"",
            "source":5
        },
        {
            "timeStamp":"2020-08-20T09:44:10.899000Z",
            "status":1,
            "response":"",
            "source":2
        }
    ],
    "channelStatusHistory":[
        
    ],
    "by":"Deliverect",
    "orderType":2,
    "channel":1,
    "pos":10000,
    "pickupTime":"2020-08-20T09:44:10.000000Z",
    "deliveryTime":"2020-08-20T09:44:10.000000Z",
    "deliveryIsAsap":true,
    "courier":{
        "deliveryBy":"restaurant"
    },
    "customer":{
        "name":"",
        "companyName":"",
        "phoneNumber":"",
        "phoneAccessCode": "12345",
        "email":""
    },
    "deliveryAddress":{
        "street":"The Krook",
        "streetNumber":"4",
        "postalCode":"8888KL",
        "city":"Gent",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":850,
        "type":0
    },
    "note":"This is a test order",
    "items":[
        {
            "plu":"CMB-01",
            "name":"Kid Fun Meal Box",
            "sortOrder":0,
            "price":800,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "remark":"",
            "isCombo":true,
            "subItems":[
                {
                    "plu":"BRGR-02",
                    "name":"Cheese Burger",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                },
                {
                    "plu":"FRS-02",
                    "name":"Medium Fries",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        {
                            "plu":"SC-02",
                            "name":"Ketchup",
                            "sortOrder":0,
                            "price":50,
                            "quantity":1,
                            "productType":2,
                            "isInternal":false,
                            "remark":"",
                            "subItems":[
                                
                            ]
                        }
                    ]
                },
                {
                    "plu":"DRNK-02",
                    "name":"Iced Tea",
                    "sortOrder":0,
                    "price":0,
                    "quantity":1,
                    "productType":1,
                    "isInternal":false,
                    "remark":"",
                    "subItems":[
                        
                    ]
                }
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "channelOrderRawId":"5f****ea90efcf106b****1a",
    "serviceCharge":0,
    "deliveryCost":0,
    "discountTotal":0,
    "historyDriverUpdates":[
        
    ],
    "capacityUsages":[
        
    ]
}
{
    "_id":"5c6d830a0182d6000e******",
    "_created":"2019-02-20T16:40:44.000000Z",
    "_updated":"2019-02-20T16:40:52.000000Z",
    "channelOrderId":"******-1527",
    "channelOrderDisplayId":"1527",
    "posLocationId":"30458",
    "location":"5bf02f38c6489f002c******",
    "channelLink":"5bf02f38c6489f002c******",
    "status":1,
    "statusHistory":[
        
    ],
    "by":"web",
    "orderType":2,
    "channel":2,
    "table":"table 3",
    "pickupTime":"2019-02-20T16:40:42.000000Z",
    "deliveryIsAsap":false,
    "courier":{
        "firstName":"Delivery",
        "lastName":"Rider",
        "phoneNumber":"0032494112233",
        "deliveryBy":"UberEats"
    },
    "customer":{
        "name":"James Bond",
        "companyName":"MI6",
        "phoneNumber":"0032494000007",
        "phoneAccessCode": "12345",
        "email":"[email protected]"
    },
    "deliveryAddress":{
        "street":"Albert Embankment",
        "streetNumber":"85",
        "postalCode":"SE, SW",
        "city":"Vauxhall, Lambeth",
        "extraAddressInfo":""
    },
    "orderIsAlreadyPaid":true,
    "payment":{
        "amount":350,
        "type":0
    },
    "note":"",
    "items":[
        {
            "plu":"PR05",
            "name":"Awesome Drink",
            "sortOrder":0,
            "price":250,
            "bottleDepositPrice":0,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "subItems":[
                
            ]
        },
        {
            "plu":"PR06",
            "name":"Bottle Deposit",
            "sortOrder":0,
            "price":100,
            "quantity":1,
            "productType":1,
            "isInternal":false,
            "subItems":[
                
            ]
        }
    ],
    "decimalDigits":2,
    "numberOfCustomers":1,
    "deliveryCost":0,
    "serviceCharge":0,
    "discountTotal":0,
    "posCustomerId":"256706",
    "account":"5be9c971c6489f0029******",
    "posReceiptId":"",
    "tags":[
        "Brand X",
        "Brand Y"
    ]
}
{
  "posOrderId": "302105"
}
Content-Type: application/json