---
title: "CartLineUpdateInput"
description: "Commodity row"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-line-update-input'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-line-update-input.md'
---
# CartLineUpdateInput

Commodity row

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CartLineUpdateInput`

## Input Fields

* `cartId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  Cart ID

* `lines`

  [[CartLineUpdatelinesInput!]!](https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-line-updatelines-input.md)

  Commodity row

* `isNeedReturnCartDetail`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether to return the latest cart detail.

* `userToken`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  customer access token
  

* `countryCode`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The code of the country.

* `language`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The language of the front client.

## Schema Definition

```graphql
input CartLineUpdateInput { 
	cartId: String!
	lines: [CartLineUpdatelinesInput!]!
	isNeedReturnCartDetail: Boolean
	userToken: String
	countryCode: String
	language: String 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-lines-update.md).cartLinesUpdate

## 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).

