9. Seller inbound and case-packed shipments
Status
Proposed (2026-10-23). Amends ADR 0001: the domain gains an eleventh context. Design only: unlike the other ten, this context has no reference service.
Context
The model had two parties: the network and the vendors that operate
fulfillment nodes. Stock simply existed at a node. There was no seller, no way
to describe a delivery of stock in cartons, and no packaging below the
catalogue item: every quantity was "units", and the future context
inventory-placement was a reserved name with no design.
Sellers that send master cartons (one outer carton holding several identical sellable units) need four things the model lacked: an identity for the carton, a packaging hierarchy on the item, a statement of whose stock it is, and a reconciliation of what arrived against what was declared.
GS1 standards facts this decision rests on (everything else below is the proposed model):
- A packaging hierarchy has levels: an each is the lowest level, intended for individual resale; a case contains eaches and all items in a case have the same GTIN; a mixed case holds more than one GTIN (GS1 US, packaging levels).
- A change to the number of trade items in a case requires a new GTIN, and a unique GTIN is assigned at every packaging level above the base unit (GS1, pack/case quantity).
- An SSCC identifies a logistic unit, such as a case, pallet or parcel (GS1, SSCC).
Decision
- One new context,
seller-inbound(codeSI, Supporting, tierpartner). It absorbs the reservedinventory-placementname: the seller names the destination node on its plan. Aggregates:SellerAccount,InboundPlan,InboundShipmentwith itsCartonentity. - Eaches are the ledger unit. Every quantity on every existing event,
field and API keeps meaning eaches. New pack fields are named
cases,unitsPerPack; a bareqtynever changes meaning. All new event fields are optional and additive; no event changes meaning, so no event version changes. - GTIN and SSCC are values, validated by the receiver. A GTIN is stored as 14 digits, zero-left-padded, accepted as 8, 12, 13 or 14 digits with a valid mod-10 check digit. An SSCC is 18 digits with a valid mod-10 check digit. No service trusts a client-supplied check digit.
- SSCC rule. A seller-supplied SSCC is accepted only if it is valid and
unique network-wide (
ErrInvalidSscc,ErrSsccNotUnique); otherwise the network issues one from its own GS1 company prefix and returns the label. - GS1 immutability on the packaging hierarchy.
offer-availability'sCatalogItemgains the each GTIN and aPackagingHierarchyof pack levelsEACH | INNER | CASE | PALLET, each{level, gtin, childGtin?, unitsPerPack, dimsMm?, grossWeightG?, active}(unitsPerPackis the direct factor to eaches: at least 2 aboveEACH, 1 forEACH). Once a level is active itsunitsPerPacknever changes for that GTIN (ErrPackQuantityImmutable): a new content quantity is a new GTIN at that level and a re-declaration of every level above, and the old level is retired (inactive) and kept for shipments in flight. A level is declared withPUT /catalog-items/{id}/packaging/{level}and retired withPOST /catalog-items/{id}/packaging/{level}:retire; each emits oneCatalogItemPackagingDeclaredorCatalogItemPackLevelRetiredevent. Variable-measure GTINs are rejected. A mixed carton gets no pack GTIN: it is a logistic unit only. - Owner-segregated stock.
ownerRef(an opaque string, on the network equal to thesellerId) is added toListingand its events; one listing per (catalogue item, node, owner). Quantities of different owners are never summed or merged. Commingling is not designed. - The boundary does not move.
seller-inboundpublishes the carton manifest onInboundShipmentLabelledand the shipped instant onInboundShipmentShipped;vendor-connectivitykeeps both (andInboundShipmentReceived) in a localInboundShipmentView, serves the shipped ones on the Vendor API (GET /vendor/inbound-shipments) and takes the vendor's carton-level answer (POST /vendor/inbound-receipts, a newSubmissionKind(INBOUND_RECEIPT)), which it relays asInboundReceiptSubmitted. No retail-network context consumes awarehouse.*topic or calls a warehouse-systems service, and the fleet consumes noretailnetwork.*topic. - Node limits are declared.
node-topology'sOperationalProfilegainsinbound{maxCartonWeightG, maxCartonDimsMm{l,w,h}, acceptsPallets, requiresSscc}, carried byNodeOperationalProfileDeclared. A profile without it declares no limits:seller-inboundthen treats the limits as unchecked and the node as accepting cartons. - Receiving nodes need the
INBOUNDcapability. The model already gave it toINBOUND_CROSS_DOCK; this decision also gives it toFULFILLMENT_CENTER, because a seller's cartons are received at the building that stores them. - Discrepancies are facts. The shipment is never edited to match the
dock; differences become
InboundDiscrepancyRecordedand compliance codes becomeSellerComplianceViolationRecorded. - Lot and expiry are captured and carried on cartons and events from the start; nothing allocates by them.
- Levels in the model, flows in two.
INNERexists in the model; receiving flows useEACHandCASEonly. - Wire conventions. Payloads are camelCase; quantities are always eaches
(
qtyEaches); instants are RFC 3339 UTC; enums are UPPER_SNAKE; optional fields are omitted when empty and arrays are always present. Thekindof anInboundDiscrepancyRecordedis passed through unchanged from the vendor's receipt (the receiving side's carton discrepancy kind strings); this model owns no closed vocabulary for it.
Consequences
- Eleven contexts:
seller-inboundjoins thepartnertier, and its events arecom.retailnetwork.partner.seller-inbound.<entity>.<Event>. vendor-connectivitygains two endpoint groups and theInboundReceiptSubmittedevent;node-performanceconsumes it, withInboundShipmentShipped, for two informational inbound metrics (timeliness:receivedAtminusshippedAt; accuracy: the share of cartonsRECEIVED) that are not part of the grade.- A listing now has an owner, but
order-sourcinganddelivery-promiseare unchanged and ignoreownerRef. Choosing between two sellers of the same item at the same node is therefore unspecified (gap G47). Makingorder-sourcingseller-aware is a follow-up, outside this decision. - Not solved here, and recorded in the gap register: commingling, a seller compliance scorecard, inbound freight, X12 and EDIFACT adapters, FEFO, turning received stock into owner-scoped listings, placement advice, partial and overdue receipts, pallets and inner packs, and OpenAPI files for the seller-facing and packaging routes.
- The fleet-side changes that would consume this manifest (a packaging hierarchy, a hierarchical ASN, sealed containers) are outside this repository and are not claimed here.