Skip to main content

Schedule a sale window for a catalogue item

POST 

/item-prices/:catalogItemId/sales

ScheduleSale. A sale price is always below the list price and windows of one item never overlap; a window ends after it starts, ends in the future, and an item holds at most 50 live windows (else 422 validation-failed). PublishEffectivePriceOnWindowBoundary emits ItemPriceChanged when the sale starts or ends.

Request​

Responses​

The scheduled sale window.

Response Headers
    Idempotency-Replayed

    "true" when this response is the stored answer of an earlier request carrying the same Idempotency-Key (the handler did not run again). Absent on the first execution.