> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# CartLineItemInput

GraphQL input

Cart line item input object

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/inputs/cart-line-item-input

## Fields

- `quantity` — Total number of line items.
- `productEntityId` — The product id (either `SKU` or `productEntityId` must be provided).
- `variantEntityId` — The variant id
- `sku` — The product SKU (either `SKU` or `productEntityId` must be provided).
- `selectedOptions` — The list of selected options for this item.

## Definition

```graphql
input CartLineItemInput {
  quantity: Int!
  productEntityId: Int
  variantEntityId: Int
  sku: String
  selectedOptions: CartSelectedOptionsInput
}
```