PayNow

StorefrontSaleDto

begins_atstringRequired
The date and time when the sale begins.
discount_amountintegerRequired
The amount of the discount, either as a percentage in permille or as an absolute value in cents.
discount_typeenumRequired
Possible enum values
  • percent
  • amount
idFlakeIdRequired
minimum_order_valueintegerRequired
The minimum order value required to apply the discount, in the lowest denominator (e.g. cents).
namestringRequired
The name of the sale.
version_idFlakeIdRequired
ends_atstringOptional
The date and time when the sale ends, if applicable.
Example
{
  "begins_at": "2025-06-01T00:00:00Z",
  "discount_amount": 2000,
  "discount_type": "percent",
  "id": "411486491630370816",
  "minimum_order_value": 0,
  "name": "Summer Sale",
  "version_id": "411486491630370816",
  "ends_at": "2025-06-30T23:59:59Z"
}