Skip to main content

ProductDTO

Represents a product in the catalog with its available sizes. Products are identified by a unique ID and belong to a specific brand.

Fields

id
string
required
Unique identifier for the product
brandId
string
required
Identifier of the brand this product belongs to
sizes
string[]
required
List of available sizes for this product (e.g., [“S”, “M”, “L”, “XL”])

Example

{
  "id": "PROD-001",
  "brandId": "BRAND-A",
  "sizes": ["S", "M", "L", "XL"]
}

ProductItemDTO

Represents a specific product item with a particular size and quantity. Used in stock inventories, demand lists, and stock assignments.

Fields

id
UUID
required
Unique identifier for the product item
productId
string
required
Reference to the parent product ID
size
string
required
Specific size of this product item (e.g., “M”, “L”)
quantity
integer
required
Quantity of units available or demanded

Example

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "productId": "PROD-001",
  "size": "M",
  "quantity": 150
}

Usage Context

ProductItem objects are used in:
  • Warehouse stock inventories - tracking available units
  • Store demand lists - representing requested quantities
  • Stock assignments - linking specific product items to fulfillment operations

Build docs developers (and LLMs) love