Lightspeed · JSON Structure

Restaurant K Series Ape Discount Structure

apeDiscount schema from Lightspeed Restaurant K Series API

Type: object Properties: 4
POSRetailRestaurantEcommerce

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

Properties

name code discountPercentage discountAmount

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/lightspeed-pos/refs/heads/main/json-structure/restaurant-k-series-ape-discount-structure.json",
  "name": "apeDiscount",
  "description": "apeDiscount schema from Lightspeed Restaurant K Series API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The discount name as configured in merchant account.",
      "example": "Staff Discount"
    },
    "code": {
      "type": "string",
      "description": "The discount code as configured in merchant account.",
      "example": "STAFF"
    },
    "discountPercentage": {
      "type": "double",
      "description": "The discount percentage, may be fractional. A discount can be a percentage or an amount, but not both.",
      "example": 15
    },
    "discountAmount": {
      "type": "double",
      "description": "The discount amount, may be fractional. A discount can be a percentage or an amount, but not both.",
      "example": 5
    }
  }
}