Deliveries
The Delivery API lets you track the location of a courier.
Paths
Get Delivery by Delivery ID
GET /deliveries/{delivery_id}Retrieve a delivery. Will include current status, driver assignment and location (if driver has been assigned).
Models
Address
A physical address.
Courier
A courier (driver, biker, etc.) that has been assigned to fulfill a delivery.
Delivery
A delivery that has been created as the result of a delivery request.
Delivery Error Code
Machine-readable code for a specific type of error. Codes map to the following error names:
- 6001:
pickup_location_invalid - 6002:
dropoff_location_invalid - 6003:
pickup_out_of_bounds - 6004:
dropoff_out_of_bounds - 6005:
no_courier_available(may indicate a market is closed at the requested delivery time) - 6006:
preferred_pickup_time - 6007:
catering_not_allowed - 6008:
account_not_found - 6009:
preferred_delivery_time - 6010:
anticipated_not_allowed
integer
- 6001
- 6002
- 6003
- 6004
- 6005
- 6006
- 6007
- 6008
- 6009
- 6010
Delivery Flag
Specifies an attribute of the delivery, which may affect dispatch handling.
string
- ALCOHOL
- LARGE_ORDER
Delivery HTTP Exception
Error response body.
Delivery Item
An item within the contents of a delivery.
Delivery Item Size
Size of an item.
string
- XS
- S
- M
- L
- XL
- XXL
Delivery Preferences
A set of preferred details about a delivery.
Delivery Request
A request for a new delivery estimate.
Delivery Status
Status of the delivery. Most of these statuses will only return for Grubhub-managed deliveries. This will return one of the following strings:
- ANTICIPATED - This order has been set to be fulfilled at a future time, so it has not begun preparation.
- ESTIMATED - This order has not yet been checked out by the diner, so it has not even been paid for. The numbers given are an estimate provided so that the diner can make a decision with complete information.
- COMMITTED - The restaurant has accepted the order and is starting to prepare the food.
- ASSIGNED - A trip offer has been sent to prospective couriers. Once a courier accepts the offer, they will arrive at the restaurant close to the promised fulfillment time to pick up the food.
- PICKUP_READY - The restaurant has completed preparing the food, so the driver should be there soon to pick it up and deliver it to the diner.
- IN_TRANSIT - The driver has picked up the food and is on their way to deliver it to the diner.
- DELIVERED - The driver has handed the food off to the diner and thus completed the delivery.
- CANCELED - The delivery order has been canceled and will not be taken to the diner. This delivery can be considered finished.
string
- ESTIMATED
- COMMITTED
- ASSIGNED
- IN_TRANSIT
- DELIVERED
- CANCELED
- PICKUP_READY
- ANTICIPATED
Delivery Time
Estimated or actual time that a delivery event will or has taken place.
Delivery Time Type
Whether a time is estimated or actual.
string
- estimate
- actual
Delivery Times
Estimated or actual times for pickup and drop off of a delivery.
Geo Location
Latitude and longitude for a location.
Location
Geographic and contact details for where delivery contents will be picked up or dropped off.
Money Amount
An amount of money. Includes an amount and currency type. The amount is an integer value of the indivisible unit of a currency (e.g., cents for UDS).
Vehicle
A vehicle used by a courier.
Vehicle Type
A mode of transportation.
string
- car
- bike