Product identity, price, promotions, margin and delivery/billing addresses are copied into Order instead of silently changing later.
From checkout to delivery and reviews
This guide covers: how checkout creates an order, reserves stock and starts delivery, and how customers submit reviews afterward.
About this guide
Prepared with AI under human direction. The customer, order and financial facts are development test data.
1. What it does
Checkout creates an order, Stock reserves the items, and Logistics tracks delivery. After delivery, the customer can submit a review.
Stock commits the reservation to the Order, Logistics records the current minimal delivery path, and delivery opens the verified-review path.
2. From purchase to a published review
The film follows the complete visible journey with on-screen captions.
Address, Order, delivery and Review
The same product remains recognizable through Cart, distinct addresses, paid Order, warehouse transitions, delivery, review submission, moderation and publication on the product page.
3. One journey, clear stages
Each service handles a specific step in the purchase.
4. What changes for the customer
- 01Order details remain availableOrder preserves the commercial and address facts accepted at placement.
- 02Physical stock follows the orderReservation, cancellation and shipment remain tied to Stock authority.
- 03Warehouse progress cannot skip statesPick precedes ship; ship precedes delivery.
- 04Feedback has purchase contextThe normal path checks delivery and requires moderation. If the Order check fails, the current fallback can admit an unverified review.
How the order journey works
The sections below explain service ownership, reservation commitment, immutable snapshots, the current minimal Logistics flow, review publication and failure boundaries.
5. Services involved
The services exchange events while keeping their own records and rules.
| Boundary | Responsibility | Data passed on |
|---|---|---|
| Cart | Quote, checkout session, selected addresses/payment and placement orchestration | Accepted line, campaign, address and reservation-key snapshots |
| Stock | Availability, holds, cancellation release and shipment deduction | Reservation state and stock movements |
| Order | Order identity, immutable commercial history and customer-visible status | Order status events and delivery records |
| Logistics | Shipment work and warehouse transitions | Picked, shipped and delivered facts |
| Review | Review content, moderation and publication lifecycle | Approved, edited or deleted rating facts |
| Catalog | Product-facing review count and average-rating projection | Customer product presentation |
6. Reservation commitment
Cart revalidates the hold immediately before Order creation. After creation, it asks Stock to commit that reservation to the Order. The reservation key also travels with the Order so Stock can repair a lost synchronous commitment call.
fulfil; its actual effect here is to move the reservation from an active checkout hold to committed Order stock while keeping the quantity reserved. The Order Kafka event already repeats the same commitment idempotently as recovery. The synchronous path is still active, so it is not legacy; moving to Kafka-primary commitment remains an architectural follow-up. A future Fulfilment bounded context is a candidate, not an implemented boundary.7. Order details are preserved
Order stores what the customer accepted instead of depending on mutable Catalog, campaign or profile reads later.
| Snapshot group | Preserved facts | Why Order saves it |
|---|---|---|
| Line identity | Product/variant IDs, names and SKUs | Later Catalog edits cannot rewrite what was ordered |
| Prices and discounts | Original and allocated unit price, discounts, cost, margin and pricing snapshot ID | Historical totals and profitability remain reproducible |
| Addresses | Separate delivery and billing street, postal code, city and canton | Customer profile edits do not alter the order record |
| Operational link | Order number and checkout reservation key | Stock can reconcile holds to the durable Order |
PAID. It records the selected method but does not claim external authorization, capture, refund or chargeback behavior.8. Order and Logistics event flow
A paid Order creates one Logistics work item. Logistics owns the physical state machine and reports each accepted transition back to Order.
| Current state | Allowed next | Operational meaning |
|---|---|---|
PAID | PICKED or CANCELLED | Warehouse accepts work; cancellation remains possible before picking |
PICKED | SHIPPED | The parcel may leave only after picking |
SHIPPED | DELIVERED | Delivery can be recorded only after dispatch |
DELIVERED / CANCELLED | None | Both are terminal in Logistics |
9. From delivery to product reviews
Review verifies the customer/product pair against Order’s delivery records, prevents duplicate customer reviews for the product, then owns moderation before Catalog projects the approved rating.
10. Failure and recovery
Retries avoid duplicate work, and outboxes retain events for delivery. Recovery still depends on the reservation timeout, and review verification has a fail-open fallback.