AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like SP-… — stable for the record’s life.
typeString String!The kind of record — always SalePrice here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active or doomed.
parentIdID ID!The parent InventoryItem; for a SalePrice parentId!== rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
startAtString String!The window start (inclusive; UTC ISO-8601) — set at birth, immutable thereafter.
endAtString String!The window end. Moves only via the system splice trim when a successor starts inside this window.
priceMoneyEntry MoneyEntry!The selling price for the window. Immutable — supersede to change.
markdownPlanIdIDThe MarkdownPlan whose schedule fan-out wrote this window.
markdownStepIndexIntThe 0-based step within the stamping plan's cadence.

Used by