Skip to main content

SpecialOffer

interface SpecialOffer
{
id: string;
description: TranslationText;
imageUrl: TranslationText;
dateBegin: Date;
dateEnd: Date;
minCountLocal: number;
minValueLocal: number;
minCountGlobal: number;
minValueGlobal: number;
discountFactor: number;
products: Product[];
subProducts: Product[];
}

Properties

NameTypeDescription
idstringSpecial offer ID
descriptionTranslationTextMultilingual description of the special offer.
imageUrlTranslationTextURL to the promotion logo for different languages. The logo should be in the shape of a square with dimensions 42x42 pixels.
dateBeginDateStart date of the special offer in the format YYYY-MM-DD.
dateEndDateEnd date of the special offer in the format YYYY-MM-DD.
minCountLocalnumber(optional) Minimum quantity of products required to activate the special offer within this special offer.
minValueLocalnumber(optional) Minimum total price of products required to activate the special offer within this special offer.
minCountGlobalnumber(optional) Minimum quantity of products required to activate the special offer across all special offers.
minValueGlobalnumber(optional) Minimum total price of products required to activate the special offer across all special offers.
discountFactornumberDiscount factor applied to the offer. For example, if the discount is 20%, you would enter 0.8.
productsProductArray of products associated with the special offer. These are products that are specific to this special offer, such as kitchen cabinet fronts from a particular collection.
subProductsProduct(optional) Array of sub-products associated with the special offer. These are products that appear in various special offers, such as kitchen cabinet bodies present in multiple collections.

Description

Special offer parameters.