command

Reserve Inventory

Command to reserve stock for the items in a checked-out cart.

Command
POST/reservations

Overview

ReserveInventory 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 to hold stock for the items in a checked-out cart. A successful reservation guarantees the inventory is available while payment is authorized. If a later checkout step fails, the reservation is released.

Architecture diagram

Schema

Event-driven architecture documentation: Acme Inc

JSON Schema

5 properties

Command to reserve stock for the items in a checked-out cart

cartIdstring<uuid>
required

Identifier of the cart being checked out

customerIdstring<uuid>

Identifier of the customer checking out

itemsarray[object]
required

The items to reserve