---
title: "cartNoteUpdate"
description: "Updates the note on the cart."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-note-update'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-note-update.md'
---
# cartNoteUpdate

Updates the note on the cart.

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

## Type Signature

`CartNoteUpdatePayload`

## Arguments

* `input`

  [CartNoteUpdateInput](https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-note-update-input.md)

  In-blend

## Returns

* `cart`

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

  cart

* `cartUserErrors`

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

  The list of errors that occurred from executing the mutation.

* `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 cartNoteUpdate($input: CartNoteUpdateInput ) {
	cartNoteUpdate(input: $input ) 
		 {
			# CartNoteUpdatePayload fields
		}
		
	}

```

## Variables

```json
{
  "input": {
    "cartId": "",
    "countryCode": "",
    "isNeedReturnCartDetail": {},
    "language": "",
    "note": {},
    "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).

