Get Coupon-Based Promotions with New Script API
The PromotionMgr.getActiveCustomerPromotions(boolean ignoreCouponCondition)
script
API returns all active promotions including coupon-based promotions when ignoreCouponCondition
set to true. You can use the returned promotions to expose promotions on your storefront.
For example, display a callout message for coupon-based promotions on product detail or
product list pages.