POST https://webhook.example.com

When a customer orders from a Deliverect integrated channel, it will immediately deliver a webhook to a specified webhook endpoint provided by the POS

application/json

Body

Responses

  • 200

    Ok

  • 400

    Error

POST /order
Request example
{
  "by": "Deliverect",
  "_id": "62********************7c",
  "pos": 10000,
  "tip": 0,
  "date": 20230414,
  "note": "",
  "tags": [
    "BRAND X"
  ],
  "items": [
    {
      "plu": "P-BRGR",
      "name": "Burger Combo (Drink not Included)",
      "price": 500,
      "isCombo": true,
      "quantity": 1,
      "subItems": [
        {
          "plu": "DRK-01",
          "name": "Diet Soda",
          "price": 100,
          "quantity": 1,
          "subItems": [],
          "sortOrder": 0,
          "productType": 1
        },
        {
          "plu": "P-BURG-CHE",
          "name": "Cheeseburger",
          "price": 0,
          "inBundle": true,
          "quantity": 1,
          "subItems": [
            {
              "plu": "P-GHRK",
              "name": "Extra Gherkin",
              "price": 50,
              "quantity": 2,
              "subItems": [],
              "sortOrder": 0,
              "productTags": [],
              "productType": 1
            }
          ],
          "sortOrder": 0,
          "productTags": [],
          "productType": 1
        }
      ],
      "sortOrder": 0,
      "productTags": [
        14
      ],
      "productType": 1
    }
  ],
  "posId": "",
  "taxes": [],
  "bagFee": 0,
  "rating": [],
  "recent": true,
  "status": 1,
  "account": "61********************a1",
  "brandId": "61********************60",
  "channel": 1,
  "courier": {
    "lastName": "",
    "firstName": "",
    "deliveryBy": "restaurant",
    "phoneNumber": ""
  },
  "payment": {
    "due": 0,
    "type": 0,
    "amount": 650,
    "rebate": 0,
    "commissionType": ""
  },
  "_created": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ",
  "_updated": "YYYY-MM-DDT08:36:46.SSSSSSZ",
  "customer": {
    "tin": "",
    "name": "Jack",
    "note": "call me when you arrive",
    "email": "test@test.com",
    "companyName": "Deliverect",
    "phoneNumber": "+31615887898",
    "phoneAccessCode": "0020"
  },
  "location": "61********************b4",
  "timezone": "Europe/Amsterdam",
  "discounts": [
    {
      "name": "Discount",
      "type": "order_flat_off",
      "value": 50,
      "amount": 50,
      "provider": "channel",
      "referenceId": "1",
      "channelDiscountCode": "50OFF"
    }
  ],
  "driverTip": 0,
  "orderType": 2,
  "packaging": {
    "includeCutlery": false
  },
  "testOrder": true,
  "pickupTime": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ",
  "resolvedBy": "",
  "channelLink": "61********************c3",
  "deliveryCost": 0,
  "deliveryTime": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ",
  "posReceiptId": "",
  "decimalDigits": 2,
  "discountTotal": -50,
  "posLocationId": "",
  "serviceCharge": 0,
  "statusHistory": [
    {
      "source": 2,
      "status": 4,
      "response": "",
      "timeStamp": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ"
    },
    {
      "source": 5,
      "status": 1,
      "response": "",
      "timeStamp": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ"
    }
  ],
  "capacityUsages": [],
  "channelOrderId": "TEST******4206",
  "deliveryIsAsap": true,
  "deliveryAddress": {
    "area": "",
    "city": "",
    "street": "",
    "country": "",
    "postalCode": "",
    "coordinates": {
      "coordinates": [
        80.9,
        -90.3
      ]
    },
    "extraAddressInfo": ""
  },
  "channelOrderRawId": "62********************73",
  "numberOfCustomers": 1,
  "orderIsAlreadyPaid": true,
  "courierUpdateHistory": [
    {
      "source": 5,
      "status": 72,
      "courier": {},
      "received": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ",
      "arrivalTime": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ",
      "deliveryTime": "YYYY-MM-DDTHH:mm:ss.SSSSSSZ"
    }
  ],
  "channelOrderDisplayId": "T**4206",
  "channelOrderHistoryRawIds": []
}