BaseCouponCodeInfoProvider TInfo, TProvider  GetCouponCodeUseCount Method Kentico 8.1 API Reference
Gets info about how many coupons are available in specific discount and how many of them were already used. Returns dataset with one table containing CouponCodeDiscountID, Uses, UnlimitedCodeCount and Limit.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

discountIDs
Type: OnlineSystem.Collections.Generic IEnumerable OnlineInt32 
IDs of discounts to get coupon counts for. Use null for all relevant discounts.
queryName
Type: OnlineSystem String
Name of the query to run.
discountIDColumnName
Type: OnlineSystem String
Name of the discount ID column.

Return Value

Type: OnlineDataSet
See Also