SalePrice
object type
A sale price: ONE effective-dated price window in the parent InventoryItem schedule — the dated record-set IS the full price history. Windows are half-open [startAt, endAt) with endAt always present (far-future = the standing price); past the last endAt with no successor the item is NOT for sale. Inserts are splice-normalized: a start falling strictly inside the immediately-preceding window auto-TRIMS that predecessor endAt to the new start (the ONE sanctioned in-place mutation — revisioned + evented); overlap with any other record refuses CONFLICT/PRICE_WINDOW_OVERLAP naming the blockers. No past starts. The schedule currency is fixed by the first record; a mismatch is refused named. Doom cancels a not-yet-effective future record only. startAt/endAt/price are wire-IMMUTABLE.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like SP-… — stable for the record’s life. |
type | String String! | The kind of record — always SalePrice here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active or doomed. |
parentId | ID ID! | The parent InventoryItem; for a SalePrice parentId!== rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
startAt | String String! | The window start (inclusive; UTC ISO-8601) — set at birth, immutable thereafter. |
endAt | String String! | The window end. Moves only via the system splice trim when a successor starts inside this window. |
price | MoneyEntry MoneyEntry! | The selling price for the window. Immutable — supersede to change. |
markdownPlanId | ID | The MarkdownPlan whose schedule fan-out wrote this window. |
markdownStepIndex | Int | The 0-based step within the stamping plan's cadence. |