grubhub · Schema

OrderStatusUpdate

Payload for updating an order's lifecycle status.

Properties

Name Type Description
status string The new status for the order.
reason string Reason for the status change, particularly relevant for cancellations.
View JSON Schema on GitHub

JSON Schema

grubhub-orderstatusupdate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/OrderStatusUpdate",
  "title": "OrderStatusUpdate",
  "type": "object",
  "description": "Payload for updating an order's lifecycle status.",
  "required": [
    "status"
  ],
  "properties": {
    "status": {
      "type": "string",
      "description": "The new status for the order.",
      "enum": [
        "IN_PROGRESS",
        "READY",
        "OUT_FOR_DELIVERY",
        "COMPLETED",
        "CANCELLED"
      ]
    },
    "reason": {
      "type": "string",
      "description": "Reason for the status change, particularly relevant for cancellations."
    }
  }
}