# 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](/types/#scalars) `ID!` | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
| `sysId` | [String](/types/#scalars) `String!` | The group-scoped human-facing system id (FF-…). |
| `type` | [String](/types/#scalars) `String!` | The kind of record — always `Fulfillment` here. |
| `caption` | [String](/types/#scalars) `String!` | The record’s display name — what people see it called. |
| `status` | [String](/types/#scalars) `String!` | The FSM state: pending \| picking \| packed \| shipped \| ready_for_pickup \| fulfilled \| cancelled. |
| `parentId` | [ID](/types/#scalars) `ID!` | The fulfilling LogicalFacility; rootId = the org group; parentId!== rootId always. |
| `rootId` | [ID](/types/#scalars) `ID!` | The org-group family root. |
| `createdAt` | [String](/types/#scalars) `String!` | When the record was created, as a UTC timestamp. |
| `updatedAt` | [String](/types/#scalars) `String!` | When the record last changed, as a UTC timestamp. |
| `revisionNum` | [Int](/types/#scalars) `Int!` | How many times this record has been edited; the first save is 0. |
| `revision` | [ID](/types/#scalars) `ID!` | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
| `refCaptions` | [RefCaption](/types/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](/types/#scalars) `ID!` | The fulfilled Order. |
| `organizationId` | [ID](/types/#scalars) `ID!` | The selling Organization (copied from the Order at create — attribution). |
| `method` | [FulfillmentMethod](/types/FulfillmentMethod/) `FulfillmentMethod!` | The delivery lane — decides the packed→\[shipped \| ready_for_pickup] conditional edge. |
| `shipTo` | [FulfillmentShipTo](/types/FulfillmentShipTo/) | The inline ship-to snapshot (method=ship — captured at create or at ship; the ship payload wins as the label truth). |
| `carrierName` | [String](/types/#scalars) | SHIP-stamped carrier capture (carrier-API integration is build-time-flagged). |
| `trackingRef` | [String](/types/#scalars) | SHIP-stamped tracking reference capture. |
| `packedAt` | [String](/types/#scalars) | PACK-stamped: the Packing-List instant (the document node = this record after pack). |
| `lines` | [FulfillmentLine](/types/FulfillmentLine/) `[FulfillmentLine!]!` | The claimed lines (1..45); each refs an order line by its frozen lineNo. |

## Used by

- [cancelFulfillment](/reference/fulfillment/cancelFulfillment/)
- [createFulfillment](/reference/fulfillment/createFulfillment/)
- [fulfillment](/reference/fulfillment/fulfillment/)
- [handoverFulfillment](/reference/fulfillment/handoverFulfillment/)
- [packFulfillment](/reference/fulfillment/packFulfillment/)
- [shipFulfillment](/reference/inventory-operations/shipFulfillment/)
- [stagePickupFulfillment](/reference/fulfillment/stagePickupFulfillment/)
- [startPickFulfillment](/reference/fulfillment/startPickFulfillment/)
