grubhub · JSON Structure

Grubhub Orderitem Structure

An individual item within an order.

Type: object Properties: 6

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

Properties

item_id name quantity price modifiers special_instructions

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-orderitem-structure.json",
  "name": "OrderItem",
  "description": "An individual item within an order.",
  "type": "object",
  "properties": {
    "item_id": {
      "type": "string",
      "description": "The unique identifier for the menu item."
    },
    "name": {
      "type": "string",
      "description": "The display name of the item."
    },
    "quantity": {
      "type": "int32",
      "description": "The quantity ordered.",
      "minimum": 1
    },
    "price": {
      "type": "double",
      "description": "The unit price of the item."
    },
    "modifiers": {
      "type": "array",
      "description": "Modifiers applied to this item.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the modifier."
          },
          "price": {
            "type": "double",
            "description": "The additional price for this modifier."
          }
        }
      }
    },
    "special_instructions": {
      "type": "string",
      "description": "Item-level special instructions."
    }
  }
}