Domain Events
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
| Attribute | Value |
|---|---|
specversion | 1.0 |
id | a UUID minted once per event and stored in the outbox row, so a redelivery carries the same id |
source | /retailnetwork/vendor-connectivity |
type | com.retailnetwork.partner.vendor-connectivity.<entity>.<EventName>; entity is vendoraccount, purchaseorder, submission or inboundreceipt (InboundReceiptSubmitted only) |
subject | the aggregate root id: vendorId, poNumber or transactionId |
time | the instant of the fact, UTC |
datacontenttype | application/json |
dataschema | urn:retailnetwork:vendor-connectivity:events:<EventName>:v1 |
| Topic | retailnetwork.vendor-connectivity.events |
| Kafka key | same 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
| Type | com.retailnetwork.partner.vendor-connectivity.vendoraccount.VendorOnboarded |
| Subject / key | vendorId |
| Produced by | OnboardVendor (REST POST /vendors) |
| Consumers | node-performance |
| Field | Type | Meaning |
|---|---|---|
vendorId | string | The vendor account id, for example V-WS |
name | string | The vendor's name |
ackWindowMinutes | integer | The vendor's ack window, 60 to 1440 |
VendorSuspended and VendorReinstated
| Types | com.retailnetwork.partner.vendor-connectivity.vendoraccount.VendorSuspended, ...VendorReinstated |
| Subject / key | vendorId |
| Produced by | SuspendVendor (REST POST /vendors/{vendorId}/suspensions), ReinstateVendor (REST POST /vendors/{vendorId}/reinstatements) |
| Stream | retailnetwork.vendor-connectivity.events (integration); no context consumes them yet (service ADR 0002 A14, ADR 0004) |
| Field | Type | Meaning |
|---|---|---|
vendorId | string | The vendor account id |
suspendedAt / reinstatedAt | date-time | When the change was made |
reason | string, optional | Why the vendor was suspended (VendorSuspended only) |
A repeated suspend or reinstate is a no-op and raises no event.
PurchaseOrderIssued
| Type | com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderIssued |
| Subject / key | poNumber |
| Produced by | IssuePurchaseOrder (policy IssueOnRelease) |
| Consumers | node-performance |
| Field | Type | Meaning |
|---|---|---|
poNumber | string | The purchase order |
vendorId | string | The vendor that operates the node |
nodeId | string | The vendor node |
assignmentId | string | order-sourcing's assignment |
releaseNo | integer | The release of that assignment |
requiredShipBy | date-time | The pickup cutoff to be ready for |
ackBy | date-time | min(issuedAt + ackWindow, requiredShipBy - handlingTime) |
lines | array of {lineNo, listingId, quantity} | The PoLines |
PurchaseOrderAccepted
| Type | com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderAccepted |
| Subject / key | poNumber |
| Produced by | ProcessSubmission (acknowledgement ACCEPT, transaction SUCCESS) |
| Consumers | order-sourcing (LockOnCommit), node-performance |
| Field | Type | Meaning |
|---|---|---|
poNumber | string | The purchase order |
assignmentId | string | order-sourcing's assignment |
releaseNo | integer | The release |
nodeId | string | The vendor node |
acceptedAt | date-time | When the acceptance took effect |
transactionId | string | The acknowledgement submission |
PurchaseOrderRejected
| Type | com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderRejected |
| Subject / key | poNumber |
| Produced by | ProcessSubmission (acknowledgement REJECT, transaction SUCCESS) |
| Consumers | order-sourcing (ReassignOnRefusal), node-performance |
| Field | Type | Meaning |
|---|---|---|
poNumber | string | The purchase order |
assignmentId | string | order-sourcing's assignment |
releaseNo | integer | The release |
nodeId | string | The vendor node |
reasonCode | enum | OUT_OF_STOCK, UNKNOWN_LISTING, CANNOT_MEET_SHIP_BY, DISCONTINUED |
rejectedAt | date-time | When the rejection took effect |
PurchaseOrderExpired
| Type | com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderExpired |
| Subject / key | poNumber |
| Produced by | ExpireUnacknowledgedOrders (policy ExpireUnacknowledged) |
| Consumers | order-sourcing (ReassignOnRefusal), node-performance |
| Field | Type | Meaning |
|---|---|---|
poNumber | string | The purchase order |
assignmentId | string | order-sourcing's assignment |
releaseNo | integer | The release |
nodeId | string | The vendor node |
ackBy | date-time | The deadline that passed |
PurchaseOrderCancelled
| Type | com.retailnetwork.partner.vendor-connectivity.purchaseorder.PurchaseOrderCancelled |
| Subject / key | poNumber |
| Produced by | CancelPurchaseOrder (policy CancelOnSourcingCancel) |
| Consumers | analytics only (no context consumer) |
| Field | Type | Meaning |
|---|---|---|
poNumber | string | The purchase order |
assignmentId | string | order-sourcing's assignment |
reason | string | The reason carried by FulfillmentCancelled |
VendorShipmentConfirmed
| Type | com.retailnetwork.partner.vendor-connectivity.purchaseorder.VendorShipmentConfirmed |
| Subject / key | poNumber |
| Produced by | ProcessSubmission (shipment confirmation, transaction SUCCESS) |
| Consumers | order-sourcing, shipping-and-tracking, node-performance |
| Field | Type | Meaning |
|---|---|---|
poNumber | string | The purchase order |
assignmentId | string | order-sourcing's assignment |
nodeId | string | The vendor node |
trackingNumbers | array of string | One per package, each with a label |
shippedAt | date-time | When the vendor says it shipped |
requiredShipBy | date-time | The cutoff it was due for, so consumers can judge lateness without a lookup |
SubmissionProcessed
| Type | com.retailnetwork.partner.vendor-connectivity.submission.SubmissionProcessed |
| Subject / key | transactionId |
| Produced by | ProcessSubmission (any kind, any outcome) |
| Consumers | node-performance (feed freshness, failure rates) |
| Field | Type | Meaning |
|---|---|---|
transactionId | string | The submission |
vendorId | string | The vendor that wrote |
kind | enum | ACKNOWLEDGEMENT, INVENTORY, NODE_REGISTRATION, NODE_PROFILE, SHIPMENT_CONFIRMATION, INBOUND_RECEIPT (proposed, ADR 0009) |
status | enum | SUCCESS or FAILURE |
errorCount | integer | Number 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.
| Producer | Full type | What this context does | Idempotency beyond the inbox |
|---|---|---|---|
| order-sourcing | com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentReleasedToNode | Policy 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 arrives | poNumber is derived from assignmentId + releaseNo; a second release event with the same pair finds the order and does nothing |
| order-sourcing | com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentReleaseWithdrawn | Policy CancelOnReleaseWithdrawn: look the order up by (assignmentId, releaseNo) and CancelPurchaseOrder with the reason release withdrawn: <reason>; not found is a no-op | Only 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-sourcing | com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled | Policy 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-topology | com.retailnetwork.logistics.node-topology.node.NodeRegistered | Upsert VendorNodeView (nodeId, vendorId, vendorNodeCode, nodeType, operator, status PROPOSED) | Upsert by nodeId |
| node-topology | com.retailnetwork.logistics.node-topology.node.NodeActivated | Set status ACTIVE in VendorNodeView | Last delivered event wins; the CloudEvents time is not read; a RETIRED node never changes status |
| node-topology | com.retailnetwork.logistics.node-topology.node.NodeSuspended | Set status SUSPENDED | Last delivered event wins; the CloudEvents time is not read; a RETIRED node never changes status |
| node-topology | com.retailnetwork.logistics.node-topology.node.NodeRetired | Set status RETIRED | Terminal: no later event changes it |
| offer-availability | com.retailnetwork.commerce.offer-availability.listing.ListingCreated | Insert 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-connectivityADR 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)
| Type | com.retailnetwork.partner.vendor-connectivity.inboundreceipt.InboundReceiptSubmitted |
| Subject / key | shipmentId |
| Produced by | SubmitInboundReceipt, in the same unit of work that accepts the INBOUND_RECEIPT submission (policy ReceiptRelay, service ADR 0005); SubmissionProcessed still reports the processing |
| Consumers | seller-inbound (RecordInboundReceipt), node-performance (inbound timeliness and accuracy observations) |
| Field | Type | Meaning |
|---|---|---|
transactionId | string | The submission |
vendorId | string | The vendor that wrote |
nodeId | string | The receiving node |
shipmentId | string | The inbound shipment the receipt answers |
receivedAt | RFC 3339 instant | When the vendor says the cartons arrived |
cartons | array | Per 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
| Producer | Full type | What this context does |
|---|---|---|
seller-inbound | com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentLabelled | Insert into InboundShipmentView (the carton manifest the vendor polls), with sellerId exposed unchanged (the vendor carries it as its ownerRef). |
seller-inbound | com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentShipped | Mark the shipment SHIPPED in InboundShipmentView; only SHIPPED shipments are returned by the poll. |
seller-inbound | com.retailnetwork.partner.seller-inbound.inboundshipment.InboundShipmentReceived | Mark the shipment closed in InboundShipmentView; it leaves the poll. |
offer-availability | com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackagingDeclared | Upsert CatalogPackagingView (levels, GTINs, unitsPerPack). |
offer-availability | com.retailnetwork.commerce.offer-availability.catalogitem.CatalogItemPackLevelRetired | Mark the level inactive in CatalogPackagingView. |