Otter · JSON Structure

Public Api Compute Applicable Rewards Request Structure

Request body for ComputeApplicableRewards API call.

Type: object Properties: 2 Required: 1
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

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

Properties

userId order

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-compute-applicable-rewards-request-structure.json",
  "name": "ComputeApplicableRewardsRequest",
  "description": "Request body for ComputeApplicableRewards API call.",
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "description": "The id of the user.",
      "example": "someidstring"
    },
    "order": {
      "oneOf": [
        {
          "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-order-2-schema.json"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "userId"
  ]
}