{
  "$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
    }
  }
}