Seller Inbound
Derived from network/model/model.yaml. This context's service is built (IQVO/seller-inbound, designed by ADR 0009); the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses. Where the model left a choice open, the service's own ADRs 0002 to 0005 record what it does.
Seller Inbound (seller-inbound, code SI, tier partner) is the
front door for stock that sellers send to the 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, hands the vendor a carton manifest through 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). The warehouse-systems fleet never talks to this context: the
Vendor API of vendor-connectivity remains the only channel.
Pages
| Page | What it covers | ddd-crew tool |
|---|---|---|
| Business Context | The problem, the actors, the decisions, what is out of scope | — |
| Ubiquitous Language | Terms (each, case pack, master carton, GTIN, SSCC...) and code identifiers | — |
| Core Domain Chart | Why this context is Supporting | core-domain-charts |
| Bounded Context Canvas | Purpose, roles, inbound and outbound messages, decisions | bounded-context-canvas |
| Context Map | Every neighbour with direction and pattern | context-mapping |
| Aggregate Design Canvas | SellerAccount, InboundPlan, InboundShipment with Carton | aggregate-design-canvas |
| Domain Events | Nine published events, eight consumed | — |
| Domain Message Flow | Case-packed happy path, discrepancy, SSCC issuance | domain-message-flow-modelling |
| EventStorming | Process-level boards with hotspots | eventstorming-glossary-cheat-sheet |
| Use Cases | One section per command, errors mapped to HTTP | — |
| Class Diagram | Domain types (design pack; packages as built are listed on the aggregate canvas) | — |
| Entity Relationship | The as-built Postgres schema (migrations 0001 and 0002) | — |
| Sequence Diagrams | One runtime sequence per key command | — |
Service and operations
- Service:
IQVO/seller-inboundondevelop(3a23fb2, 2026-10-26): binariescmd/api(REST) andcmd/mcp(read-only MCP), and the console remote inweb/. - Deployment: wired in warehouse-infra develop: a
terraform/apps.yamlentry (database: true,frontend_remote: seller_inbound_mfe) andhelm-values/seller-inbound.yaml(MCP enabled, gateway path/api/mcp/seller-inbound). The cluster itself was not checked in this refresh. - Observability: service ADR 0008,
Adopt the fleet observability standard, Accepted 2026-10-26. Logs, metrics and traces leave
over OTLP to the otel-collector (
OTEL_EXPORTER_OTLP_ENDPOINT, chart defaultotel-collector.observability.svc.cluster.local:4317;OTEL_SERVICE_NAME). The Tier-2 business counter isseller_inbound.shipment.shipped(unit{shipment}, ininternal/adapters/outbound/telemetry/shipment_metrics.go), with attributeoutcome=shippedorrejectedandreasonon the outcomes that are not a success. The dashboard queries it asseller_inbound_shipment_shipped_totalin warehouse-infra'sterraform/dashboards/contexts/seller-inbound.json, byoutcome.
Elsewhere
- The decision: ADR 0009, seller inbound and case-packed shipments.
- The vendor-facing half of this flow:
GET /vendor/inbound-shipmentsandPOST /vendor/inbound-receiptsin the Vendor API, rendered under API reference and described on Vendor API. - What this design does not solve: Model gap register, G41 to G55.
- The seller-facing REST contract (as built, from the service repository):
network/apis/seller-inbound/openapi.yaml, rendered under the API reference: 14 operations, includingGET /inbound-plans/{planId}and the informationalGET /sellers/{sellerId}/scorecard(service ADR 0005). - Read-only MCP server (service ADR 0006):
cmd/mcp, a second binary serving Streamable HTTP on:8090with no auth; it sources this context's own reads and nothing that writes. Four tools:get_inbound_plan,get_inbound_shipment,get_seller_scorecard,get_shipment_labels. The gateway (Kong) exposes it at/api/mcp/seller-inbound. - Console remote (service ADR 0007):
web/, a Vite + React Module Federation remote — federation containerseller_inbound_mfe, gateway mount/mfes/seller-inbound/, dev/preview port4022. - Where the context sits among the twelve: Context Map.