Logo
NeoArc Studio

OrderItem

Type: object

Version: 1.0

Individual line item within an order. Includes cross-field validation to ensure Subtotal equals Quantity times UnitPrice.

Tags: ecommerce, domain, transaction

Extends

Entity

Fields

Name Type Description Source
Id string (uuid) - from Entity
Created string (date-time) - from Entity
Modified string (date-time) - from Entity
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) -