Click or drag to resize
DiscountCreateCoupon Method
Creates and saves new coupon for this discount. NOTE: The uniqueness is not checked.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public BaseInfo CreateCoupon(
	string code,
	int numberOfUses
)

Parameters

code
Type: SystemString
The code.
numberOfUses
Type: SystemInt32
The number of uses.

Return Value

Type: BaseInfo
See Also