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

CartErrorCode

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

## Type Signature

`CartErrorCode`

## Values

* `CART_ID_EXPIRED`

  CART_ID_EXPIRED

* `CART_ID_NOT_EXIST`

  CART_ID_NOT_EXIST

* `PARAM_ILLEGAL`

  PARAM_ILLEGAL

## Schema Definition

```graphql
enum CartErrorCode { 
	CART_ID_EXPIRED 
	CART_ID_NOT_EXIST 
	PARAM_ILLEGAL  
}
```

## Field from

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

  The error code.

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

