PromoCode

PromoCode

# new PromoCode(codeMap)

Creates a new PromoCode
Parameters:
Name Type Description
codeMap Object Promo Code parameters
Properties
Name Type Attributes Default Description
code string Code
properties Object.<string, string> <optional>
Properties
maxClaimCount number <optional>
Maximum claims for this code
startDate number <optional>
Date since the code is claimable
endDate number <optional>
Date until the code is claimable
creator User Date until the code is claimable
claimCount number <optional>
0 Amount of times the code was claimed
isEnabled boolean True if code is enabled
isClaimable boolean True if code is claimable