Otter · JSON Structure

Public Api Item 2 Structure

Item-2 schema from Public API (Otter Public API).

Type: object Properties: 5
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

Item-2 is a JSON Structure definition published by Otter, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id displayName quantity price modifiers

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-item-2-structure.json",
  "name": "Item-2",
  "description": "Item-2 schema from Public API (Otter Public API).",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The id of the item in the partner's system.",
      "example": "someidstring"
    },
    "displayName": {
      "type": "string",
      "description": "Name of the item.",
      "example": "Cheese Burger"
    },
    "quantity": {
      "type": "double",
      "description": "Quantity of item ordered.",
      "example": 1
    },
    "price": {
      "type": "double",
      "description": "Price of item.",
      "example": 19.07
    },
    "modifiers": {
      "oneOf": [
        {
          "type": "array",
          "description": "The modifiers of an item, such as size(small, medium, large), modifier share the same model as item, just in case we have nested modifiers.",
          "items": {
            "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-item-2-schema.json"
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}