A Promotion Code represents a customer-redeemable code for a coupon. It can be used to create multiple codes for a single coupon, and adds the coupon's discount to the order if redeemed successfully.

Attributes
idstring
Unique identifier for the object
objectstring, value is "promotionCode"
A string representing the object’s type. Objects of the same type share the same value.
activeboolean
Flag indicating whether the promotion code is currently active.
codestring
The customer-facing code. This code must be unique across all your promotion codes.
createdAttimestamp
The moment at which the object was created. Measured in milliseconds since the Unix epoch.
currencystringor null
If the minimumAmount is set, the three-letter ISO currency code for this amount, in uppercase. Must be a supported currency.
expiresAttimestampor null
The moment at which the promotion code can no longer be redeemed. Measured in milliseconds since the Unix epoch.
firstTimeTransactionboolean
A flag indicating that the Promotion Code should only be redeemed by Customer without any successful Smartpay payments with you.
maxRedemptionCountpositive integeror null
The maximum number of times this promotion code can be redeemed, in total, across all customers, before it is no longer valid.
metadataobject
Set of key-value pairs that you can attach to an object for storing additional information in a structured format.
minimumAmountpositive numberor null
Minimum amount required to redeem this Promotion Code (e.g., the amount of the order must be ¥10,000 or more for this promotion code to be applicable).
onePerCustomerboolean
Flag indicating that the Promotion Code should only be redeemed once by a single Customer.
redemptionCountpositive integer
The number of times this promotion code has been used.
testboolean
A flag with a value false if the object exists in live mode or true if the object exists in test mode.
updatedAttimestamp
The moment at which the object was last updated. Measured in milliseconds since the Unix epoch.