Skip to main content

Domain Events

As built

Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.

These are in-organization events. Vendors never see them; vendors see the Vendor API's Published Language (apis/vendor-connectivity/openapi.yaml). The convention is on Event standard: CloudEvents and ADR 0007.

Envelope​

AttributeValue
specversion1.0
ida UUID minted once per event and stored in the outbox row, so a redelivery carries the same id
source/retailnetwork/vendor-connectivity
typecom.retailnetwork.partner.vendor-connectivity.<entity>.<EventName>; entity is vendoraccount, purchaseorder, submission or inboundreceipt (InboundReceiptSubmitted only)
subjectthe aggregate root id: vendorId, poNumber or transactionId
timethe instant of the fact, UTC
datacontenttypeapplication/json
dataschemaurn:retailnetwork:vendor-connectivity:events:<EventName>:v1
Topicretailnetwork.vendor-connectivity.events
Kafka keysame as subject, so one purchase order's events stay in order on one partition

Published​

Every event leaves through the transactional outbox, in the same transaction as the aggregate change.

VendorOnboarded​

Typecom.retailnetwork.partner.vendor-connectivity.vendoraccount.VendorOnboarded
Subject / keyvendorId
Produced byOnboardVendor (REST POST /vendors)
Consumersnode-performance
FieldTypeMeaning
vendorIdstringThe vendor account id, for example V-WS
namestringThe vendor's name
ackWindowMinutesintegerThe vendor's ack window, 60 to 1440

VendorSuspended and VendorReinstated​

Typescom.retailnetwork.partner.vendor-connectivity.vendoraccount.VendorSuspended, ...VendorReinstated
Subject / keyvendorId
Produced bySuspendVendor (REST POST /vendors/{vendorId}/suspensions), ReinstateVendor (REST POST /vendors/{vendorId}/reinstatements)
Streamretailnetwork.vendor-connectivity.events (integration); no context consumes them yet (service ADR 0002 A14, ADR 0004)
FieldTypeMeaning
vendorIdstringThe vendor account id
suspendedAt / reinstatedAtdate-timeWhen the change was made
reasonstring, optionalWhy the vendor was suspended (VendorSuspended only)

A repeated suspend or reinstate is a no-op and raises no event.

PurchaseOrderIssued​

Typecom.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderIssued
Subject / keypoNumber
Produced byIssuePurchaseOrder (policy IssueOnRelease)
Consumersnode-performance
FieldTypeMeaning
poNumberstringThe purchase order
vendorIdstringThe vendor that operates the node
nodeIdstringThe vendor node
assignmentIdstringorder-sourcing's assignment
releaseNointegerThe release of that assignment
requiredShipBydate-timeThe pickup cutoff to be ready for
ackBydate-timemin(issuedAt + ackWindow, requiredShipBy - handlingTime)
linesarray of {lineNo, listingId, quantity}The PoLines

PurchaseOrderAccepted​

Typecom.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderAccepted
Subject / keypoNumber
Produced byProcessSubmission (acknowledgement ACCEPT, transaction SUCCESS)
Consumersorder-sourcing (LockOnCommit), node-performance
FieldTypeMeaning
poNumberstringThe purchase order
assignmentIdstringorder-sourcing's assignment
releaseNointegerThe release
nodeIdstringThe vendor node
acceptedAtdate-timeWhen the acceptance took effect
transactionIdstringThe acknowledgement submission

PurchaseOrderRejected​

Typecom.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderRejected
Subject / keypoNumber
Produced byProcessSubmission (acknowledgement REJECT, transaction SUCCESS)
Consumersorder-sourcing (ReassignOnRefusal), node-performance
FieldTypeMeaning
poNumberstringThe purchase order
assignmentIdstringorder-sourcing's assignment
releaseNointegerThe release
nodeIdstringThe vendor node
reasonCodeenumOUT_OF_STOCK, UNKNOWN_LISTING, CANNOT_MEET_SHIP_BY, DISCONTINUED
rejectedAtdate-timeWhen the rejection took effect

PurchaseOrderExpired​

