FixedAmountTieredDiscountSlab
Type: schema
TypeScript Definition
typescript
FixedAmountTieredDiscountSlab: {{
/** @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: "fixed-amount";
fixed_discount_amount: number;
};
/** FixedChargeAction */
}OpenAPI Schema
json
{
"title": "FixedAmountTieredDiscountSlab",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/FixedAmountTieredDiscountSlab",
"description": "API reference for the FixedAmountTieredDiscountSlab schema"
},
"required": [
"order_value",
"condition",
"discount_type",
"fixed_discount_amount"
],
"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": "fixed-amount"
},
"fixed_discount_amount": {
"type": "number"
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions