OrderItem
Type: object
Individual line item within an order. Includes cross-field validation to ensure Subtotal equals Quantity times UnitPrice.
Extends
Fields
| Name | Type | Description | Source |
|---|---|---|---|
OrderId |
string (uuid) | Reference to the parent order | - |
ProductId |
string (uuid) | Reference to the ordered product | - |
Quantity |
integer (int32) | Number of units ordered | - |
UnitPrice |
number (decimal) | Price per unit at time of order (snapshot from Product.Price) | - |
Subtotal |
number (decimal) | Line item total (Quantity x UnitPrice) | - |