# LineItem

Represents a line item in the order.

- **quantity**  
  The number of unique units represented by this line item (default is 1).

#### Declaration

- **itemDescription**  
  Text describing the line item.

#### Declaration

- **sku**  
  The Stock Keeping Unit of the line item.

#### Declaration

- **upc**  
  The Universal Product Code of the line item.

#### Declaration

- **category**  
  The category of the line item.  
  An ordered list of strings, starting with the topmost (or most general) category.

#### Declaration

- **attributes**  
  A key/value store for strings to specify additional information about a line item.

#### Declaration

- **init(id:total:)**  
  An array of the line item details that comprise the order

#### Declaration

#### Parameters

|     |     |
| --- | --- |
| **id** | The unique identifier for this line item, within the scope of this order.  
This must be unique across all line-items within the order.  
We suggest using the SKU or UPC of the product. (required) |
| **total** | The total price of all items bought in a particular line item. (required) |
