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

# Update order with driver on its way details

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

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.

## Path parameters

- `orderId` string, required

## Request body

- OnItsWayDetails
  - `EstimatedArrivalTime` string, 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.
  - `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.
  - `TimeStampWithUtcOffset` string, date-time — This should represent the driver on its ways timestamp.

## Response `200`

OK

---

[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)
