This is a demo catalog. Create one for your own architecture with a single prompt.

Get started →

Ordering and checkout

How the Ordering domain coordinates checkout and owns the order lifecycle.

Domain guide

OrderingDomainv1.0.0OrderingThe Ordering domain turns a checked-out cart into a confirmed order. It orchestrates checkout — reserving inventory, aut...Ownerordering-platformDiagramOpen docs is the core revenue domain. It turns a checked-out cart into a durable order and owns that order through completion or cancellation.

System context map

Checkout System

Checkout SystemSystemv1.0.0Checkout SystemInternal system that orchestrates checkout. When a cart is checked out it reserves inventory, authorizes payment, and as...Ownerordering-platformDiagramOpen docs owns orchestration. Checkout APIServicev1.0.0Checkout APIThe entry point to the Checkout System. Receives the checkout command from the Shopping domain and starts the checkout f...Subscribescheckout-cartOwnerordering-platformDiagramRepositoryOpen docs receives checkout intent, and Checkout OrchestratorServicev1.0.0Checkout OrchestratorRuns the checkout saga. Reserves inventory, authorizes payment and creates the order, coordinating the steps that turn a...Publishesreserve-inventory, authorize-payment +1Ownerordering-platformDiagramRepositoryOpen docs runs the Checkout SagaFlowv1.0.0Checkout SagaHow the Checkout Orchestrator turns a checked-out cart into an order — reserving inventory, authorizing payment and crea...Ownerordering-platformView flowOpen docs.

The saga coordinates:

  1. Reserve InventoryCommandv1.0.0Reserve InventoryCommand to reserve stock for the items in a checked-out cart. Ownerordering-platformSchemaDiagramOpen docs
  2. Authorize PaymentCommandv1.0.0Authorize PaymentCommand to authorize payment for the total of a checked-out cart. Ownerordering-platformSchemaDiagramOpen docs
  3. Create OrderCommandv1.0.0Create OrderCommand to create a new order from a checked-out cart. Ownerordering-platformSchemaDiagramOpen docs

If a step fails, the orchestrator compensates rather than leaving partial work behind.

Order Management System

Order Management SystemSystemv1.0.0Order Management SystemInternal system that is the source of truth for orders. It creates orders, tracks their lifecycle, and publishes events ...Ownerordering-platformDiagramOpen docs owns order state in Order DatabaseContainerv1.0.0Order DatabasePostgreSQL database that is the system of record for orders and their items.Ownerordering-platformDiagramOpen docs. Order ServiceServicev1.0.0Order ServiceThe system of record for orders. Creates and cancels orders, serves order lookups, and publishes events as orders move t...Publishesorder-created, order-confirmed +9Subscribescreate-order, cancel-order +2APIsAsyncAPIOwnerordering-platformDiagramRepositoryOpen docs handles Create OrderCommandv1.0.0Create OrderCommand to create a new order from a checked-out cart. Ownerordering-platformSchemaDiagramOpen docs, Cancel OrderCommandv1.0.0Cancel OrderCommand to cancel an existing order. Ownerordering-platformSchemaDiagramOpen docs and Get OrderQueryv1.0.0Get OrderQuery to fetch a single order by its identifier. Ownerordering-platformSchemaDiagramOpen docs.

It publishes:

Operating guidance

Do not add payment or inventory state directly to orders unless it is a snapshot needed for audit or customer support. The owning systems remain Payment Processing SystemSystemv1.0.0Payment Processing SystemInternal system that orchestrates payment for orders. It authorizes payments, requests charges from the external payment...Ownerpayments-platformDiagramOpen docs and Inventory SystemSystemv1.0.0Inventory SystemInternal system that tracks stock and reserves it for orders. It is the source of truth for available inventory and conf...Ownerfulfilment-platformDiagramOpen docs.

When checkout behavior changes, update the Place an OrderFlowv1.0.0Place an OrderThe end-to-end journey from a customer checking out their cart to a confirmed order — spanning the Shopping and Ordering...Ownerordering-platformView flowOpen docs and Checkout SagaFlowv1.0.0Checkout SagaHow the Checkout Orchestrator turns a checked-out cart into an order — reserving inventory, authorizing payment and crea...Ownerordering-platformView flowOpen docs pages as well as the command schemas.

Assess an Ordering domain change
Open in Cursor