Discount

A discount which ought to be applied to an order

Fortune 500FranchisingHospitalityNYSE QSRQuick Service RestaurantsRestaurants

Properties

Name Type Description
type string Type of discount. |Discount Type|Description | |--------|-----------------------------| |DISCOUNT | Generic type for any discount |
total object Amount to be discounted
View JSON Schema on GitHub

JSON Schema

channel-discount-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Discount",
  "description": "A discount which ought to be applied to an order",
  "$id": "https://raw.githubusercontent.com/api-evangelist/restaurant-brands/refs/heads/main/json-schema/channel-discount-schema.json",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Type of discount.\n\n|Discount Type|Description                  |\n|--------|-----------------------------|\n|DISCOUNT | Generic type for any discount |\n",
      "enum": [
        "DISCOUNT"
      ],
      "example": "DISCOUNT"
    },
    "total": {
      "$ref": "#/components/schemas/Money",
      "description": "Amount to be discounted"
    }
  }
}