Skip to content

PercentageTieredDiscountSlab ​

Type: schema

TypeScript Definition ​

typescript
PercentageTieredDiscountSlab: {{
            /** @description The order total the cart is evaluated against for this slab. */
            order_value: number;
            /**
             * @description This key defines how the system will evaluate the order total to determine if the discount should be applied, based on the specified slab. The last slab must use `greater` so the highest tier stays open-ended.
             * @enum {unknown}
             */
            condition: "less-or-equal" | "greater";
            /** @constant */
            discount_type: "percentage";
            discount_percent: number;
        };
}

OpenAPI Schema ​

json
{
  "title": "PercentageTieredDiscountSlab",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/PercentageTieredDiscountSlab",
    "description": "API reference for the PercentageTieredDiscountSlab schema"
  },
  "required": [
    "order_value",
    "condition",
    "discount_type",
    "discount_percent"
  ],
  "properties": {
    "order_value": {
      "description": "The order total the cart is evaluated against for this slab.",
      "type": "number"
    },
    "condition": {
      "description": "This key defines how the system will evaluate the order total to determine if the discount should be applied, based on the specified slab. The last slab must use `greater` so the highest tier stays open-ended.",
      "enum": [
        "less-or-equal",
        "greater"
      ]
    },
    "discount_type": {
      "type": "string",
      "const": "percentage"
    },
    "discount_percent": {
      "type": "number"
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: