Otter · JSON Structure

Public Api Totals Structure

Totals schema from Public API (Otter Public API).

Type: object Properties: 4
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

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

Properties

subTotal tax discount total

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-totals-structure.json",
  "name": "Totals",
  "description": "Totals schema from Public API (Otter Public API).",
  "type": "object",
  "properties": {
    "subTotal": {
      "type": "double",
      "description": "Order subtotal.",
      "example": 29.07
    },
    "tax": {
      "type": "double",
      "description": "Order tax.",
      "example": 10
    },
    "discount": {
      "type": "double",
      "description": "Order discount.",
      "example": 9.07
    },
    "total": {
      "type": "double",
      "description": "Order total.",
      "example": 30
    }
  }
}