---
title: UserErrorsCustomerMarketingConsentError - Customer API
description: >-
  An error from a customer marketing consent mutation, such as

  [`customerWhatsAppMarketingConsentUpdate`](https://shopify.dev/docs/api/customer/latest/mutations/customerWhatsAppMarketingConsentUpdate).
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/latest/objects/UserErrorsCustomerMarketingConsentError
  md: >-
    https://shopify.dev/docs/api/customer/latest/objects/UserErrorsCustomerMarketingConsentError.md
api_name: customer
api_type: graphql
type: object
---

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

object

Requires `customer_read_customers` access scope.

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

## Fields

* code

  [User​Errors​Customer​Marketing​Consent​Error​Code](https://shopify.dev/docs/api/customer/latest/enums/UserErrorsCustomerMarketingConsentErrorCode)

  The error code.

* field

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

  The path to the input field that caused the error.

* message

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

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [customer​Whats​App​Marketing​Consent​Update](https://shopify.dev/docs/api/customer/latest/mutations/customerWhatsAppMarketingConsentUpdate)

  mutation

  Updates the current customer's WhatsApp marketing consent information. Shopify identifies the customer's WhatsApp account by their [phone number](https://shopify.dev/docs/api/customer/latest/objects/CustomerPhoneNumber).

  You can subscribe or unsubscribe the customer from WhatsApp marketing.

  * input

    [Customer​Whats​App​Marketing​Consent​Update​Input!](https://shopify.dev/docs/api/customer/latest/input-objects/CustomerWhatsAppMarketingConsentUpdateInput)

    required

    ### Arguments

    Specifies the input fields to update the current customer's WhatsApp marketing consent information.

  ***

***

## UserErrorsCustomerMarketingConsentError Mutations

### Mutated by

* [customer​Whats​App​Marketing​Consent​Update](https://shopify.dev/docs/api/customer/latest/mutations/customerWhatsAppMarketingConsentUpdate)

***

## Interfaces

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

  interface

***

## UserErrorsCustomerMarketingConsentError Implements

### Implements

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