Creates a delivery job for one or more orders.

{
    "jobId": "609***72e",
    "account": "5f1***131",
    "pickupTime": "2021-05-13T13:40:04Z",
    "transportType": "unknown",
    "pickupLocation": {
        "location": "606***555",
        "name": "Deliverect'\''s Pizza Place",
        "remarks": "please use the backdoor for order pickup",
        "street": "van Ghentlaan",
        "streetNumber": "3",
        "postalCode": "9000 LK",
        "city": "Leusden",
        "latitude": "52.379189",
        "longitude": "4.899431"
    },
    "deliveryLocations": [
        {
            "orderId": "609***4dd",
            "channelOrderDisplayId": "MT4YVTPL",
            "deliveryTime": "2021-05-13T13:55:00Z",
            "packageSize": "medium",
            "orderDescription": "hot food",
            "company": "BrainQuantums",
            "name": "V. Bertels",
            "street": "Refugehof",
            "streetNumber": "49",
            "postalCode": "9001 AB",
            "city": "Leusden",
            "phone": "+32123456789",
            "deliveryRemarks": "Don'\''t ring door bell.",
            "latitude": "52.379189",
            "longitude": "4.899431",
            "payment": {
                "orderIsAlreadyPaid": true,
                "amount": 1100,
                "paymentType": 0
            }
        }
    ]
}
{
  "jobId": "609***72e",
  "canDeliver": true,
  "pickupTimeETA": "2021-05-13T13:42:00Z",
  "externalJobId": "DJ123456",
  "distance": 4200,
  "duration": 31,
  "price": {
    "price": 750,
    "taxRate": 10000
  },
  "courier": {
    "courierId": "D1234",
    "firstName": "Delivery",
    "lastName": "Rider",
    "phoneNumber": "0032494112233",
    "transportType": "bicycle"
  },
  "deliveryLocations": [
    {
      "deliveryId": "ABC567",
      "orderId": "5f4***e2af",
      "channelOrderDisplayId": "MT4YVTPL",
      "deliveryTimeETA": "2021-05-13T13:57:00Z",
      "deliveryRemarks": ""    
    }
  ]
}

📘

externalJobId and deliveryId

It will be possible in future for multiple orders to be delivered as part of one delivery job externalJobId. This would allow for multiple deliveries deliveryId.

At the moment, it is acceptable to set the externalJobIdthe same value as the deliveryId