---
title: "CartUserError"
description: "CartUserError"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/objects/cart-user-error'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/objects/cart-user-error.md'
---
# CartUserError

CartUserError

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

## Type Signature

`CartUserError`

## Fields

* `code`

  [CartErrorCode](https://developer.shopline.com/docs/storefront-api/cart/enums/cart-error-code.md)

  The error code.

* `field`

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

  The path to the input field that caused the error.

* `message`

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

  The error message.

## Schema Definition

```graphql
type CartUserError { 
	code: CartErrorCode
	field: [String!]
	message: String 
}
```

## Field from

* [CartLinesAddPayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-lines-add-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartLinesRemovePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-lines-remove-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartBuyerIdentityUpdatePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-buyer-identity-update-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartLinesUpdatePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-lines-update-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartItemSelectPayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-item-select-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartCreatePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-create-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartNoteUpdatePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-note-update-payload.md).cartUserErrors

  The list of errors that occurred from executing the mutation.

* [CartNoteUpdatePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-note-update-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

* [CartDiscountCodesUpdatePayload](https://developer.shopline.com/docs/storefront-api/cart/objects/cart-discount-codes-update-payload.md).userErrors

  The list of errors that occurred from executing the mutation.

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

