Skip to Content
FluxStore is currently invite-only. Some sections of this documentation are still being written and expanded.
POST/api/v1/sales

Create a new sale.

Requires the Sales:Edit permission.

Body

namestringrequired
Internal sale name.
discountPercentagenumberrequired
Discount percentage, 0–100.
applicationScopestringrequired
What the sale applies to.
Values:
storecategorypackage
categoryIdsstring[]· uuid
Required when scope is category.
packageIdsstring[]· uuid
Required when scope is package.
isEnabledboolean
Whether the sale is enabled. Defaults to true.
startDatestring· date-time
Optional start time. If absent, the sale starts immediately.
endDatestring· date-time
Optional end time. If absent, the sale runs until disabled.