---
title: "CustomerErrorCode"
description: "Possible error codes that can be returned by CustomerUserError."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/enums/customer-error-code'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/enums/customer-error-code.md'
---
# CustomerErrorCode

Possible error codes that can be returned by CustomerUserError.

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

## Type Signature

`CustomerErrorCode`

## Values

* `VERIFY_CODE_EXPIRED`

  验证码已过期

* `ACCESS_TOKEN_INVALID`

  accesstoken无效

* `PARAM_ILLEGAL`

  非法参数

* `VERIFY_TOKEN_ERROR`

  VerifyToken错误

* `RISK_CONTROL_INTERCEPT`

  风控拦截

* `SYSTEM_ERROR`

  系统异常

* `RISK_CONTROL_BEHAVIOR`

  风控行为验证

* `LOCK_ACCOUNT_FAIL`

  尝试锁账号失败,请稍后再试

* `PWD_ERR`

   PWD_ERR

* `UNAUTHORIZED_APPLICATION`

  未授权的店铺

* `VERIFY_CODE_SEND_COUNT_LIMIT`

  验证码发送次数限制

* `CUSTOMER_WAIT_REGISTER`

    我们已经向 %s 发送电子邮件，请点击其中包含的链接进行注册

* `EMAIL_FORMAT_ERROR`

  邮箱格式错误

* `USER_LOCK`

  USER_LOCK

* `VERIFY_CODE_SEND_RATE_LIMIT`

  验证码发送频率限制

* `ACCOUNT_NOT_ACTIVATED`

  用户未激活

* `MOBILE_REPEAT`

  该手机已被注册

* `RESET_PWD_TOKEN_INVALID`

  resetPwdToken无效

* `THIRD_PARTY_AUTH_FAILED`

  第三方校验失败

* `VERIFY_CODE_ERROR`

  验证码错误

* `ACTIVATION_URL_INVALID`

  activationUrl无效

* `NOT_FOUND`

  地址不存在

* `PRE_CREATE`

   预注册

* `EMAIL_REPEAT`

  该邮箱已被注册

* `MULTIPASS_TOKEN_ERROR`

  multipasssToken无效

* `RISK_CONTROL_CAPTCHA_ERROR`

  风控验证码错误

* `UNIDENTIFIED_CUSTOMER`

  未定义用户

* `UPDATE_USER_FAIL`

  修改用户信息失败

* `USER_DOES_NOT_EXIST`

  USER_DOES_NOT_EXIST

* `VERIFY_CODE_CHECK_LIMIT`

  验证码校验次数限制

* `REQUEST_PWD_FORMAT_ERROR`

  密码格式错误

* `RESET_PWD_URL_INVALID`

  resetPwdUrl无效

## Schema Definition

```graphql
enum CustomerErrorCode { 
	VERIFY_CODE_EXPIRED 
	ACCESS_TOKEN_INVALID 
	PARAM_ILLEGAL 
	VERIFY_TOKEN_ERROR 
	RISK_CONTROL_INTERCEPT 
	SYSTEM_ERROR 
	RISK_CONTROL_BEHAVIOR 
	LOCK_ACCOUNT_FAIL 
	PWD_ERR 
	UNAUTHORIZED_APPLICATION 
	VERIFY_CODE_SEND_COUNT_LIMIT 
	CUSTOMER_WAIT_REGISTER 
	EMAIL_FORMAT_ERROR 
	USER_LOCK 
	VERIFY_CODE_SEND_RATE_LIMIT 
	ACCOUNT_NOT_ACTIVATED 
	MOBILE_REPEAT 
	RESET_PWD_TOKEN_INVALID 
	THIRD_PARTY_AUTH_FAILED 
	VERIFY_CODE_ERROR 
	ACTIVATION_URL_INVALID 
	NOT_FOUND 
	PRE_CREATE 
	EMAIL_REPEAT 
	MULTIPASS_TOKEN_ERROR 
	RISK_CONTROL_CAPTCHA_ERROR 
	UNIDENTIFIED_CUSTOMER 
	UPDATE_USER_FAIL 
	USER_DOES_NOT_EXIST 
	VERIFY_CODE_CHECK_LIMIT 
	REQUEST_PWD_FORMAT_ERROR 
	RESET_PWD_URL_INVALID  
}
```

## Field from

* [CustomerUserError](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/objects/customer-user-error.md).code

  code

## Error Handling

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

