Skip to main content

Domain Events

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.

Every event this context publishes (contexts[seller-inbound].publishes) and consumes (.consumes), with the envelope rules of conventions.cloudevents (event standard, ADR 0007).

Envelope​

AttributeValue
specversion1.0
ida UUID minted once when the event is written to the outbox
source/retailnetwork/seller-inbound
typecom.retailnetwork.partner.seller-inbound.<entity>.<EventName> (tier partner; entity selleraccount, inboundplan or inboundshipment)
subjectthe aggregate root id: sellerId, planId or shipmentId
timethe instant the fact became true
datacontenttypeapplication/json
dataschemaurn:retailnetwork:seller-inbound:events:<EventName>:v1
Kafka topicretailnetwork.seller-inbound.events (integration), retailnetwork.seller-inbound.analytics (analytics-only events)
Kafka keythe subject

Quantities are eaches. sellerId here is ownerRef on the Vendor API.

Published​

EventCloudEvents typeConsumers
SellerOnboardedcom.retailnetwork.partner.seller-inbound.seller.SellerOnboardedanalytics only
SellerSuspendedcom.retailnetwork.partner.seller-inbound.seller.SellerSuspendedoffer-availability
SellerReinstatedcom.retailnetwork.partner.seller-inbound.seller.SellerReinstatedoffer-availability
InboundPlanConfirmedcom.retailnetwork.partner.seller-inbound.inboundplan.InboundPlanConfirmedanalytics only
InboundShipmentLabelledcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentLabelledvendor-connectivity
InboundShipmentShippedcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentShippedvendor-connectivity, node-performance
InboundShipmentReceivedcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentReceivedvendor-connectivity, offer-availability
InboundDiscrepancyRecordedcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundDiscrepancyRecordedanalytics only
SellerComplianceViolationRecordedcom.retailnetwork.partner.seller-inbound.seller.SellerComplianceViolationRecordedanalytics only

Payloads​

EventFields (from the model)
SellerOnboardedsellerId, name, onboardedAt
SellerSuspendedsellerId, suspendedAt, reason (optional)
SellerReinstatedsellerId, reinstatedAt
InboundPlanConfirmedplanId, sellerId, destinationNodeId, packingOption, lines (catalogItemId, gtin, qtyEaches), confirmedAt
InboundShipmentLabelledshipmentId, planId, sellerId, nodeId, cartons (sscc, parentSscc, kind, contents (catalogItemId, gtin, qtyEaches, lot, expiry), grossWeightG, dimsMm), labelledAt
InboundShipmentShippedshipmentId, planId, sellerId, nodeId, shippedAt
InboundShipmentReceivedshipmentId, sellerId, nodeId, status, cartons (sscc, status), receivedAt, received (catalogItemId (optional), gtin, qtyEaches)
InboundDiscrepancyRecordedshipmentId, sellerId, nodeId, sscc (optional), kind, expected (optional), actual (optional), recordedAt
SellerComplianceViolationRecordedsellerId, shipmentId (optional), code, recordedAt

Value sets: status of the shipment is CLOSED or CLOSED_WITH_DISCREPANCY; the carton status is RECEIVED, MISSING, UNEXPECTED or DAMAGED. kind of a discrepancy is passed through unchanged from the vendor's receipt (the receiving fleet's carton discrepancy kind strings); this context does not own a closed vocabulary for it and branches on none of its values. InboundShipmentReceived is published once, when the shipment closes. InboundDiscrepancyRecorded is published for each discrepancy as receipts are processed, including while the shipment is still RECEIVING. As built, the six analytics-only events go to retailnetwork.seller-inbound.analytics and the three consumed ones to retailnetwork.seller-inbound.events (service ADR 0002 A11, ADR 0004).

Example envelope​

InboundShipmentLabelled carries the carton manifest and InboundShipmentShipped marks it shippable to the vendor; both feed InboundShipmentView in vendor-connectivity. The values are illustrative.

{
"specversion": "1.0",
"id": "3f1a7c52-9d0e-4b6a-8c21-5e7f0a9b1c33",
"source": "/retailnetwork/seller-inbound",
"type": "com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentLabelled",
"subject": "ish-01J9Z7K3M4",
"time": "2026-10-23T13:10:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:retailnetwork:seller-inbound:events:InboundShipmentLabelled:v1",
"data": {
"shipmentId": "ish-01J9Z7K3M4",
"planId": "ipl-01J9Z7H8Q2",
"sellerId": "seller-acme",
"nodeId": "N-VWS-AUS3",
"cartons": [
{
"sscc": "000123450000000010",
"kind": "HOMOGENEOUS_CASE",
"contents": [
{"catalogItemId": "ci-1001", "gtin": "00012345678905", "qtyEaches": 12, "lot": "L2209", "expiry": "2028-09-30"}
],
"grossWeightG": 7200,
"dimsMm": {"l": 400, "w": 300, "h": 250}
}
],
"labelledAt": "2026-10-23T13:10:00Z"
}
}

The SSCC and GTIN above are made up for illustration (the company prefix is not assigned to anyone). Both carry a valid mod-10 check digit, so they pass the validation the model requires.

Consumed​

Every consumer dispatches on the full type string and is idempotent on the CloudEvents id (processed_events inbox).

ProducerFull typeWhat this context does
vendor-connectivitycom.retailnetwork.partner.vendor-connectivity.inboundreceipt.InboundReceiptSubmittedRecordInboundReceipt on the named shipment (ReceiveOnVendorReceipt).
node-topologycom.retailnetwork.logistics.node-topology.node.NodeRegisteredCreates the node in NodeInboundView.
node-topologycom.retailnetwork.logistics.node-topology.node.NodeOperationalProfileDeclaredUpdates inbound limits in NodeInboundView.
node-topologycom.retailnetwork.logistics.node-topology.node.NodeActivatedMarks the node receivable.
node-topologycom.retailnetwork.logistics.node-topology.node.NodeSuspendedMarks the node not receivable.
node-topologycom.retailnetwork.logistics.node-topology.node.NodeRetiredMarks the node retired.
offer-availabilitycom.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackagingDeclaredStores the declared levels, GTINs and unitsPerPack.
offer-availabilitycom.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackLevelRetiredMarks the level retired (active = false, retired_at); only an active CASE level validates a case carton (ErrCaseQtyMismatchesGtin).

As built (service ADR 0003): one consumer per topic, each under a mandatory group variable (NODE_CONSUMER_GROUP, CATALOG_CONSUMER_GROUP, RECEIPT_CONSUMER_GROUP). A transient failure is retried with capped backoff and then dead-lettered to <topic>.dlq; a payload that can never apply is dead-lettered at once. CatalogItemCreated and CatalogItemDiscontinued are not consumed, so a plan line's catalogue item is not checked for being live.