Get Product Discounts
Definition
Get discounts applied to products.
This activity is useful for getting offers of products. For example, you can get products in the wish list of a customer, then check it with the result of this activity and send the customer an email with his wished products offers.
Properties
This activity has no additional properties other than the shared set of activity properties.
Outcomes
Outcome | Description |
---|---|
Done | Returns a list of the output model. |
Output Model
{
Name: string,
DiscountType: number // AssignedToOrderTotal = 1, AssignedToSkus = 2, AssignedToCategories = 5, AssignedToManufacturers = 6, AssignedToShipping = 10, AssignedToOrderSubTotal = 20,
UsePercentage: boolean,
DiscountPercentage: number,
DiscountAmount: number,
MaximumDiscountAmount?: number,
StartDateUtc?: Date,
EndDateUtc?: Date,
RequiresCouponCode: boolean,
CouponCode: string,
IsCumulative: boolean,
DiscountLimitationId: number,
LimitationTimes: number,
MaximumDiscountedQuantity?: number,
AppliedToSubCategories: boolean,
DiscountLimitationType: number, // Unlimited = 0, NTimesOnly = 15, NTimesPerCustomer = 25
AppliedToProductIds: number[]
}