Every Order has a
state property of type
OrderState. The following diagram shows the default states and how an Order transitions from one to the next.
Structure of an Order
In Vendure an Order consists of one or more OrderLines (representing a given quantity of a particular SKU), which in turn contain one or more OrderItems (which represent the individual physical units).
Here is a simplified diagram illustrating this relationship:
So if the customer adds 2 Widgets to the Order, there will be one OrderLine containing two OrderItems, one for each of the added Widgets.
Shop client order workflow
The GraphQL Shop API Guide lists the GraphQL operations you will need to implement this workflow in your storefront client application.