Otter · Schema

ComputeApplicableRewardsRequest

Request body for ComputeApplicableRewards API call.

RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

Properties

Name Type Description
userId string The id of the user.
order object
View JSON Schema on GitHub

JSON Schema

public-api-compute-applicable-rewards-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ComputeApplicableRewardsRequest",
  "description": "Request body for ComputeApplicableRewards API call.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-compute-applicable-rewards-request-schema.json",
  "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"
  ]
}