v1

latestOpenAPI 3.0.02026-07-1498671635.3 KB
Order Delivery API
publicly-accessible

Update order with driver on its way details

The on its way callback should be sent when the driver departs the restaurant with the customer's order. It should contain an ETA that records when the driver expects to arrive at the customer's address.

put/orders/{orderId}/deliverystate/onitsway

Path parameters

orderIdstring required

Request body

EstimatedArrivalTimestring date-time

This should represent the delivery partner's best guess at when the driver will arrive at the customer's address. In other words, it should not just contain the delivery time initially requested by Just Eat.

TimeStampWithUtcOffsetstring date-time

This should represent the driver on its ways timestamp.

Example request

{
  "EstimatedArrivalTime": "2020-12-25T16:45:28.7537228+00:00",
  "Location": {
    "Accuracy": 12.814,
    "Heading": 357.10382,
    "Latitude": 51.51641,
    "Longitude": -0.103198,
    "Speed": 8.68
  },
  "TimeStampWithUtcOffset": "2020-12-25T15:30:28.7537228+00:00"
}

Response

OK