Typecom.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderExpired
Subject / keypoNumber
Produced byExpireUnacknowledgedOrders (policy ExpireUnacknowledged)
Consumersorder-sourcing (ReassignOnRefusal), node-performance
FieldTypeMeaning
poNumberstringThe purchase order
assignmentIdstringorder-sourcing's assignment
releaseNointegerThe release
nodeIdstringThe vendor node
ackBydate-timeThe deadline that passed

PurchaseOrderCancelled​

Typecom.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderCancelled
Subject / keypoNumber
Produced byCancelPurchaseOrder (policy CancelOnSourcingCancel)
Consumersanalytics only (no context consumer)
FieldTypeMeaning
poNumberstringThe purchase order
assignmentIdstringorder-sourcing's assignment
reasonstringThe reason carried by FulfillmentCancelled

VendorShipmentConfirmed​

Typecom.retailnetwork.partner.vendor-connectivity.purchaseorder.VendorShipmentConfirmed
Subject / keypoNumber
Produced byProcessSubmission (shipment confirmation, transaction SUCCESS)
Consumersorder-sourcing, shipping-and-tracking, node-performance
FieldTypeMeaning
poNumberstringThe purchase order
assignmentIdstringorder-sourcing's assignment
nodeIdstringThe vendor node
trackingNumbersarray of stringOne per package, each with a label
shippedAtdate-timeWhen the vendor says it shipped
requiredShipBydate-timeThe cutoff it was due for, so consumers can judge lateness without a lookup

SubmissionProcessed​

Typecom.retailnetwork.partner.vendor-connectivity.submission.SubmissionProcessed
Subject / keytransactionId
Produced byProcessSubmission (any kind, any outcome)
Consumersnode-performance (feed freshness, failure rates)
FieldTypeMeaning
transactionIdstringThe submission
vendorIdstringThe vendor that wrote
kindenumACKNOWLEDGEMENT, INVENTORY, NODE_REGISTRATION, NODE_PROFILE, SHIPMENT_CONFIRMATION, INBOUND_RECEIPT (proposed, ADR 0009)
statusenumSUCCESS or FAILURE
errorCountintegerNumber of SubmissionErrors

No event carries a ship-to address, name or phone.

Example envelope​

PurchaseOrderAccepted is the most important event: it is the path lock (ADR 0005).

{
"specversion": "1.0",
"id": "9b2f4c1e-6a7d-4e0b-8f31-2c5d7a9e1b44",
"source": "/retailnetwork/vendor-connectivity",
"type": "com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderAccepted",
"subject": "PO-7f3c",
"time": "2026-10-22T13:05:41Z",
"datacontenttype": "application/json",
"dataschema": "urn:retailnetwork:vendor-connectivity:events:PurchaseOrderAccepted:v1",
"data": {
"poNumber": "PO-7f3c",
"assignmentId": "asg-41d2",
"releaseNo": 1,
"nodeId": "node-ws-gru1",
"acceptedAt": "2026-10-22T13:05:41Z",
"transactionId": "tx-01J9Z6K4M2"
}
}

Consumed​

Every consumer is idempotent on the CloudEvents id (the processed_events inbox, written in the same transaction as the effect) and dispatches on the full type string.

