POST Recibir Pedidos Webhook

Un pedido representa los productos que un cliente pidió a través de un canal. Contiene los productos, precios e información de pago. Dependiendo del canal, también se puede recibir información del cliente.

Además, contiene el tipo de pedido (para llevar o a domicilio). En el caso de que el restaurante efectúe la entrega él mismo, también se recibirá una dirección de entrega.

Los tipos de pedido disponibles son los siguientes:

TipoInteger
pickup1
delivery2
eat in3

Los tipos de pedido son los siguientes:

Tipo de PagoInteger
Credit Card Online (Tarjeta de crédito)0
Cash (Efectivo)1
On Delivery (En reparto)2
Online3
Credit Card at Door (Tarjeta de crédito en la puerta)4
PIN at Door5
Voucher at Door6
Meal Voucher7
Bank Contact8
Other (Otros)9

📘

Tiempo UTC

Todos los valores de tiempo son dados en formato UTC.

Parámetros requeridos

La tabla a continuación representa las diferencias entre channelOrderId, channelOrderDisplayId, y channelOrderRawId, además de otros atributos.

ParameterMeaning
channelOrderIdID único del canal de delivery.
channelOrderDisplayIdID con formato más legible y amigable para el usuario del canal (único durante cierta duración, un día).
channelOrderRawIdID interno. No es necesario usarlo/almacenarlo.
byCuando se completa, este campo contiene información sobre el sub-canal a través del cual realizó el pedido el cliente final. Esto puede ser, por ejemplo, 'aplicación' o 'móvil', 'web', 'desconocido' o un tercero. La mayoría de las veces, este campo estará vacío.
(courier).deliveryByEste campo especifica quién está entregando un pedido. Existen variaciones posibles.
• Un canal que crea el pedido puede especificar su propio nombre cuando gestiona la entrega para el restaurante.
• Si el restaurante organiza su propia entrega, se debe especificar "restaurante" aquí. Esto es necesario cuando la entrega de los pedidos la realiza un socio de 'Dispatch' integrado con Deliverect.
subItemsTodos los subitems son items asociados con el producto pedido
taxTotaltaxTotal es la suma de deliveryTax + serviceChargeTax + deliveryCostTax.
discountTotalLas plataformas de pedidos pueden ofrecer múltiples formas de descuento de acuerdo con los restaurantes. Por ejemplo, ofertas especiales en artículos seleccionados, % de descuento, etc.
El total descontado se envía como un valor negativo que representa la deducción del pedido total.
rebate"Rebate" incluye cualquier descuento ofrecido por los canales. El TPV puede necesitar esta información para generar informes. El cliente que realiza el pedido debe pagar la cantidad sin el reembolso, pero el restaurante recibirá la cantidad total del canal.

Cancelaciones y Rechazos

Existen dos flujos para los pedidos entrantes:

  • Los pedidos son aceptados automáticamente.
  • Los pedidos son aceptados manualmente. Esto se puede hacer a través de su TPV. Alternativamente, nuestra aplicación se puede usar para esto si el TPV no es compatible con esta función.

Algunos canales admiten la cancelación de pedidos. Cuando un canal solicita cancelar un pedido, su TPV recibirá una solicitud desde Deliverect mediante el endpoint utilizado para nuevos pedidos.

Sin embargo, no todos los canales admiten el envío de solicitudes de cancelación. Además, es importante saber que solo deben esperarse solicitudes de cancelación de pedidos que se acaban de recibir. Por ejemplo,
el pedido se realizó pero el pago fue rechazado por el proveedor de pago en el lado del canal.

Cuando llega un nuevo pedido, su POS puede marcarlo como cancelado via API. El estado cancelado se comunicará a la plataforma de pedidos, pero no todos los canales lo admiten. Una razón típica para aplicar este estado es que el pedido no es deseado, que algún ingrediente requerido no está en stock o que no hay tiempo suficiente para preparar el pedido. Si se marca un pedido como 'Cancelado', debe enviarnos el estado 110.

Una vez que el API de su POS haya aceptado un pedido, ya no debería ser posible cancelar ese pedido (en otras palabras, no se puede rechazar pedidos una vez hayan sido aceptados).

Un pedido que vaya a ser cancelado por el TPV contendrá los mismos datos que el pedido original, excepto su estado y su _id. En particular, el pedido tendrá el mismo channelOrderId. Este ID se puede utilizar para rastrear el pedido original.

El pedido a cancelar tendrá el estado CANCELAR (100). Cuando reciba un pedido de este tipo, asegúrese de manejar la cancelación correctamente enviando una solicitud de actualización del estado del pedido a Deliverect como se describe en la documentación para Actualizar estado del pedido.

