/api/v1/salesCreate a new sale.
Requires the Sales:Edit permission.
Body
namestringrequiredInternal sale name.
discountPercentagenumberrequiredDiscount percentage, 0–100.
applicationScopestringrequiredWhat the sale applies to.
- Values:
storecategorypackage
categoryIdsstring[]· uuidRequired when scope is
category.packageIdsstring[]· uuidRequired when scope is
package.isEnabledbooleanWhether the sale is enabled. Defaults to
true.startDatestring· date-timeOptional start time. If absent, the sale starts immediately.
endDatestring· date-timeOptional end time. If absent, the sale runs until disabled.