---
title: "Update order with driver unassigned details"
method: PUT
path: "/orders/{orderId}/deliverystate/driverunassigned"
tags: ["Order Delivery API", "publicly-accessible"]
---

# Update order with driver unassigned details

`PUT /orders/{orderId}/deliverystate/driverunassigned`

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.

## Path parameters

- `orderId` string, required

## Request body

- DeliveryDriverUnassignedDetails
  - `Comment` string — This should represent the comment on the unassignment.
  - `DriverContactNumber` string — This should represent the driver's contact number.
  - `DriverName` string — This should represent the driver's name.
  - `EtaAtDeliveryAddress` string, date-time — This should represent the delivery partner's best guess at when the driver will arrive at the delivery address.
  - `EtaAtRestaurant` string, 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.
  - `Location:` Location — GeoLocation object containing latitude and longitude values.
    - `Latitude` number, double, required — This should represent the latitude of the driver's location.
    - `Longitude` number, double, required — This should represent the longitude of the driver's location.
    - `Speed` number, double — This should represent the travel speed of the driver.
    - `Heading` number, double — This should represent the degree of heading direction, for example, 0 is north, 90 is east.
    - `Accuracy` number, double — This should represent the accuracy of driver's location.
  - `Reason` string — This should represent the delivery partner's reason for unassigning themselves from the order.
  - `TimeStampWithUtcOffset` string, date-time — This should represent the driver unassigned timestamp.
  - `UnassignedBy` string — This should represent the actor who triggered unassignment.

## Response `200`

OK

## Other responses

- `400` — Bad Request.

---

[API](https://skmtc.net/just-eat/apis/just-eat-api.md) · [All operations](https://skmtc.net/just-eat/apis/just-eat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/just-eat/just-eat-api/versions/4b25c7d97a53/schema)
