AlmondTill/G3N API

MarkdownPlan

object type

A MarkdownPlan — the markdown cadence: a product scope + ≤ 8 ordered effective-dated steps (percent_off ppm-EXCLUSIVE · amount_off · to_fixed; startAt strictly increasing; the last step MAY carry endAt = the clearance-LAPSE arm, absent = the standing far-future window). the write rule: the schedule transition pre-computes the whole price ladder per targeted InventoryItem (base₀ = the record covering step-1's startAt, then each prior result — half-away rounding, every result > 0) and writes every future-dated SalePrice up-front through the existing per-record create (splice-gated, evented, plan/step-stamped; the first window per II trims the covering standing record; caps: ≤ 250 items · ≤ 500 writes). The prices then move by dated-window resolution alone — the scheduler fires only the plan's own status flips. The live splice law protects the cadence (an external overlapping write refuses CONFLICT/PRICE_WINDOW_OVERLAP naming the plan's records). Cancel dooms the not-yet-effective plan-stamped records only (effective windows are permanent price history; the step-1 trim is NOT restored). A markdown moves the step-1 base — promotions/loyalty/employee compose on top unchanged. Update is draft-only (amend-after-schedule = cancel + author anew). At most 32 open (draft+scheduled+active) per org group. Org participation is the canned-pool selection (≤ 32; absent = every org); logicalFacilityIds (≤ 32) restricts within the selected orgs' facilities (absent = all of them). NOT searchable (the document non-joiner stance — this born-paginated list is the discovery read); NO uniq marker.

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 MD-… — stable for the record’s life.
typeString String!The kind of record — always MarkdownPlan here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of draft, scheduled, active, completed or cancelled.
parentIdID ID!The parent org group; for a MarkdownPlan 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.
productScopePromotionProductScope PromotionProductScope!What the cadence re-prices. Required with ≥1 member — an absent markdown scope would read 'reprice the whole catalog' (the anti-sitewide divergence from promotions).
organizationIdsID [ID!]The canned-pool org selection — absent = every org in the group participates.
logicalFacilityIdsID [ID!]The explicit LF restriction — absent = all LFs of the selected orgs.
currencyString String!The plan currency — every scoped II's schedule currency must equal it at schedule time, and every money-bearing move carries it.
stepsMarkdownStep [MarkdownStep!]!The ordered cadence: startAt strictly increasing, ALL future at schedule time; intermediate windows chain to the next step's startAt; the last window ends at its explicit endAt (the lapse arm) or the standing 9999-12-31T00:00:00.000Z.
nextDueAtStringSystem-maintained: schedule stamps steps[0].startAt; the activate firing re-stamps steps[last].startAt; terminal statuses disarm the lane.
resolvedInventoryItemIdsID [ID!]System-stamped at schedule: the resolved fan-out targets — the cancel doom-walk's bounded custody.

Used by