Skip to main content

Seller Inbound

As built

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.

Supporting

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​

PageWhat it coversddd-crew tool
Business ContextThe problem, the actors, the decisions, what is out of scope—
Ubiquitous LanguageTerms (each, case pack, master carton, GTIN, SSCC...) and code identifiers—
Core Domain ChartWhy this context is Supportingcore-domain-charts
Bounded Context CanvasPurpose, roles, inbound and outbound messages, decisionsbounded-context-canvas
Context MapEvery neighbour with direction and patterncontext-mapping
Aggregate Design CanvasSellerAccount, InboundPlan, InboundShipment with Cartonaggregate-design-canvas
Domain EventsNine published events, eight consumed—
Domain Message FlowCase-packed happy path, discrepancy, SSCC issuancedomain-message-flow-modelling
EventStormingProcess-level boards with hotspotseventstorming-glossary-cheat-sheet
Use CasesOne section per command, errors mapped to HTTP—
Class DiagramDomain types (design pack; packages as built are listed on the aggregate canvas)—
Entity RelationshipThe as-built Postgres schema (migrations 0001 and 0002)—
Sequence DiagramsOne runtime sequence per key command—

Service and operations​

  • Service: IQVO/seller-inbound on develop (3a23fb2, 2026-10-26): binaries cmd/api (REST) and cmd/mcp (read-only MCP), and the console remote in web/.
  • Deployment: wired in warehouse-infra develop: a terraform/apps.yaml entry (database: true, frontend_remote: seller_inbound_mfe) and helm-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 default otel-collector.observability.svc.cluster.local:4317; OTEL_SERVICE_NAME). The Tier-2 business counter is seller_inbound.shipment.shipped (unit {shipment}, in internal/adapters/outbound/telemetry/shipment_metrics.go), with attribute outcome = shipped or rejected and reason on the outcomes that are not a success. The dashboard queries it as seller_inbound_shipment_shipped_total in warehouse-infra's terraform/dashboards/contexts/seller-inbound.json, by outcome.

Elsewhere​

  • The decision: ADR 0009, seller inbound and case-packed shipments.
  • The vendor-facing half of this flow: GET /vendor/inbound-shipments and POST /vendor/inbound-receipts in 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, including GET /inbound-plans/{planId} and the informational GET /sellers/{sellerId}/scorecard (service ADR 0005).
  • Read-only MCP server (service ADR 0006): cmd/mcp, a second binary serving Streamable HTTP on :8090 with 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 container seller_inbound_mfe, gateway mount /mfes/seller-inbound/, dev/preview port 4022.
  • Where the context sits among the twelve: Context Map.