---
schema_version: "1"
id: 671e1bc6b1a03da1cdce42c0e4ebc4c8d59a93976bb17f1852f9587971f19f19
title: Get Coupon-Based Promotions with New Script API
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_get_coupon_based_promotions.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_get_coupon_based_promotions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8f1714c110a385231dd1714675d76d5d2416ece0567cbb585f6643a43ff2559f
description: 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.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# 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.