API Reference

Delivery create event

{
  "taskId": 1,
  "createdAt": "2023-07-20T08:50:46.241059Z",
  "updatedAt": "2023-07-20T08:50:46.241059Z",
  "taskType": "DELIVERY",
  "merchantId": 1,
  "merchantName": "Merchant Name",
  "mode": "PRODUCTION",
  "status": {
    "taskStatusId": 1,
    "createdAt": "2023-07-20T09:56:43.331140Z",
    "taskId": 1,
    "value": "NOT_STARTED"
  },
  "fulfilmentType": "MERCHANT",
  "deliveryType": "WINDOW",
  "collection": {
    "address": {
      "addressId": 1,
      "line1": "143 Newport Street",
      "city": "London",
      "postcode": "SE11 6AQ",
      "country": "United Kingdom"
    },
    "merchantLocationId": "123456789",
    "window": {
      "from": "2023-07-20T08:50:45.929103Z",
      "to": "2023-07-20T10:38:00Z"
    }
  },
  "delivery": {
    "address": {
      "addressId": 1,
      "line1": "Somerset House",
      "line2": "The Strand",
      "city": "London",
      "postcode": "WC2R 1LA",
      "country": "United Kingdom"
    },
    "window": {
      "from": "2023-07-20T09:45:00Z",
      "to": "2023-07-20T11:00:00Z"
    }
  },
  "order": {
    "id": 1,
    "createdAt": "2023-07-20T08:50:46.239874Z",
    "updatedAt": "2023-07-20T08:50:46.239874Z",
    "lineItems": [
      {
        "quantity": 1,
        "product": {
          "productId": 1,
          "createdAt": "2023-03-04T15:23:11.890250Z",
          "updatedAt": "2023-03-04T15:23:11.890250Z",
          "merchantId": 181,
          "name": "Product Name",
          "enabled": true,
          "weight": 1,
          "dimensions": { "height": 1, "width": 1, "depth": 1 }
        }
      }
    ],
    "merchantOrderId": "1",
    "merchantOrderName": "#1"
  },
  "customer": {
    "id": 1,
    "createdAt": "2023-07-20T08:50:46.242604Z",
    "updatedAt": "2023-07-20T08:50:46.242604Z",
    "firstName": "First",
    "lastName": "Last",
    "phoneNumber": "+447678999821"
  },
  "trackingId": "ABC123",
  "trackingUrl": "track.quiver.co.uk/delivery/ABC123",
  "trackingAccessKey": "abcd1234",
  "co2Savings": 0.05,
  "statusUpdates": [
    {
      "taskStatusId": 1,
      "createdAt": "2023-07-20T08:50:46.243780Z",
      "taskId": 1,
      "value": "NOT_STARTED"
    }
  ],
  "rateCode": "QUIV_DEL_WN"
}