6/11/2026, 12:00:35 AM
A new mutation customerWhatsAppMarketingConsentUpdate lets you change a customer’s WhatsApp marketing consent using the customer’s phone number. The mutation requires a customerId and a whatsAppMarketingConsent input built with the new CustomerMarketingConsentInput type, specifying state, opt‑in level, updatedAt and optional sourceLocationId. The response is a CustomerWhatsAppMarketingConsentUpdatePayload that returns the customerPhoneNumber with its whatsAppMarketingConsent field and a list of CustomerMarketingConsentError objects if errors occur. The schema introduces the CustomerMarketingConsent interface with fields such as state, optInLevel, sourceLocation, etc., and concrete type CustomerWhatsAppMarketingConsent that is now part of the CustomerPhoneNumber field. Two new enums, CustomerMarketingConsentState and CustomerMarketingConsentErrorCode, provide valid states and error codes for the consent workflow. A webhook topic CUSTOMERS_WHATS_APP_MARKETING_CONSENT_UPDATE is added so you can receive notifications when a customer’s WhatsApp marketing consent changes.
Updates a customer's WhatsApp marketing consent information. The customer's WhatsApp account is identified by their phone number.
You can set whether the customer subscribes or unsubscribes to WhatsApp marketing and specify the opt-in level. Optionally include when the consent was collected and which location collected it.
The marketing consent information for one of a customer's marketing channels. Implemented by per-channel types such as CustomerWhatsAppMarketingConsent.
An error that occurs during the execution of a customer marketing consent mutation, such as customerWhatsAppMarketingConsentUpdate.
Possible error codes that can be returned by CustomerMarketingConsentError.
The input fields for the marketing consent information when a customer consented to receiving marketing material on a given channel. Used by channel-specific consent mutations such as customerWhatsAppMarketingConsentUpdate.
The valid marketing consent states for a customer on a given marketing channel. Used by the CustomerMarketingConsent interface and by channel-specific consent mutations.
The WhatsApp marketing consent information for a customer's phone number. Implements the CustomerMarketingConsent interface. Use the customerWhatsAppMarketingConsentUpdate mutation to change it.
The input fields for updating WhatsApp marketing consent information for a given customer ID.
Return type for customerWhatsAppMarketingConsentUpdate mutation.
whatsAppMarketingConsentThe WhatsApp marketing consent information for the customer's phone number. Update with the customerWhatsAppMarketingConsentUpdate mutation.
CUSTOMERS_WHATS_APP_MARKETING_CONSENT_UPDATE