--- title: CustomerErrorCode - Storefront API description: > Error codes returned by the [`CustomerUserError`](/docs/api/storefront/2026-01/objects/CustomerUserError) object. These codes identify specific validation and processing failures for customer-related mutations, including account creation, updates, password resets, and address management. api_version: 2026-01 api_name: storefront type: enum api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/latest/enums/CustomerErrorCode' md: 'https://shopify.dev/docs/api/storefront/latest/enums/CustomerErrorCode.md' --- # Customer​Error​Code enum Error codes returned by the [`CustomerUserError`](https://shopify.dev/docs/api/storefront/2026-01/objects/CustomerUserError) object. These codes identify specific validation and processing failures for customer-related mutations, including account creation, updates, password resets, and address management. ## Valid values * ALREADY\_​ENABLED Customer already enabled. * BAD\_​DOMAIN Input email contains an invalid domain name. * BLANK The input value is blank. * CONTAINS\_​HTML\_​TAGS Input contains HTML tags. * CONTAINS\_​URL Input contains URL. * CUSTOMER\_​DISABLED Customer is disabled. * INVALID The input value is invalid. * INVALID\_​MULTIPASS\_​REQUEST Multipass token is not valid. * NOT\_​FOUND Address does not exist. * PASSWORD\_​STARTS\_​OR\_​ENDS\_​WITH\_​WHITESPACE Input password starts or ends with whitespace. * TAKEN The input value is already taken. * TOKEN\_​INVALID Invalid activation token. * TOO\_​LONG The input value is too long. * TOO\_​SHORT The input value is too short. * UNIDENTIFIED\_​CUSTOMER Unidentified customer. *** ## Fields * [Customer​User​Error.code](https://shopify.dev/docs/api/storefront/latest/objects/CustomerUserError#field-CustomerUserError.fields.code) OBJECT Represents an error that happens during execution of a customer mutation. *** ## Map ### Fields with this enum * [Customer​User​Error.code](https://shopify.dev/docs/api/storefront/latest/objects/CustomerUserError#field-CustomerUserError.fields.code)