Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Send order completed notification

Shared Finance completion command consumed by Notification to render and submit a completed-order email.

Order Lifecycle

CompleteOrderCommand is an asynchronous Kafka integration command published by Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs and consumed by Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs to render and submit a completed-order customer email. It never mutates order state in Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs.

Overview

PropertyValue
Bounded ContextPlatform / Notifications
ProducerOrder OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Consumer(s)Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs
Protocol / FormatKafka + CloudEvents JSON (camelCase payload)
Channel / TopicOrder Completion Command ChannelChannelv1.0.0Order Completion Command ChannelKafka topic owned by the contributor team carrying Finance order-completion commands consumed by Notification API to sen...Ownercommerce-fulfillment-teamOpen docs
Dead-Letter ChannelNotification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs
Partition KeyOrderId
Delivery / Idempotency GuaranteeAt-least-once delivery; consumed with Redis-backed 24-hour idempotency keyed by id
Note

CompleteOrderCommand requests a completion confirmation email only. To transition an order’s authoritative status to Completed, call Complete orderCommandv1.0.0Complete orderMarks an existing Order as Completed when its current status is New.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs.

Payload Fields & Envelope

Command Payload

NameTypeRequiredConstraintsDescription
idstring (uuid)YesUUIDv7Unique message identifier used for 24-hour Redis deduplication
creationDatestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the command was created
orderIdstring (uuid)YesValid UUID; Kafka partition keyIdentifier of the completed order
fullNamestring | nullNoNullable (defaults to "Customer" when null)Customer display name
emailstring | nullNoNullableRecipient email address; null, empty, or whitespace values skip email rendering and delivery
totalMoneynumberYesNon-negative monetary amountFinal order total displayed in the completion email template

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / Compensation
Duplicate delivery within 24 hoursConsumer skips reprocessing via Redis-backed 24-hour idempotency keyed by idSafe at-least-once delivery; newly published commands with a different id execute again
Blank or null emailConsumer returns without error and skips template rendering and SMTP submissionNo action required
Transient SMTP or network failureRetried by the notification resilience pipeline (circuit breaker, exponential backoff with jitter, 30s timeout)Exhausted retries route to Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs
Permanent SMTP failureRetried with cooldown (50ms, 250ms, 1s with full jitter)Routed to Notification Dead Letter QueueChannelv1.0.0Notification Dead Letter QueueKafka dead-letter topic owned by the platform team that captures order notification commands that Notification API could...Ownerplatform-engineering-teamOpen docs

Send order completed notification schema

6 properties
Additional properties: not allowed
idstring<uuid>
required
creationDatestring<date-time>
required
orderIdstring<uuid>
required
fullNamestring | null
emailstring | null
totalMoneynumber
required