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
| 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 group-scoped human-facing system id (EI-…). |
type | String String! | The kind of record — always OrgVendorItem here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The FSM state: active | inactive | doomed. |
parentId | ID ID! | The parent OrgVendor; for an OrgVendorItem parentId!== rootId. |
rootId | ID ID! | The org-group family root. |
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 OCC revision token — supply it on every mutation of this record; rotates on every write. |
refCaptions | RefCaption [RefCaption!]! | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
variantId | ID ID! | The Variant leg of the junction — set at creation, IMMUTABLE thereafter (re-point = doom + create). |
vendorPartNumber | String | The VENDOR'S part number for this variant (their token, not our SKU; at most 128 chars); optional + editable. |
listCost | MoneyEntry | The vendor's list cost — the currency must MATCH the parent OrgVendor's purchasingCurrency. The cost per PACK when purchasePackId is present; optional + editable. |
moq | Int | The minimum order quantity — STOCK-UoM units, or PACKS when purchasePackId is present; optional + editable. |
leadTimeDays | Int | The per-item lead time in days (1..730) — OVERRIDES the OrgVendor default when present; optional + editable. |
purchasePackId | ID | The 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. |