Otter · JSON Structure

Public Api Quantity Updated Modification Structure

QuantityUpdatedModification schema from Public API (Otter Public API).

Type: object Properties: 3 Required: 3
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

QuantityUpdatedModification is a JSON Structure definition published by Otter, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

customerItemIds quantity oldQuantity

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/otter/refs/heads/main/json-structure/public-api-quantity-updated-modification-structure.json",
  "name": "QuantityUpdatedModification",
  "description": "QuantityUpdatedModification schema from Public API (Otter Public API).",
  "type": "object",
  "properties": {
    "customerItemIds": {
      "type": "array",
      "description": "Unique IDs for the ordered customer items (station item can map to multiple).",
      "minItems": 1,
      "items": {
        "type": "string"
      }
    },
    "quantity": {
      "type": "double",
      "minimum": 0,
      "description": "New quantity (0 to remove item).",
      "example": 1.0
    },
    "oldQuantity": {
      "type": "double",
      "minimum": 0,
      "description": "Previous quantity.",
      "example": 1.0
    }
  },
  "required": [
    "customerItemIds",
    "quantity",
    "oldQuantity"
  ]
}