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

# User​Errors​Customer​Marketing​Consent​Error​Code

enum

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

## Valid values

* FAILED

  There was an error.

* PHONE\_​NUMBER\_​REQUIRED

  A phone number is required.

***

## Fields

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

  OBJECT

  An error from a customer marketing consent mutation, such as [`customerWhatsAppMarketingConsentUpdate`](https://shopify.dev/docs/api/customer/latest/mutations/customerWhatsAppMarketingConsentUpdate).

***

## Map

### Fields with this enum

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