---
title: customerWhatsAppMarketingConsentUpdate - Customer API
description: >-
  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.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/latest/mutations/customerWhatsAppMarketingConsentUpdate
  md: >-
    https://shopify.dev/docs/api/customer/latest/mutations/customerWhatsAppMarketingConsentUpdate.md
api_name: customer
api_type: graphql
type: mutation
---

# customer​Whats​App​Marketing​Consent​Update

mutation

Requires `customer_write_pre_authenticated` access scope. Also: The user must be fully authenticated or pre-authenticated.

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.

## Arguments

* input

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

  required

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

***

## Customer​Whats​App​Marketing​Consent​Update​Payload returns

* customer​Phone​Number

  [Customer​Phone​Number](https://shopify.dev/docs/api/customer/latest/objects/CustomerPhoneNumber)

  The [customer phone number](https://shopify.dev/docs/api/customer/latest/objects/CustomerPhoneNumber) with the updated WhatsApp marketing consent information.

* user​Errors

  [\[User​Errors​Customer​Marketing​Consent​Error!\]!](https://shopify.dev/docs/api/customer/latest/objects/UserErrorsCustomerMarketingConsentError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### customerWhatsAppMarketingConsentUpdate reference
