Skip to content

Order Line

entity order


Line-level item entry within an order.

Business Purpose: Represent ordered quantity, price, tax, promotion, fulfillment, return, and exchange details at line level.

Identity

Type Field Description
aggregate-scoped order-line-id Order Line ID identifies the line within the Order aggregate.

Attributes

Attribute Description
order-line-id Order Line ID Stable order line identifier.
order-id Order ID Reference to the parent order.
item-id Item ID Reference to the ordered item.
quantity Quantity Ordered quantity.
status Status Current order line state.

Lifecycle

createdconfirmedallocatedfulfilledreturnedcancelledclosed

Relationships

Type Target
belongs-to order order
references inventory-item inventory-item
contains price price
contains tax-rate tax-rate

Semantic Constraints

Constraint Type Rule
order-must-have-lines association An Order must contain at least one Order Line. An empty order has no c…
order-line-references-product association Every Order Line must reference exactly one Product. An order line wit…

Note

Existing process models reference order directly rather than order-line.


← Back to Order Domain