Otter · JSON Structure

Public Api Trigger Structure

The preconditions to redeem this reward, for example, buy Fries to get a free Burger. Nullable, if null, this reward can be unconditionally redeemed.

Type: object Properties: 1
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

Trigger is a JSON Structure definition published by Otter, describing 1 property. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

menus

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-trigger-structure.json",
  "name": "Trigger",
  "description": "The preconditions to redeem this reward, for example, buy Fries to get a free Burger. Nullable, if null, this reward can be unconditionally redeemed.",
  "type": "object",
  "properties": {
    "menus": {
      "type": "array",
      "description": "The item/category preconditions to redeem this reward, for example, buy any drinks to get a free Burger.",
      "items": {
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-trigger-menu-schema.json"
      }
    }
  }
}