ProducerFull typeWhat this context doesIdempotency beyond the inbox
order-sourcingcom.retailnetwork.commerce.order-sourcing.assignment.FulfillmentReleasedToNodePolicy IssueOnRelease: if nodeId is a VENDOR node in VendorNodeView, IssuePurchaseOrder with requiredShipBy and lines (listingId, quantity); ignores orderId, tier and promisedDeliverByLatest. A merged release (optional members, per-line assignmentId, the union lines with no lineNo) issues ONE order under the carrier's ids, lines numbered by position, a listingId that two members ordered on two lines; the release carries the fulfilment class, so a fifth tier never arrivespoNumber is derived from assignmentId + releaseNo; a second release event with the same pair finds the order and does nothing
order-sourcingcom.retailnetwork.commerce.order-sourcing.assignment.FulfillmentReleaseWithdrawnPolicy CancelOnReleaseWithdrawn: look the order up by (assignmentId, releaseNo) and CancelPurchaseOrder with the reason release withdrawn: <reason>; not found is a no-opOnly an ISSUED order is cancelled; an accepted, rejected, expired or cancelled one is logged at INFO and acknowledged. The lookup is by release number, never "latest", so a withdraw that arrives after the carrier was released again cannot cancel the new order
order-sourcingcom.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelledPolicy CancelOnSourcingCancel: CancelPurchaseOrder on the order of the assignment's highest releaseNo (no order is a no-op)A non-ISSUED order is refused: ErrCancelAfterAcknowledgement when it is past acknowledgement (ACK_PROCESSING, ACCEPTED, REJECTED, SHIPMENT_PROCESSING, SHIPPED), ErrIllegalTransition when it is EXPIRED or CANCELLED; either way logged at INFO, nothing published and not retried
node-topologycom.retailnetwork.logistics.node-topology.node.NodeRegisteredUpsert VendorNodeView (nodeId, vendorId, vendorNodeCode, nodeType, operator, status PROPOSED)Upsert by nodeId
node-topologycom.retailnetwork.logistics.node-topology.node.NodeActivatedSet status ACTIVE in VendorNodeViewLast delivered event wins; the CloudEvents time is not read; a RETIRED node never changes status
node-topologycom.retailnetwork.logistics.node-topology.node.NodeSuspendedSet status SUSPENDEDLast delivered event wins; the CloudEvents time is not read; a RETIRED node never changes status
node-topologycom.retailnetwork.logistics.node-topology.node.NodeRetiredSet status RETIREDTerminal: no later event changes it
offer-availabilitycom.retailnetwork.commerce.offer-availability.listing.ListingCreatedInsert into ListingView (listingId, catalogItemId, nodeId)Insert-if-absent by listingId

com.retailnetwork.logistics.node-topology.node.NodeOperationalProfileDeclared is consumed too: it stores profileRevision and handlingTimeMinutes in VendorNodeView, the source of the handling time in the ackBy rule (a lower revision never overwrites a higher one; service ADR 0003).

Inbound receipts​

Built, ADR 0009 as realized by vendor-connectivity ADR 0005 (inbound shipments, inbound receipts and catalogue packaging). This section is the delta the seller-inbound design added to this page; where the service decided differently, the text below says so.

InboundReceiptSubmitted (published)​

Typecom.retailnetwork.partner.vendor-connectivity.inboundreceipt.InboundReceiptSubmitted
Subject / keyshipmentId
Produced bySubmitInboundReceipt, in the same unit of work that accepts the INBOUND_RECEIPT submission (policy ReceiptRelay, service ADR 0005); SubmissionProcessed still reports the processing
Consumersseller-inbound (RecordInboundReceipt), node-performance (inbound timeliness and accuracy observations)
FieldTypeMeaning
transactionIdstringThe submission
vendorIdstringThe vendor that wrote
nodeIdstringThe receiving node
shipmentIdstringThe inbound shipment the receipt answers
receivedAtRFC 3339 instantWhen the vendor says the cartons arrived
cartonsarrayPer carton: sscc, status (RECEIVED, MISSING, UNEXPECTED, DAMAGED), items (gtin, qtyEaches received), complianceCodes

Quantities are eaches. No event carries a ship-to address, name or phone.

Consumed​

ProducerFull typeWhat this context does
seller-inboundcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentLabelledInsert into InboundShipmentView (the carton manifest the vendor polls), with sellerId exposed unchanged (the vendor carries it as its ownerRef).
seller-inboundcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentShippedMark the shipment SHIPPED in InboundShipmentView; only SHIPPED shipments are returned by the poll.
seller-inboundcom.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentReceivedMark the shipment closed in InboundShipmentView; it leaves the poll.
offer-availabilitycom.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackagingDeclaredUpsert CatalogPackagingView (levels, GTINs, unitsPerPack).
offer-availabilitycom.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackLevelRetiredMark the level inactive in CatalogPackagingView.