AdminPostDiscountsDiscountReq
Properties
codestringA unique code that will be used to redeem the discount
ends_atnull | DateThe date and time at which the discount should no longer be available.
is_disabledbooleanWhether the discount code is disabled on creation. If set to
true, it will not be available for customers.metadataRecord<string, unknown>An object containing metadata of the discount
regionsstring[]A list of region IDs representing the Regions in which the Discount can be used.
The discount rule that defines how discounts are calculated
starts_atDateThe date and time at which the discount should be available.
usage_limitnull | numberMaximum number of times the discount can be used
valid_durationnull | stringThe duration the discount runs between
Was this section helpful?