Set a product's markdown schedule (démarque programmée)
Upserts a product’s markdown (démarque) schedule: a master base price plus ordered steps. Each step is one of two KINDS — fixed (the effective price BECOMES priceCents) or percent (the master less percentOff%, bounded 0..100). Steps must be STRICTLY ascending by fromDate, so the ramp is unambiguous; the latest step on-or-before now wins at resolve. The example ramps a solde: -30% from 1 Aug, then a fixed 10,00 € floor from 1 Sep. A first write lands at version 1; a later write goes through optimistic concurrency (expectedVersion). Requires the kernel price:override grant (403 without). 409s on a stale expectedVersion.
Authorizations
Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.
Body
Response
The persisted schedule identity + its bumped version.
The persisted schedule identity + its bumped version.
The persisted schedule id.
The product the schedule is for.
The version the write landed at (bumped on update).
-9007199254740991 <= x <= 9007199254740991The master (base) gross price in cents.
0 <= x <= 9007199254740991How many steps the persisted schedule carries.
-9007199254740991 <= x <= 9007199254740991
