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

Read the architecture guide →

User checked out

Reports that an Order was placed and its checkout details are ready for Finance coordination.

Order Lifecycle

UserCheckedOutIntegrationEvent (v1.0.0) reports that 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 accepted and persisted a new OrderEntityv1.0.0OrderDurable purchase record owned by a Buyer, capturing immutable purchase-time line items and governing order lifecycle tra...Ownercommerce-fulfillment-teamOpen docs during customer checkout. 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 consumes this event to start a Durable Task saga instance, which dispatches Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs to Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs (for basket cleanup) and 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 (for order confirmation email). Receiving this event confirms order placement only, not basket cleanup or order completion.

Overview

PropertyValue
Bounded ContextOrdering
ProducerOrder 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
Consumer(s)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
Protocol / FormatKafka + CloudEvents JSON (camelCase payload)
Channel / TopicUser Checkout Event ChannelChannelv1.0.0User Checkout Event ChannelKafka topic owned by the commerce-fulfillment-team carrying Order API checkout events that initiate Finance post-checkou...Ownercommerce-fulfillment-teamOpen docs
Dead-Letter ChannelOrdering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs
Partition KeyOrderId
Delivery / Idempotency GuaranteePublished via transactional outbox (at-least-once); orchestration starts idempotently per OrderId

Payload Fields & Envelope

Event Payload

NameTypeRequiredConstraintsDescription
idstring (uuid)YesUUIDv7Unique identifier for this integration event instance
creationDatestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the event was created
orderIdstring (uuid)YesValid UUID; Kafka partition keyIdentifier of the accepted order
basketIdstring (uuid)YesValid UUIDBuyer-linked basket reference supplied by the producer
fullNamestring | nullYesNullable stringCustomer full name when available on the buyer record
emailstring | nullYesNullable email formatCustomer email address when available; used to decide whether to send notifications
totalMoneynumberYesNon-negative monetary amountTotal purchase amount associated with the accepted order
Note

The current producer populates basketId with the order’s BuyerId. Downstream consumers must not treat basketId as an independently resolved Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs record.

CloudEvents Envelope Headers

HeaderValue / SourcePurpose
messagetypeBookWorm.Contracts.UserCheckedOutIntegrationEventExplicit message identity for cross-service deserialization
sourceurn:bookworm:bookworm-orderingIdentifies the producing service
requestidPropagated from POST /ordering/api/v1/ordersCorrelates checkout across Ordering, Finance, Basket, and Notification

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / Compensation
email or fullName is nullPayload remains valid; 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 still coordinates basket cleanup and evaluates notification eligibilityConsumers must tolerate null contact fields without failing deserialization
Transient broker or orchestration errorTransactional outbox guarantees at-least-once publication; orchestration starts idempotently per OrderIdInspect orchestration task hub and Ordering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs

User checked out schema

7 properties
Additional properties: not allowed
idstring<uuid>
required

Unique identifier assigned to the integration event.

creationDatestring<date-time>
required

UTC timestamp when the integration event was created.

orderIdstring<uuid>
required

Identifier of the Order.

basketIdstring<uuid>
required

UUID serialized as basketId. The current EventMapper supplies the Order's BuyerId for this field.

fullNamestring | null
required

Customer name, when available.

emailstring | null<email>
required

Customer email, when available.

totalMoneynumber<double>
required

Total purchase amount associated with the Order.