Otter · Schema

Trigger

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

RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

Properties

Name Type Description
menus array The item/category preconditions to redeem this reward, for example, buy any drinks to get a free Burger.
View JSON Schema on GitHub

JSON Schema

public-api-trigger-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "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.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-trigger-schema.json",
  "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"
      }
    }
  }
}