Otter · JSON Structure

Public Api Order Total Structure

Details about values of the order.

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

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

Properties

subtotal claimedSubtotal discount tax tip deliveryFee total couponCode

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-order-total-structure.json",
  "name": "OrderTotal",
  "description": "Details about values of the order.",
  "type": "object",
  "properties": {
    "subtotal": {
      "type": "double",
      "description": "The order's subtotal, as the sum of all item and modifier prices.",
      "example": 11.97
    },
    "claimedSubtotal": {
      "type": "double",
      "nullable": true,
      "description": "The order's claimed subtotal, without guaranteeing this will match calculated subtotal.",
      "example": 1.0
    },
    "discount": {
      "type": "double",
      "nullable": true,
      "description": "Any discount amount for the order.",
      "example": 1
    },
    "tax": {
      "type": "double",
      "nullable": true,
      "description": "Tax paid by the customer.",
      "example": 1.1
    },
    "tip": {
      "type": "double",
      "nullable": true,
      "description": "Tip paid by the customer.",
      "example": 2
    },
    "deliveryFee": {
      "type": "double",
      "nullable": true,
      "description": "Delivery fee.",
      "example": 5
    },
    "total": {
      "type": "double",
      "nullable": true,
      "description": "Order total including everything paid by the customer.",
      "example": 19.07
    },
    "couponCode": {
      "type": "string",
      "nullable": true,
      "description": "Coupon code applied to the order.",
      "example": "VWXYZ98765"
    }
  },
  "required": [
    "subtotal"
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/public-api-order-total-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.