Create Order
Command to create a new order from a checked-out cart.
/ordersOverview
CreateOrder is sent by the Checkout OrchestratorCheckout OrchestratorServicev1.0.0Runs the checkout saga. Reserves inventory, authorizes payment and creates the order, coordinating the steps that turn a...Publishesreserve-inventory, authorize-payment +1Ownerordering-platformMapRepoView docs and handled by the Order ServiceOrder ServiceServicev1.0.0
The system of record for orders. Creates and cancels orders, serves order lookups, and publishes events as orders move t...Publishesorder-created, order-completed +1Subscribescreate-order, cancel-order +1APIsAsyncAPIOwnerordering-platformMapRepoView docs. It is the final step of the checkout saga — once inventory is reserved and payment is authorized, this command creates the order. On success the Order Service publishes an Order CreatedOrder CreatedEventv1.0.0Published when a new order has been created.
Ownerordering-platformSchemaMapView docs event.
Architecture diagram
Schema
JSON Schema
Command to create a new order from a checked-out cart
Identifier of the cart this order was created from
Identifier of the customer placing the order
The items in the order
Order total in minor units (e.g. cents)
0ISO 4217 currency code
^[A-Z]{3}$Identifier of the payment authorization for this order