> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Item Parameters

> The items array: product id, name, price, quantity, variant and the other item parameters.

Every event about products sends an `items` array, with one object per product.

Sample payload with every item parameter:

```javascript theme={null}
window._upstack('track', 'add_to_cart', {
  value: 69.98,
  currency: 'USD',
  items: [{
    id: '8012345678',
    variant: '44120033',
    variantName: 'Blue / Medium',
    name: 'Classic Cotton Tee',
    sku: 'TEE-BLU-M',
    price: 34.99,
    quantity: 2,
    brand: 'Example Brand',
    category: 'Apparel',
    url: 'https://example.com/products/classic-tee',
    imageUrl: 'https://example.com/images/classic-tee.jpg',
    discount: 3.5,
    value: 69.98,
    content_type: 'product'
  }]
});
```

| Name | Type | Required | Example value | Description |
| - | - | - | - | - |
| `id` | `string` | Yes | `8012345678` | Product ID. Must match the ID in your product catalogs. |
| `name` | `string` | Yes | `Classic Cotton Tee` | Product name. |
| `price` | `number` | Yes | `34.99` | Unit price. |
| `quantity` | `number` | Yes | `2` | Quantity. |
| `variant` | `string` | No | `44120033` | Variant ID, not a name. Must match your catalogs. |
| `variantName` | `string` | No | `Blue / Medium` | Variant name. |
| `sku` | `string` | No | `TEE-BLU-M` | SKU. |
| `brand` | `string` | No | `Example Brand` | Brand. |
| `category` | `string` | No | `Apparel` | Product category. |
| `url` | `string` | No | `https://example.com/products/classic-tee` | Product page URL. |
| `imageUrl` | `string` | No | `https://example.com/images/classic-tee.jpg` | Product image URL. |
| `discount` | `number` | No | `3.50` | Discount on this line. |
| `value` | `number` | No | `69.98` | Line total. |
| `content_type` | `string` | No | `product` | `product` or `product_group`. |

Destinations build their product IDs from `items`, so don't send `content_ids` yourself. Use the same `id` and `variant` values as your product catalogs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.