v1

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

Update order with driver unassigned details

The driver unassigned callback should be sent when a driver is unassigned from the order. It may details about the reason for cancelling the assignment, the driver details, and any newer at restaurant and customer estimations.

put/orders/{orderId}/deliverystate/driverunassigned

Path parameters

orderIdstring required

Just Eat order identifier

Request body

Commentstring

This should represent the comment on the unassignment.

DriverContactNumberstring

This should represent the driver's contact number.

DriverNamestring

This should represent the driver's name.

EtaAtDeliveryAddressstring date-time

This should represent the delivery partner's best guess at when the driver will arrive at the delivery address.

EtaAtRestaurantstring date-time

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

Reasonstring

This should represent the delivery partner's reason for unassigning themselves from the order.

TimeStampWithUtcOffsetstring date-time

This should represent the driver unassigned timestamp.

UnassignedBystring

This should represent the actor who triggered unassignment.

Example request

{
  "Comment": "Order was not ready",
  "DriverContactNumber": "07123456789",
  "DriverName": "David McDriverson",
  "EtaAtDeliveryAddress": "2020-12-25T16:45:28.7537228+00:00",
  "EtaAtRestaurant": "2020-12-25T16:30:28.7537228+00:00",
  "Location:": {
    "Latitude": 51.51641,
    "Longitude": -0.103198,
    "Speed": 8.68,
    "Heading": 357.10382,
    "Accuracy": 12.814
  },
  "Reason": "package_not_ready",
  "TimeStampWithUtcOffset": "2020-12-25T15:30:28.7537228+00:00",
  "UnassignedBy": "operation"
}

Response

OK