Seller Inbound
Seller Inbound (seller-inbound) is the front door for stock that sellers send to the retail network. A seller
declares an inbound plan in eaches, packs it into cartons that each carry an SSCC and a printed label,
and ships it to a vendor node. Cartons may be case-packed (a master carton holding one item at the quantity of its
declared case level) or mixed. The context checks each plan against the destination node's declared inbound limits and
the item's packaging hierarchy, publishes the carton manifest for the Vendor API, and closes the shipment from the
vendor's carton-level receipt, recording every discrepancy instead of correcting it. Stock stays owned by its seller
(ownerRef equals the sellerId).
| Area | Network (retail-network), tier partner |
| Subdomain class | Supporting, custom-built (Classification) |
| Repository | IQVO/seller-inbound, Go, hexagonal |
| Binaries | cmd/api (REST, consumers, outbox relay), cmd/mcp (read-only MCP), cmd/a2a (read-only A2A); web/ is the console remote |
| Store and bus | Postgres (owned by the context), Kafka (the fleet's single broker) |
| Design source | network/model/model.yaml in IQVO/warehouse-docs; this repository's ADRs record what the service does |
This repository is a service of the retail network, not of the warehouse-systems fleet. The fleet reaches the network
only through the Vendor API of vendor-connectivity.
What it owns
SellerAccount: onboarding, suspension and reinstatement of a seller; the gate every plan, shipment and carton passes (Aggregate Design Canvas).InboundPlan: what a seller will send, to which node,INDIVIDUALorCASE_PACKED, in eaches.InboundShipmentwith itsCartonentities: one physical consignment, the carton manifest, the SSCCs and label data, and the reconciliation against the vendor's receipt.- SSCC uniqueness network-wide (
sscc_registry) and SSCC issuance from the network's own GS1 company prefix when the seller supplies none. - The seller compliance scorecard (ADR 0005): an informational rolling 7-day or 30-day read over the discrepancies and violations this service recorded. It suspends and blocks nothing.
- Two local read models,
NodeInboundViewandCatalogPackagingView, folded from neighbours' events (ADR 0003).
What it does not own
- The node registry and inbound limits belong to node-topology; the packaging hierarchy and GTINs to offer-availability. They are copied in as events, never looked up.
- The vendor's building. Receiving, stowing, breaking a case and picking happen in the vendor's systems; the
vendor's carton-level answer arrives as
InboundReceiptSubmittedthrough vendor-connectivity. A vendor never calls this service. - Commingling, FEFO and lot allocation. Lot and expiry are captured on cartons and carried on events; nothing allocates by them.
- Scoring that acts. The scorecard is read-only information; suspending a seller stays the manual
POST /sellers/{id}/suspensions. No chargebacks or money movement (payments are a future, Generic context). - Inbound freight. The seller delivers to the node it names. A placement advisory exists (
PlacementPlan, ADR 0012): a deterministic, advisory-only suggestion of how many units of an item to send to which vendor fulfilment node, read over REST and MCP; accepting it drives nothing downstream, and the seller still ships through the normal inbound plan. - EDI. The published language is JSON over REST and CloudEvents on Kafka.
- Authentication. REST, MCP and A2A are unauthenticated; the in-cluster boundary is the access control.
Main capabilities
- Plan an inbound against a node that can receive, with lines validated as GS1 GTINs and quantities in eaches.
- Pack: add cartons whose contents, weight and size are checked against the plan, the packaging hierarchy and the node's limits, with an SSCC supplied or issued.
- Label: freeze the manifest once the cartons match the plan, and serve the label data (GS1-128
(00)element string, human-readable line, content summary) for each carton. - Ship, which publishes the manifest-bearing events for vendor-connectivity and node-performance.
- Reconcile the vendor's receipt: close the shipment
CLOSEDorCLOSED_WITH_DISCREPANCY, publish each discrepancy and compliance violation, and keep the scorecard facts. - Report the scorecard, and read plans, shipments and labels over REST, MCP and A2A.
Business rules in one place
- Quantities are always eaches; a bare quantity never changes meaning.
- A
CASE_PACKEDcarton is one item at one quantity, theunitsPerPackof the item's active CASE level. - A supplied SSCC is accepted only if valid (18 digits, mod-10) and unique network-wide.
- Carton weight and size are the node's declared limits.
- No shipment ships without a label on every carton.
- Discrepancies are recorded, never corrected: the manifest is not edited to match the dock.
- Every write takes an
Idempotency-Key.
Where to read next
| You want to | Read |
|---|---|
| Run it | Quickstart, Configuration |
| Understand the structure | Architecture, Runtime |
| Operate and debug it | Runbook, Observability, Troubleshooting |
| Test it | Testing |
| Learn the domain | Ubiquitous language, Use cases, DDD artifacts |
| Integrate with it | API reference, Events, Integration, MCP tools |
| See why | Architecture decision records |
The network-wide view of this context (the other ten contexts, the model and the gap register) is on the retail network documentation.
This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic.