grubhub · JSON Structure

Grubhub Delivery Structure

The current state of a delivery including driver and tracking details.

Type: object Properties: 7

Delivery is a JSON Structure definition published by grubhub, describing 7 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

order_uuid status driver pickup_eta dropoff_eta tracking_url updated_at

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/grubhub/refs/heads/main/json-structure/grubhub-delivery-structure.json",
  "name": "Delivery",
  "description": "The current state of a delivery including driver and tracking details.",
  "type": "object",
  "properties": {
    "order_uuid": {
      "type": "uuid",
      "description": "The UUID of the associated order."
    },
    "status": {
      "type": "string",
      "description": "The current lifecycle status of the delivery.",
      "enum": [
        "PENDING",
        "DRIVER_ASSIGNED",
        "DRIVER_EN_ROUTE_TO_PICKUP",
        "ARRIVED_AT_PICKUP",
        "PICKED_UP",
        "OUT_FOR_DELIVERY",
        "ARRIVED_AT_DROPOFF",
        "DELIVERED",
        "CANCELLED"
      ]
    },
    "driver": {
      "$ref": "#/components/schemas/Driver"
    },
    "pickup_eta": {
      "type": "datetime",
      "description": "Estimated time of arrival at the pickup location."
    },
    "dropoff_eta": {
      "type": "datetime",
      "description": "Estimated time of arrival at the delivery location."
    },
    "tracking_url": {
      "type": "uri",
      "description": "A URL providing real-time delivery status updates, courier tracking, courier name, and contact options."
    },
    "updated_at": {
      "type": "datetime",
      "description": "Timestamp of the last delivery status update."
    }
  }
}