---
title: "cartItemSelect"
description: "Product selection and deselection interface"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-item-select'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-item-select.md'
---
# cartItemSelect

Product selection and deselection interface

- **Required Scopes:** `unauthenticated_read_cart`, `unauthenticated_write_cart`
- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CartItemSelectPayload`

## Required Permissions

* `unauthenticated_read_cart`
* `unauthenticated_write_cart`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md) for more information about how to obtain the token.

## Arguments

* `input`

  [CartItemSelectInput](https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-item-select-input.md)

  Input

## Returns

* `cart`

  [Cart](https://developer.shopline.com/docs/storefront-api/cart/objects/cart.md)

  cart

* `userErrors`

  [[CartUserError]](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-user-error.md)

  The list of errors that occurred from executing the mutation.

## Code Example

```graphql
mutation cartItemSelect($input: CartItemSelectInput ) {
	cartItemSelect(input: $input ) 
		 {
			# CartItemSelectPayload fields
		}
		
	}

```

## Variables

```json
{
  "input": {
    "cartId": "",
    "countryCode": "",
    "isNeedReturnCartDetail": false,
    "language": "",
    "selectItems": {
      "id": {},
      "select": {},
      "variantId": ""
    },
    "userToken": {}
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

