v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Order API Grubtech Endpoints

Driver Assigned

The Driver Assigned endpoint should be triggered to update the order status when a driver has been assigned for delivery. It should include the assigned driver's details and the estimated time of arrival (ETA) for the delivery. This is only applicable when the order platform is managing the delivery process, not when third-party logistics providers are involved.

post/{applicationId}/orders/{orderId}/driver-assigned

Path parameters

applicationIdstring required

applicationId id provided by GrubTech to identify the integration.

orderIdstring required

order id

Request body

driverIdstring
driverNamestring
driverMobileNumberstring
driverETAstring

Estimated time of arrival of the driver to the restaurant. This should be in date-time format.

driverAssignedAtstring

Example request

{
  "driverName": "John",
  "driverETA": "2020-08-02T09:23:54.723Z",
  "driverAssignedAt": "2021-06-02T09:10:18.020Z"
}

Response

Successful response