Fulfillment
object type
A Fulfillment — groups order lines fulfilled together by ONE method from ONE LF: pick → pack → ship-or-stage → deliver. Ship = delivered (the operator ruling — the ship call fires BOTH edges); delivery relieves stock through the sell-relief lane (release of the ecom reserve rides it), stamps the ORDER line fulfilledQty rollups, and recomputes both delivery vectors; the completion evaluator flips a paid-and-delivered order to completed. After pack the record IS the Packing-List node (packedAt + the immutable lines; the FF-… sysId is the document number). Carryout lines NEVER ride a Fulfillment (the paid-completion till lane); dropship + ship-from-other-store are the named /Transfer-composition deferrals.
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 (FF-…). |
type | String String! | The kind of record — always Fulfillment here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The FSM state: pending | picking | packed | shipped | ready_for_pickup | fulfilled | cancelled. |
parentId | ID ID! | The fulfilling LogicalFacility; rootId = the org group; parentId!== rootId always. |
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. |
orderId | ID ID! | The fulfilled Order. |
organizationId | ID ID! | The selling Organization (copied from the Order at create — attribution). |
method | FulfillmentMethod FulfillmentMethod! | The delivery lane — decides the packed→[shipped | ready_for_pickup] conditional edge. |
shipTo | FulfillmentShipTo | The inline ship-to snapshot (method=ship — captured at create or at ship; the ship payload wins as the label truth). |
carrierName | String | SHIP-stamped carrier capture (carrier-API integration is build-time-flagged). |
trackingRef | String | SHIP-stamped tracking reference capture. |
packedAt | String | PACK-stamped: the Packing-List instant (the document node = this record after pack). |
lines | FulfillmentLine [FulfillmentLine!]! | The claimed lines (1..45); each refs an order line by its frozen lineNo. |