grubhub · JSON Structure

Grubhub Ordertotals Structure

Financial totals for an order.

Type: object Properties: 5

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

Properties

subtotal tax delivery_fee tip 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/grubhub/refs/heads/main/json-structure/grubhub-ordertotals-structure.json",
  "name": "OrderTotals",
  "description": "Financial totals for an order.",
  "type": "object",
  "properties": {
    "subtotal": {
      "type": "double",
      "description": "The subtotal before taxes and fees."
    },
    "tax": {
      "type": "double",
      "description": "The tax amount."
    },
    "delivery_fee": {
      "type": "double",
      "description": "The delivery fee charged."
    },
    "tip": {
      "type": "double",
      "description": "The tip amount."
    },
    "total": {
      "type": "double",
      "description": "The total amount for the order."
    }
  }
}