Order status change
Entries. Order update and bulk status endpoints, and the return command.
Path. OrderStatusService or OrderCommandService checks VALID_ORDER_TRANSITIONS, writes history, and enqueues order.status.changed in the same transaction.
Listeners
The return command is a producer of order.status.changed, not only a consumer of order events.
Push to the channel is meaningful when the connector implements outbound orders and Channel.manageState is on. The listener guard was not line-read. Do not assume every status change is pushed.
Retries
This is not retried as an HTTP call. The outbox event is retried up to 10 times. Both listeners run again if either throws.
Idempotency
Every outbox consumer runs in IdempotentEventHandlerService under its own consumer name, so a consumer that succeeded is not called again when another fails. Writes outside the transaction the consumer is handed, such as a call to a marketplace, can still repeat. See Events for which consumers lock the order.