📘

Si recibe un estado no documentado aquí, puede ignorado en la mayoría de los casos. Póngase en contacto con Deliverect para recibir el significado del estado.

En ningún caso, un estado desconocido debe obstaculizar su flujo de procesamiento de pedidos.

{
  "_created": "2022-04-14T09:43:16.770527Z",
  "_updated": "2022-04-14T09:43:16.823095Z",
  "_id": "6257ecb499979fee50a2d37c",
  "account": "61********************61",
  "channelOrderId": "TEST1649929401",
  "channelOrderDisplayId": "T929401",
  "posId": "",
  "posReceiptId": "",
  "posLocationId": "852",
  "location": "61********************a4",
  "channelLink": "61********************b2",
  "status": 1,
  "statusHistory": [
    {
      "timeStamp": "2022-04-14T09:43:16.896162Z",
      "status": 4,
      "response": "",
      "source": 2
    },
    {
      "timeStamp": "2022-04-14T09:43:16.898737Z",
      "status": 1,
      "response": "",
      "source": 5
    }
  ],
  "packaging": {
    "includeCutlery": false
  },
  "by": "Deliverect",
  "orderType": 2,
  "channel": 1,
  "pos": 10000,
  "rating": [],
  "pickupTime": "2022-04-14T09:43:21.000000Z",
  "deliveryTime": "2022-04-14T09:43:21.000000Z",
  "deliveryIsAsap": true,
  "courier": {
    "deliveryBy": "restaurant"
  },
  "customer": {
    "name": "Jack",
    "companyName": "Deliverect",
    "phoneNumber": "+447711922999",
    "phoneAccessCode": "466 18 762",
    "email": "[email protected]",
    "note": ""
  },
  "deliveryAddress": {
        "street": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
  "orderIsAlreadyPaid": true,
  "taxes": [],
  "payment": {
    "amount": 3200,
    "type": 0,
    "due": 0,
    "rebate":100
  },
  "note": "This is a test order",
  "items": [
    {
      "plu": "STK-01",
      "name": "Delicious Steak Frites",
      "sortOrder": 0,
      "price": 1500,
      "quantity": 2,
      "productType": 1,
      "isInternal": false,
      "subItems": [
        {
          "plu": "COOK-03",
          "name": "Well Done",
          "sortOrder": 0,
          "price": 0,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": []
        },
        {
          "plu": "SI-01",
          "name": "Fries",
          "sortOrder": 0,
          "price": 0,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": []
        }
      ]
    }
  ],
  "decimalDigits": 2,
  "numberOfCustomers": 1,
  "channelOrderRawId": "62********************73",
  "channelOrderHistoryRawIds": [],
  "serviceCharge": 300,
  "deliveryCost": 200,
  "bagFee": 0,
  "tip": 100,
  "driverTip": 0,
  "discountTotal": -400,
  "historyDriverUpdates": [
    {
      "orderId": "62********************7c",
      "rawDriverUpdate": "{}",
      "updatedOrigin": 5,
      "wasValidTill": "2022-04-14T09:43:16.898765Z",
      "courier": {}
    }
  ],
  "capacityUsages": [],
  "recent": true,
  "resolvedBy": "",
  "brandId": "61********************60",
  "timezone": "Europe/Amsterdam",
  "date": 20220414
}
{
    "_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": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
    "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"
    ]
}
{
  "_created": "2022-04-14T09:23:11.975473Z",
  "_updated": "2022-04-14T09:23:12.212104Z",
  "_id": "62********************fb", 
  "account": "61********************61",
  "channelOrderId": "TEST1649928196",
  "channelOrderDisplayId": "T928196",
  "posId": "",
  "posReceiptId": "",
  "posLocationId": "852",
  "location": "61********************a4",
  "channelLink": "61********************b2",
  "status": 1,
  "statusHistory": [
    {
      "timeStamp": "2022-04-14T09:23:12.227841Z",
      "status": 4,
      "response": "",
      "source": 2
    },
    {
      "timeStamp": "2022-04-14T09:23:12.232082Z",
      "status": 1,
      "response": "",
      "source": 5
    }
  ],
  "packaging": {
    "includeCutlery": false
  },
  "by": "Deliverect",
  "orderType": 2,
  "channel": 1,
  "pos": 10000,
  "rating": [],
  "pickupTime": "2022-04-14T09:23:16.000000Z",
  "deliveryTime": "2022-04-14T09:23:16.000000Z",
  "deliveryIsAsap": true,
  "courier": {
    "deliveryBy": "restaurant"
  },
  "customer": {
    "name": "",
    "companyName": "",
    "phoneNumber": "",
    "email": "",
    "note": ""
  },
     "deliveryAddress": {
        "street": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
  "orderIsAlreadyPaid": true,
  "taxes": [],
  "payment": {
    "amount": 3500,
    "type": 0,
    "due": 0
  },
  "note": "This is a test order",
  "items": [
    {
      "plu": "P-SATE",
      "name": "Chicken Sate",
      "sortOrder": 0,
      "price": 450,
      "quantity": 1,
      "productType": 1,
      "isInternal": false,
      "subItems": [
        {
          "plu": "RICE-01",
          "name": "White Rice",
          "sortOrder": 0,
          "price": 450,
          "quantity": 1,
          "productType": 1,
          "isInternal": false,
          "subItems": [
            {
              "plu": "SAUCE-01",
              "name": "Sate Sauce",
              "sortOrder": 0,
              "price": 50,
              "quantity": 1,
              "productType": 2,
              "isInternal": false,
              "subItems": []
            }
          ]
        },
        {
          "plu": "NOOD-01",
          "name": "Egg Noodles",
          "sortOrder": 0,
          "price": 450,
          "quantity": 1,
          "productType": 1,
          "isInternal": false,
          "subItems": [
            {
              "plu": "SAUCE-02",
              "name": "Hot Sauce",
              "sortOrder": 0,
              "price": 50,
              "quantity": 1,
              "productType": 2,
              "isInternal": false,
              "subItems": []
            }
          ]
        },
        {
          "plu": "NOOD-02",
          "name": "Ramen Noodles",
          "sortOrder": 0,
          "price": 450,
          "quantity": 1,
          "productType": 1,
          "isInternal": false,
          "subItems": [
            {
              "plu": "SAUCE-02",
              "name": "Hot Sauce",
              "sortOrder": 0,
              "price": 50,
              "quantity": 1,
              "productType": 2,
              "isInternal": false,
              "subItems": []
            }
          ]
        }
      ]
    },
    {
      "plu": "P-BRGR",
      "name": "Burger Combo (Drink not Included)",
      "sortOrder": 0,
      "price": 950,
      "quantity": 1,
      "productType": 1,
      "isInternal": false,
      "isCombo": true,
      "subItems": [
        {
          "plu": "P-BURG-CHE",
          "name": "Cheeseburger",
          "sortOrder": 0,
          "price": 0,
          "quantity": 1,
          "productType": 1,
          "isInternal": false,
          "inBundle": true,
          "subItems": []
        },
        {
          "plu": "P-FRS-M",
          "name": "Curly Fries",
          "sortOrder": 0,
          "price": 200,
          "quantity": 1,
          "productType": 1,
          "isInternal": false,
          "subItems": []
        },
        {
          "plu": "DRNK-01",
          "name": "Coca Cola",
          "sortOrder": 0,
          "price": 400,
          "quantity": 1,
          "productType": 1,
          "isInternal": false,
          "subItems": []
        }
      ],
      "pluProps": {
        "S": "1"
      }
    }
  ],
  "decimalDigits": 2,
  "numberOfCustomers": 1,
  "channelOrderRawId": "62********************07",
  "channelOrderHistoryRawIds": [],
  "serviceCharge": 0,
  "deliveryCost": 0,
  "bagFee": 0,
  "tip": 0,
  "driverTip": 0,
  "discountTotal": 0,
  "historyDriverUpdates": [
    {
      "orderId": "62********************fb",
      "rawDriverUpdate": "{}",
      "updatedOrigin": 5,
      "wasValidTill": "2022-04-14T09:23:12.232133Z",
      "courier": {}
    }
  ],
  "capacityUsages": [],
  "recent": true,
  "resolvedBy": "",
  "brandId": "61********************60",
  "timezone": "Europe/Amsterdam",
  "date": 20220414
}
{
  "_created": "2022-04-14T09:25:46.720133Z",
  "_updated": "2022-04-14T09:25:46.789657Z",
  "_id": "6257e89a99979fee50a2d237",
  "account": "61********************61", 
  "channelOrderId": "TEST1649928351",
  "channelOrderDisplayId": "T928351",
  "posId": "",
  "posReceiptId": "",
  "posLocationId": "POS2",
  "location": "61********************76",
  "channelLink": "61********************d2",
  "status": 1,
  "statusHistory": [
    {
      "timeStamp": "2022-04-14T09:25:46.839940Z",
      "status": 4,
      "response": "",
      "source": 2
    },
    {
      "timeStamp": "2022-04-14T09:25:46.842633Z",
      "status": 1,
      "response": "",
      "source": 5
    }
  ],
  "packaging": {
    "includeCutlery": false
  },
  "by": "Deliverect",
  "orderType": 2,
  "channel": 1,
  "pos": 10000,
  "rating": [],
  "pickupTime": "2022-04-14T09:25:51.000000Z",
  "deliveryTime": "2022-04-14T09:25:51.000000Z",
  "deliveryIsAsap": true,
  "courier": {
    "deliveryBy": "restaurant"
  },
  "customer": {
    "name": "",
    "companyName": "",
    "phoneNumber": "",
    "email": "",
    "note": ""
  },
     "deliveryAddress": {
        "street": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
  "orderIsAlreadyPaid": true,
  "taxes": [
    {
      "name": "taxes",
      "taxClassId": 0,
      "total": 72
    }
  ],
  "taxTotal": 72,
  "payment": {
    "amount": 872,
    "type": 0,
    "due": 0
  },
  "note": "This is a test order",
  "items": [
    {
      "plu": "P-BURG-CHK",
      "name": "Chicken Burger",
      "sortOrder": 0,
      "price": 800,
      "quantity": 1,
      "productType": 1,
      "isInternal": false,
      "subItems": []
    }
  ],
  "decimalDigits": 2,
  "numberOfCustomers": 1,
  "channelOrderRawId": "62********************74",
  "channelOrderHistoryRawIds": [],
  "serviceCharge": 0,
  "deliveryCost": 0,
  "bagFee": 0,
  "tip": 0,
  "driverTip": 0,
  "discountTotal": 0,
  "historyDriverUpdates": [
    {
      "orderId": "62********************37",
      "rawDriverUpdate": "{}",
      "updatedOrigin": 5,
      "wasValidTill": "2022-04-14T09:25:46.842826Z",
      "courier": {}
    }
  ],
  "capacityUsages": [],
  "recent": true,
  "resolvedBy": "",
  "brandId": "61********************60",
  "timezone": "Europe/Amsterdam",
  "date": 20220414
}
{
  "_created": "2022-04-14T09:43:16.770527Z",
  "_updated": "2022-04-14T09:43:16.823095Z",
  "_id": "62********************7c",
  "account": "61********************61",
  "channelOrderId": "TEST1649929401",
  "channelOrderDisplayId": "T929401",
  "posId": "",
  "posReceiptId": "",
  "posLocationId": "852",
  "location": "61********************a4",
  "channelLink": "61********************b2",
  "status": 1,
  "statusHistory": [
    {
      "timeStamp": "2022-04-14T09:43:16.896162Z",
      "status": 4,
      "response": "",
      "source": 2
    },
    {
      "timeStamp": "2022-04-14T09:43:16.898737Z",
      "status": 1,
      "response": "",
      "source": 5
    }
  ],
  "packaging": {
    "includeCutlery": false
  },
  "by": "Deliverect",
  "orderType": 2,
  "channel": 1,
  "pos": 10000,
  "rating": [],
  "pickupTime": "2022-04-14T09:43:21.000000Z",
  "deliveryTime": "2022-04-14T09:43:21.000000Z",
  "deliveryIsAsap": true,
  "courier": {
    "deliveryBy": "restaurant"
  },
  "customer": {
    "name": "Jack",
    "companyName": "Deliverect",
    "phoneNumber": "+32934573344",
    "email": "[email protected]",
    "note": ""
  },
     "deliveryAddress": {
        "street": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
  "orderIsAlreadyPaid": true,
  "taxes": [],
  "payment": {
    "amount": 3200,
    "type": 0,
    "due": 0
  },
  "note": "This is a test order",
  "items": [
    {
      "plu": "STK-01",
      "name": "Delicious Steak Frites",
      "sortOrder": 0,
      "price": 1500,
      "quantity": 2,
      "productType": 1,
      "isInternal": false,
      "subItems": [
        {
          "plu": "COOK-03",
          "name": "Well Done",
          "sortOrder": 0,
          "price": 0,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": []
        },
        {
          "plu": "SI-01",
          "name": "Fries",
          "sortOrder": 0,
          "price": 0,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": []
        }
      ]
    }
  ],
  "decimalDigits": 2,
  "numberOfCustomers": 1,
  "channelOrderRawId": "62********************73",
  "channelOrderHistoryRawIds": [],
  "serviceCharge": 300,
  "deliveryCost": 200,
  "bagFee": 0,
  "tip": 100,
  "driverTip": 0,
  "discountTotal": -400,
  "historyDriverUpdates": [
    {
      "orderId": "62********************7c",
      "rawDriverUpdate": "{}",
      "updatedOrigin": 5,
      "wasValidTill": "2022-04-14T09:43:16.898765Z",
      "courier": {}
    }
  ],
  "capacityUsages": [],
  "recent": true,
  "resolvedBy": "",
  "brandId": "61********************60",
  "timezone": "Europe/Amsterdam",
  "date": 20220414
}
{
  "_created": "2022-04-14T10:08:16.948767Z",
  "_updated": "2022-04-14T10:08:16.995266Z",
  "_id": "6257f290e3d9a857e3c48584",
  "account": "618a2c5306a6208df4e9d061",
  "channelOrderId": "TEST1649930901",
  "channelOrderDisplayId": "T930901",
  "posId": "",
  "posReceiptId": "",
  "posLocationId": "852",
  "location": "61********************a4",
  "channelLink": "61********************b2",
  "status": 1,
  "statusHistory": [
    {
      "timeStamp": "2022-04-14T10:08:17.037667Z",
      "status": 4,
      "response": "",
      "source": 2
    },
    {
      "timeStamp": "2022-04-14T10:08:17.041092Z",
      "status": 1,
      "response": "",
      "source": 5
    }
  ],
  "packaging": {
    "includeCutlery": false
  },
  "by": "Deliverect",
  "orderType": 2,
  "channel": 1,
  "pos": 10000,
  "rating": [],
  "pickupTime": "2022-04-14T10:08:21.000000Z",
  "deliveryTime": "2022-04-14T10:08:21.000000Z",
  "deliveryIsAsap": true,
  "courier": {
    "deliveryBy": "restaurant"
  },
  "customer": {
    "name": "",
    "companyName": "",
    "phoneNumber": "",
    "email": "",
    "note": ""
  },
     "deliveryAddress": {
        "street": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
  "orderIsAlreadyPaid": true,
  "taxes": [],
  "payment": {
    "amount": 1200,
    "type": 0,
    "due": 0
  },
  "note": "This is a test order",
  "items": [
    {
      "plu": "PIZZ-00",
      "name": "Build your own Pizza",
      "sortOrder": 0,
      "price": 800,
      "quantity": 1,
      "productType": 1,
      "isInternal": false,
      "subItems": [
        {
          "plu": "PEPP",
          "name": "Pepperoni",
          "sortOrder": 0,
          "price": 0,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": [],
          "pluProps": {
            "O": "0"
          }
        },
        {
          "plu": "BAC",
          "name": "Bacon",
          "sortOrder": 0,
          "price": 100,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": [],
          "pluProps": {
            "O": "1"
          }
        },
        {
          "plu": "RONION",
          "name": "Red Onion",
          "sortOrder": 0,
          "price": 100,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": [],
          "pluProps": {
            "O": "1"
          }
        },
        {
          "plu": "MUSH",
          "name": "Mushroom",
          "sortOrder": 0,
          "price": 100,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": [],
          "pluProps": {
            "O": "1"
          }
        },
        {
          "plu": "REDPEPP",
          "name": "Red Pepper",
          "sortOrder": 0,
          "price": 100,
          "quantity": 1,
          "productType": 2,
          "isInternal": false,
          "subItems": [],
          "pluProps": {
            "O": "1"
          }
        }
      ]
    }
  ],
  "decimalDigits": 2,
  "numberOfCustomers": 1,
  "channelOrderRawId": "62********************7a",
  "channelOrderHistoryRawIds": [],
  "serviceCharge": 0,
  "deliveryCost": 0,
  "bagFee": 0,
  "tip": 0,
  "driverTip": 0,
  "discountTotal": 0,
  "historyDriverUpdates": [],
  "capacityUsages": [],
  "recent": true,
  "resolvedBy": "",
  "brandId": "61********************60",
  "timezone": "Europe/Amsterdam",
  "date": 20220414
}
{
    "_id":"5c4aa35841e5b528e0******",
    "_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": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
    "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":"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": "Stationplein",
        "streetNumber": "13A",
        "postalCode": "3818 LM",
        "city": "Amersfoort",
        "extraAddressInfo": "Office 128",
        "coordinates": {
            "coordinates": [
                40.741895,
                -73.989308
            ]
        }
    },
    "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"
    ]
}

Respuesta
Este endpoint ha de responder rápido. Tras recibir un pedido con éxito, esperamos una respuesta de estado HTTP 200 o 201. Cualquier otro estado de HTTP hará que se vuelva a intentar el pedido después de un par de segundos. Después de un par de re-intentos fallidos, marcaremos el pedido como fallido.

Content-Type: application/json