Otter · Schema

Totals

Totals schema from Public API (Otter Public API).

RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

Properties

Name Type Description
subTotal number Order subtotal.
tax number Order tax.
discount number Order discount.
total number Order total.
View JSON Schema on GitHub

JSON Schema

public-api-totals-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Totals",
  "description": "Totals schema from Public API (Otter Public API).",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-totals-schema.json",
  "type": "object",
  "properties": {
    "subTotal": {
      "type": "number",
      "description": "Order subtotal.",
      "example": 29.07
    },
    "tax": {
      "type": "number",
      "description": "Order tax.",
      "example": 10
    },
    "discount": {
      "type": "number",
      "description": "Order discount.",
      "example": 9.07
    },
    "total": {
      "type": "number",
      "description": "Order total.",
      "example": 30
    }
  }
}