---
title: UserErrorsCustomerEmailMarketingUserErrors - Customer API
description: Provides error codes for marketing subscribe mutations.
api_version: 2025-07
api_name: customer
type: object
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/2025-07/objects/UserErrorsCustomerEmailMarketingUserErrors
  md: >-
    https://shopify.dev/docs/api/customer/2025-07/objects/UserErrorsCustomerEmailMarketingUserErrors.md
---

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

object

Provides error codes for marketing subscribe mutations.

## Fields

* code

  [User​Errors​Customer​Email​Marketing​User​Errors​Code](https://shopify.dev/docs/api/customer/2025-07/enums/UserErrorsCustomerEmailMarketingUserErrorsCode)

  The error code.

* field

  [\[String!\]](https://shopify.dev/docs/api/customer/2025-07/scalars/String)

  The path to the input field that caused the error.

* message

  [String!](https://shopify.dev/docs/api/customer/2025-07/scalars/String)

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [customer​Email​Marketing​Subscribe](https://shopify.dev/docs/api/customer/2025-07/mutations/customerEmailMarketingSubscribe)

  mutation

  Subscribes the customer to email marketing.

* [customer​Email​Marketing​Unsubscribe](https://shopify.dev/docs/api/customer/2025-07/mutations/customerEmailMarketingUnsubscribe)

  mutation

  Unsubscribes the customer from email marketing.

***

## UserErrorsCustomerEmailMarketingUserErrors Mutations

### Mutated by

* [customer​Email​Marketing​Subscribe](https://shopify.dev/docs/api/customer/2025-07/mutations/customerEmailMarketingSubscribe)
* [customer​Email​Marketing​Unsubscribe](https://shopify.dev/docs/api/customer/2025-07/mutations/customerEmailMarketingUnsubscribe)

***

## Interfaces

* [Displayable​Error](https://shopify.dev/docs/api/customer/2025-07/interfaces/DisplayableError)

  interface

***

## UserErrorsCustomerEmailMarketingUserErrors Implements

### Implements

* [Displayable​Error](https://shopify.dev/docs/api/customer/2025-07/interfaces/DisplayableError)
