AlmondTill/G3N API

OrgVendorItem

object type

An org vendor item — the (OrgVendor × Variant) JUNCTION: this org buys THIS variant from THIS enabled vendor, carrying the vendor's part number / list cost / MOQ / lead time. Parent = the OrgVendor (the InventoryItem junction stance). The (orgVendor × variant) pair is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder; a doomed holder is taken over). OVIs are OPTIONAL by default. Live OVIs block the parent OrgVendor's doom AND the Variant's doom (CONFLICT/REFERENCED); OrgVendor deactivate stays free. Money reuses the MoneyEntry SDL (declared on the Product entry).

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 group-scoped human-facing system id (EI-…).
typeString String!The kind of record — always OrgVendorItem here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: active | inactive | doomed.
parentIdID ID!The parent OrgVendor; for an OrgVendorItem parentId!== rootId.
rootIdID ID!The org-group family root.
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 OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
variantIdID ID!The Variant leg of the junction — set at creation, IMMUTABLE thereafter (re-point = doom + create).
vendorPartNumberStringThe VENDOR'S part number for this variant (their token, not our SKU; at most 128 chars); optional + editable.
listCostMoneyEntryThe vendor's list cost — the currency must MATCH the parent OrgVendor's purchasingCurrency. The cost per PACK when purchasePackId is present; optional + editable.
moqIntThe minimum order quantity — STOCK-UoM units, or PACKS when purchasePackId is present; optional + editable.
leadTimeDaysIntThe per-item lead time in days (1..730) — OVERRIDES the OrgVendor default when present; optional + editable.
purchasePackIdIDThe vendor PurchasePack denomination for this junction. Must package THIS junction variant (tenant + ACTIVE + variant-coherence gated at every set); an edit supplying it while listCost/moq are stored re-supplies them in the SAME payload (the flip coupling); NO clearing semantic — un-denominating = doom + re-create. Optional + editable.

Used by