ConnectApi.PromotionEvaluateInput

Find promotions that the customer is eligible for and compute their discounts.

PropertyTypeDescriptionRequired or OptionalAvailable Version
cartConnectApi.PromotionCart​InputCart and its items.Required57.0
cartDelivery​GroupsList<ConnectApi.PromotionCartDeliveryGroupInput>List of cart delivery groups associated with the items in the cart. Available if shipping promotions are enabled.Required when evaluating shipping promotions57.0
couponCodesList<String>Collection of coupon codes to enable promotions. A customer can apply a maximum of two coupons per cart.Optional57.0
effectiveAccount​IdStringID of the account for which the request is made.Required if segments isn’t specified57.0
isItemizeHeader​AdjustmentsBooleanSpecifies whether order-level adjustments are itemized (true) or not (false). If unspecified, the default value is false.Optional57.0
parentProductsList<ConnectApi.​PromotionParent​ProductsInput>Collection of parent product IDs mapped to their variation product IDs.Optional57.0
productCategoriesList<ConnectApi.​PromotionProduct​CategoriesInput>Collection of product IDs mapped to their associated category IDs.Optional57.0
segmentsList<String>All promotions associated with promotion segments specified in this collection are active and can be evaluated against the cart. Additionally, any segments associated with a store or buyer group are also still evaluated against the cart. If this field is not present, only the promotions associated with a store or buyer group are evaluated.Optional57.0
webStoreIdStringID of the store for which the request is made. If unspecified, defined segments must be used instead.Optional57.0

See Also