{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/doordash/refs/heads/main/json-structure/doordash-catalog-item-structure.json",
  "name": "CatalogItem",
  "description": "CatalogItem structure from DoorDash API",
  "type": "object",
  "properties": {
    "merchant_supplied_id": {
      "type": "string",
      "description": "The unique merchant-supplied item identifier (MSID).",
      "example": "D-12345"
    },
    "name": {
      "type": "string",
      "description": "The display name of the item.",
      "example": "Acme Pickup Store"
    },
    "description": {
      "type": "string",
      "description": "A description of the item.",
      "example": "Leave at the front desk."
    },
    "image_url": {
      "type": "uri",
      "description": "A URL to an image of the item.",
      "example": "https://example.com/path/abc123"
    },
    "brand": {
      "type": "string",
      "description": "The brand name of the item.",
      "example": "example"
    },
    "upc": {
      "type": "string",
      "description": "The Universal Product Code for the item.",
      "example": "example"
    },
    "category": {
      "type": "string",
      "description": "The category the item belongs to.",
      "example": "example"
    },
    "subcategory": {
      "type": "string",
      "description": "The subcategory the item belongs to.",
      "example": "example"
    },
    "weight": {
      "type": "double",
      "description": "The weight of the item.",
      "example": 12.5
    },
    "weight_unit": {
      "type": "string",
      "description": "The unit of weight measurement.",
      "enum": [
        "oz",
        "lb",
        "g",
        "kg"
      ],
      "example": "oz"
    },
    "is_alcohol": {
      "type": "boolean",
      "description": "Whether the item contains alcohol.",
      "example": true
    }
  },
  "required": [
    "merchant_supplied_id",
    "name"
  ]
}
