---
title: UserErrorsCustomerEmailMarketingUserErrorsCode - Customer API
description: >-
  Possible error codes that can be returned by
  `UserErrorsCustomerEmailMarketingUserErrors`.
api_version: 2026-04
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/latest/enums/UserErrorsCustomerEmailMarketingUserErrorsCode
  md: >-
    https://shopify.dev/docs/api/customer/latest/enums/UserErrorsCustomerEmailMarketingUserErrorsCode.md
api_name: customer
api_type: graphql
type: enum
---

# User​Errors​Customer​Email​Marketing​User​Errors​Code

enum

Possible error codes that can be returned by `UserErrorsCustomerEmailMarketingUserErrors`.

## Valid values

* CUSTOMER\_​ALREADY\_​SUBSCRIBED

  The customer is already subscribed.

* EMAIL\_​ADDRESS\_​NOT\_​FOUND

  The customer does not have an email address.

* FAILED\_​TO\_​SUBSCRIBE

  Subscription failed.

* FAILED\_​TO\_​UNSUBSCRIBE

  Unsubscription failed.

***

## Fields

* [User​Errors​Customer​Email​Marketing​User​Errors.code](https://shopify.dev/docs/api/customer/latest/objects/UserErrorsCustomerEmailMarketingUserErrors#field-UserErrorsCustomerEmailMarketingUserErrors.fields.code)

  OBJECT

  Provides error codes for marketing subscribe mutations.

***

## Map

### Fields with this enum

* [User​Errors​Customer​Email​Marketing​User​Errors.code](https://shopify.dev/docs/api/customer/latest/objects/UserErrorsCustomerEmailMarketingUserErrors#field-UserErrorsCustomerEmailMarketingUserErrors.fields.code)
