---
title: "CartErrorCode"
description: "CartErrorCode"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/enums/cart-error-code'
  md: 'https://developer.shopline.com/zh-hans-cn/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`

  购物车ID已失效

* `CART_ID_NOT_EXIST`

  购物车ID不存在

* `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/zh-hans-cn/docs/storefront-api/cart/objects/cart-user-error.md).code

  错误码

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

