LoyaltyBaseEntry

LoyaltyBaseEntry schema from Burger King's Partners API

Fortune 500FranchisingHospitalityNYSE QSRQuick Service RestaurantsRestaurants

Properties

Name Type Description
id object
type string
name object
description object
availability boolean Whether or not the entry is available. If this property is undefined, then the entry will be marked as available.
discountType string Provides if the discount should be calculated as a percentage or an amount. *Note: this is only available for `"DISCOUNT"` type.* | Discount Type | Calculation | |---|---| | `"AMOUNT"` | `Price - disc
discountValue number Amount that should be discounted. *Note: this is only available for `"DISCOUNT"` type.* | Discount Type | Discount Value unit | |---|---| | `"AMOUNT"` | Dollar amount | | `"PERCENTAGE"` | Percentage d
loyaltyPoints number Amount of Loyalty Points required to redeem this offer
price object
quantityConstraints object
options object Collection of typed references to other entities in the menu.
View JSON Schema on GitHub

JSON Schema

channel-loyalty-base-entry-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LoyaltyBaseEntry",
  "description": "LoyaltyBaseEntry schema from Burger King's Partners API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/restaurant-brands/refs/heads/main/json-schema/channel-loyalty-base-entry-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/EntryId",
      "example": "foo-discount-id"
    },
    "type": {
      "type": "string",
      "enum": [
        "DISCOUNT"
      ],
      "example": "DISCOUNT"
    },
    "name": {
      "$ref": "#/components/schemas/LocalizedText",
      "example": "40% OFF"
    },
    "description": {
      "$ref": "#/components/schemas/LocalizedText",
      "example": "40% OFF of your cart"
    },
    "availability": {
      "description": "Whether or not the entry is available.\nIf this property is undefined, then the entry will be marked as available.\n",
      "type": "boolean",
      "example": true
    },
    "discountType": {
      "type": "string",
      "enum": [
        "AMOUNT",
        "PERCENTAGE"
      ],
      "example": "PERCENTAGE",
      "description": "Provides if the discount should be calculated as a percentage or an amount.\n\n*Note: this is only available for `\"DISCOUNT\"` type.*\n\n| Discount Type | Calculation |\n|---|---|\n| `\"AMOUNT\"` | `Price - discountValue` |\n| `\"PERCENTAGE\"` | `Price - (discountValue% of Price)` |\n"
    },
    "discountValue": {
      "type": "number",
      "format": "integer",
      "example": 40,
      "description": "Amount that should be discounted.\n\n*Note: this is only available for `\"DISCOUNT\"` type.*\n\n| Discount Type | Discount Value unit |\n|---|---|\n| `\"AMOUNT\"` | Dollar amount |\n| `\"PERCENTAGE\"` | Percentage discount |\n"
    },
    "loyaltyPoints": {
      "type": "number",
      "format": "integer",
      "example": 100,
      "description": "Amount of Loyalty Points required to redeem this offer\n"
    },
    "price": {
      "$ref": "#/components/schemas/PriceRange"
    },
    "quantityConstraints": {
      "$ref": "#/components/schemas/QuantityConstraints"
    },
    "options": {
      "type": "object",
      "description": "Collection of typed references to other entities in the menu.\n",
      "properties": {
        "entries": {
          "description": "Depending of the type, the entity referenced will be located\nin different places of the menu:\n\n| Type | Entity Location |\n|---|---|\n| `\"ENTRY\"` | `entries` |\n| `\"SYSTEM_WIDE_OFFER\"` | `systemWideOfferEntries` |\n| `\"REWARD\"` | `rewardEntries` |\n| `\"CONFIG_OFFER\"` | `configOfferEntries` |\n",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "entryId": {
                "$ref": "#/components/schemas/EntryId"
              },
              "type": {
                "type": "string",
                "enum": [
                  "ENTRY",
                  "SYSTEM_WIDE_OFFER",
                  "REWARD",
                  "CONFIG_OFFER"
                ]
              }
            },
            "required": [
              "entryId",
              "type"
            ]
          }
        }
      },
      "required": [
        "id",
        "type"
      ],
      "example": {}
    }
  }
}