ReadonlycartOptional ReadonlycustomCustom Fields of the CartDiscount.
Optional ReadonlydescriptionDescription of the CartDiscount.
Optional ReadonlydiscountReference to a DiscountGroup that the CartDiscount must belong to.
Optional ReadonlyisOnly active Discounts can be applied to the Cart. If the limit for active Cart Discounts is reached, a MaxCartDiscountsReached error is returned.
Optional ReadonlykeyUser-defined unique identifier for the CartDiscount.
ReadonlynameName of the CartDiscount.
Optional ReadonlyrequiresStates whether the Discount can only be used in a connection with a DiscountCode.
Optional ReadonlysortValue between 0 and 1 that determines the order in which the CartDiscounts will be applied; a CartDiscount with a higher value will be prioritized.
It must be unique among all CartDiscounts and DiscountGroups.
If the CartDiscount is part of a DiscountGroup, it will use the sort order of the DiscountGroup.
Optional ReadonlystackingSpecifies whether the application of this discount causes the following discounts to be ignored.
Optional ReadonlystoresIf defined, the Cart Discount applies on Carts having a Store matching any Store defined for this field.
If the referenced Stores exceed the limit, a MaxStoreReferencesReached error is returned.
If the referenced Stores exceed the limit for Cart Discounts that do not require a Discount Code, a StoreCartDiscountsLimitReached error is returned.
Optional ReadonlytargetSegment of the Cart that will be discounted.
Must not be set if the `value` is `giftLineItem`.
Optional ReadonlyvalidDate and time (UTC) from which the Discount is effective.
Optional ReadonlyvalidDate and time (UTC) until which the Discount is effective.
ReadonlyvalueEffect of the CartDiscount on the target.
Valid Cart Predicate.