AdminPostDiscountsDiscountReq
The details of the discount to update.
Properties
code
stringA unique code that will be used to redeem the discount
The discount rule that defines how discounts are calculated
is_disabled
booleanWhether the discount code is disabled on creation. If set to
true
, it will not be available for customers.starts_at
DateThe date and time at which the discount should be available.
ends_at
null | DateThe date and time at which the discount should no longer be available.
valid_duration
null | stringThe duration the discount runs between
usage_limit
null | numberMaximum number of times the discount can be used
regions
string[]A list of region IDs representing the Regions in which the Discount can be used.
metadata
Record<string, unknown>An object containing metadata of the discount
Was this section helpful?